# ASP.Net Question about aTopic from here

**URL:** <https://forum.kirupa.com/t/asp-net-question-about-atopic-from-here/316653>\
**Category:** programming\
**Created:** [November 28, 2010, 10:10pm UTC](https://forum.kirupa.com/t/asp-net-question-about-atopic-from-here/316653 "2010-11-28T22:10:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![morcossamuel](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@morcossamuel](https://forum.kirupa.com/u/morcossamuel)\
**Post date:** [November 28, 2010, 10:10pm UTC](https://forum.kirupa.com/t/asp-net-question-about-atopic-from-here/316653/1 "2010-11-28T22:10:14Z")

</div>

[http://www.kirupa.com/net/sql\_asp\_introduction2.htm](http://www.kirupa.com/forum/../net/sql_asp_introduction2.htm)

when i did the steps i found a problem

**Server Error in ‘/’ 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.***

          [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] **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 36: command.Parameters.Add(platformContent);

```

Line 37:  
[COLOR=red]Line 38: connection.Open();  
[/COLOR]Line 39: command.BeginExecuteNonQuery();  
Line 40: connection.Close();  
\*\* Source File: \*\* c:\inetpub\wwwroot\dbtest\Games.aspx.cs\*\* Line: \*\* 38

```
         **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) +6244425  
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245  
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811  
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +53  
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +248  
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +6260362  
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +6260328  
System.Data.SqlClient.SqlInternalConnectionTds…ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +354  
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +300  
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +54  
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +6261592  
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +81  
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1657  
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +88  
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6265031  
System.Data.SqlClient.SqlConnection.Open() +258  
dbtest\_Games.btnSubmit\_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\dbtest\Games.aspx.cs:38  
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115  
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140  
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29  
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981  
[/FONT]
