Hi
my connection string was
<add name="test_connectionstring" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\initpub\wwwroot\test\App_Data\Database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
I removed, C:\initpub\wwwroot as when i will upload my project for hosting, server will not understand C:\initpub\wwwroot
But it gives error . So what should be path when i will host it ???
EVEN \App_Data\Database.mdf GIVES ERROR .
I dont know why AttachDbFilename=\App_Data\Database.mdf should have problem ...( AS IT INDICATES CHECK FOR APP_DATA INSIDE ROOT DIRECTORY )
...
Go to the complete details ...