Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path hatası

alattin (17127) 9 yıl önce sordu

Asp.Net Web forms uygulaması aşağıdaki gibi hata veriyor:

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.

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 
 

[SqlException (0x80131904): 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.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5347119

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. hatasının çözümü nedir?

Toplam 1 cevap


alattin (17127) 9 yıl önce cevapladı


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. hatasının çözümü için:
 

  1. IIS'i açın.
  2. Application Pools altında uygulamanıza ait Application'ı bulun. Seçin.
  3. Sağ taraftan Advanced settings tıklayın.
  4. Process model bölümünde  Load User Profile bulun ve True olarak ayarlayın.

Bu işlemden sonra sorun düzelecektir.