Create ASP.NET WebAplication Installer Including SQL Database RRS feed

  • Question

  • Hello All,

    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.

    Tuesday, February 28, 2012 12:54 PM

All replies