Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

asp.net

This is my first time to deploy an asp.net web site. Everything is working fine on my local computer but when i published the web site on a remote computer i get 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"

(only in pages that try to access the database)

Help pleaseee

like image 547
Monodeep Avatar asked Jun 09 '11 13:06

Monodeep


2 Answers

In IIS under Vista/Windows 7/Server 2008 OS, Select the application pool and then "advanced settings." Under "process model" find "Load User Profile" and set it to true.

SQL should now load under the default app pool account.

like image 143
Himalaya Garg Avatar answered Nov 19 '22 22:11

Himalaya Garg


Try the following:

  • Start IIS
  • Open Application Pools by clicking on it
  • Right click on DefaultAppPool and select “Select Application Pool Defaults”
  • Change “Identity” property to “NetworkService”
  • Save and exit IIS
like image 42
Darko Poprasic Avatar answered Nov 19 '22 23:11

Darko Poprasic