I have a website included login module.when i hosted the website in iis there is an error
Server Error in "/" Application.
system.invalid operation Exception: Instance Failure
My ConnectionString is like this
<add name="MyConnectionstring" Connectionstring="Data Source=IP Address,1433;Network Library=DBMSSOCN;initial catalog=Databasename;integrated security=True" Provider Name="System.data.sqlclient"/>
How can i solve this problem?Any one knows Please help me
Best Answer
Simply change
DataSource=My-PC\\\SqlServer2008
toDataSource=My-PC\SqlServer2008
in your Web config because the previous one is valid one you are writing in Code Beind file but not in Web config file as it is an XML file.