Question : asp.net. why am i geting this error: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path

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:


Line 9:      
Line 10:     Dim intGlobal As Integer = 0
Line 11:     Dim currentUser As MembershipUser = Membership.GetUser()
Line 12:    
Line 13:     Public Sub Page_Load() Handles Me.Load
 

Source File: C:\HostingSpaces\westdh\webflexdesign.com\wwwroot\Annonymous\index.aspx    Line: 11

Stack Trace:

Answer : asp.net. why am i geting this error: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path

Random Solutions  
 
programming4us programming4us