Last post Mar 07, 2012 03:41 AM by kattyjems
Feb 28, 2012 04:46 AM|himanshu.ranosys|LINK
I need to create a installer for my web application including its database.
I have a ASP.NET(C#) web application(Framework 4.0) which have its database(.mdf) in App_Data folder. I am accessing this database directly from folder.
To create an installer, I have added a Web Setup Project and add web application as its
Project Output Directory, also add Content file .But when I installed it on server there will be an error occurs when application trying to access its database.Following is the 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."
I have searched a lot but still not get any proper solution.
Please help me solving this problem its very urgent, I have to implemnt in my project.
Thanks in Advance.
Feb 29, 2012 02:08 PM|Shellymn|LINK
Before creating installer file , you need to make sure you checked 'include app_data folder' during website publishing... , if so mdf file will automatically aaded to the website.
Mar 07, 2012 03:41 AM|kattyjems|LINK
I agree with
You should check App_Data folder before building the solution.