Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi,

I have a web application, when I run it in Visual Studio 2010 then there's no problem. I were able to connect to my database (select, update, delete) from my web app.

But when I deployed my application to IIS7 I encountered the below error. Please kindly advise if you know the cause of the problem. Thank you.

"Format of the initialization string does not conform to specification starting at index 0"
Posted

1 solution

 
Share this answer
 
Comments
akosidab 12-Apr-12 3:29am    
Hi ambarishtv,

I have tried the link that you provided but it is not working. still i got the same error.

I have tried using the below connection:

<connectionstrings>
<add name="Videos" connectionstring="Provider=Microsoft.Jet.OLEDB.4.0; Data Source={0}App_Data\Videos.mdb" providername="System.Data.OleDb">


public static string ConnectionString = string.Format(ConfigurationManager.ConnectionStrings["Videos"].ConnectionString, HttpContext.Current.Server.MapPath("~/"));


With the provider as System.Data.SqlClient coz i'm using SQL.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900