Format of the Initialization String

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