Failed to generate a user instance of SQL Server because of an error retrieving the user's local application data path

Source: Internet
Author: User
Tags stack trace

/"Server error in the application.

Failed to generate a user instance of SQL Server because of an error in retrieving the user's local application data path. Make sure that the user has a local user profile on this computer. The connection will be closed.

Stack trace:

[SqlException (0x80131904): An error occurred while retrieving the user's local application data path, resulting in a failure to generate a user instance of SQL Server. Make sure that the user has a local user profile on this computer. The connection will be closed. ]   System.Data.SqlClient.SqlInternalConnection.OnError (SqlException exception, Boolean breakconnection) + 6256377   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning (tdsparserstateobject stateobj) +245

Failed to generate a user instance of SQL Server because of an error retrieving the user's local application data path

Issue: The Web application was debugged in VS2008, and when it was published to IIS, "there was an error in retrieving the user's local application data path, which caused the user instance of SQL Server to fail," a half-day answer was found on the Internet, or the answer was not found. So he had to do it by himself. Eventually explored because the application process pool workaround is not configured in IIS: iis-"Your local server-" application process Pool-"Select one, I choose the default that DefaultAppPool, and then right-click the Advanced Settings-" Process Model-" The load user profile is set to true so that we have a process pool configured

Select your website application-"Basic Settings-" Select the process pool you just set up, OK problem solved

Failed to generate a user instance of SQL Server because of an error retrieving the user's local application data path

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.