Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have design an asp.net web site. My App_data folder contain db.mdf(and db_log.ldf) file which work fine in localhost. But into the web server it does not work. In the web site I am using gridview that access data from db.mdf file. This is my first asp.net web site. Please someone help me to publish my database(app_data).

I am using same Connection String that I used in my local host
XML
<connectionStrings>
  <add name="BBAConnectionString1" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\BBA.mdf;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
Posted
Updated 2-Nov-13 19:59pm
v2

1 solution

Follow the step by step instructions for the DB deployment to the server

http://www.asp.net/web-forms/tutorials/deployment/deploying-web-site-projects/deploying-a-database-cs[^]

Hope this helps
 
Share this answer
 

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