TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Format of the Initialization String
Venkatesan Jayakantham
May 02, 2012
5.5
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Format of the initialization string does not conform to specification starting at index 0.
Format of the initialization string does not conform to specification starting at index 0.
Problem:
The reason for this issue is improper connection string.
Fix:
Please recheck the connection string, it should conform to the standards specified.
Connection string for mobile application is
public string MobileConnection(string DBName,string DBPassword)
{
string conString = ("Data Source ="
+ (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
+ ("\\"+DBName+";"
+ ("Password =" + "\""+DBPassword+"\";"))));
return conString;
}
Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech
www.kaashivinfotech.com
Format of the Initialization String
Next Recommended Reading
Convert Specific Date String to any System Date Format Dynamically in C#