Failed to generate a user instance of SQL Server due to failure in retrieving the user's local

Source: Internet
Author: User

An Asp.net website is created and used for membership authentication. When debugging and running in vs2010, everything works normally. However, when IIS (7.5) is used, the following error occurs:

Server Error in '/me' application.
--------------------------------------------------------------------------------

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.
Description: An unhandled exception occurred during the execution of the current Web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception details: system. data. sqlclient. sqlexception: 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.

 

After some attempts, an effective solution is provided:

My website uses the default application pool (defaultapppool ).DefaultapppoolRight-click, selectAdvanced Settings..., In the pop-up windowProcess ModelInLoad user profileThe value is changedTrue. Restart the website service and run successfully.

 

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.