Database path set in web.config file. (Hosting)

hi there,

i try to set database path in web.config file.

i am using file zilla for upload files.
Database file in App_data folder.

i used following code:

above code display error.

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.

2 answers

Hi Aniruddh, Please submit your code including full connection string. It seems to have been lost when pasting!! :)