|
waqasahmed786
Starting Member
1 Post |
Posted - 2011-07-28 : 14:28:54
|
hi i am getting a sql server error.my application was running perfectly on localhost when i move the application on remote server i got the following error when make a connection with database server.i work it out but could not find solution kindly help me in this regards.thanks Failed to generate a user instance of SQL Server due to failure inretrieving the user's local application data path. Please make surethe user has a local user profile on the computer. The connection willbe closed.Description: An unhandled exception occurred during the execution ofthe current web request. Please review the stack trace for moreinformation about the error and where it originated in the code.Exception Details: System.Data.SqlClient.SqlException: Failed togenerate a user instance of SQL Server due to failure in retrievingthe user's local application data path. Please make sure the user hasa local user profile on the computer. The connection will be closed.Source Error:An unhandled exception was generated during the execution of thecurrent web request. Information regarding the origin and location ofthe exception can be identified using the exception stack trace below.Stack Trace:[SqlException (0x80131904): Failed to generate a user instance of SQLServer due to failure in retrieving the user's local application datapath. Please make sure the user has a local user profile on thecomputer. The connection will be closed.] System.Data.SqlClient.SqlInternalConnection.OnError(SqlExceptionexception, Boolean breakConnection) +5009598 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,SqlCommand cmdHandler, SqlDataReader dataStream,BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObjectstateObj) +2275 System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(BooleanenlistOK) +35 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfoserverInfo, String newPassword, Boolean ignoreSniOpenTimeout,TimeoutTimer timeout, SqlConnection owningObject) +183 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfoserverInfo, String newPassword, Boolean redirectedUserInstance,SqlConnection owningObject, SqlConnectionString connectionOptions,TimeoutTimer timeout) +239 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnectionowningObject, TimeoutTimer timeout, SqlConnectionStringconnectionOptions, String newPassword, Boolean redirectedUserInstance)+195 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentityidentity, SqlConnectionString connectionOptions, Object providerInfo,String newPassword, SqlConnection owningObject, BooleanredirectedUserInstance) +232 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptionsoptions, Object poolGroupProviderInfo, DbConnectionPool pool,DbConnection owningConnection) +5023255 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionowningConnection, DbConnectionPool pool, DbConnectionOptions options)+33 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionowningObject) +524 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionowningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnectionowningObject) +479 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnectionowningConnection) +108 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnectionouterConnection, DbConnectionFactory connectionFactory) +126 System.Data.SqlClient.SqlConnection.Open() +125 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,DataTable[] datatables, Int32 startRecord, Int32 maxRecords, StringsrcTable, IDbCommand command, CommandBehavior behavior) +123 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32startRecord, Int32 maxRecords, String srcTable, IDbCommand command,CommandBehavior behavior) +319 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92 System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArgumentsarguments) +1618 System.Web.UI.DataSourceView.Select(DataSourceSelectArgumentsarguments, DataSourceViewSelectCallback callback) +21 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74 System.Web.UI.WebControls.GridView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75 System.Web.UI.Control.EnsureChildControls() +102 System.Web.UI.Control.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)+2496sardar waqas ahmedSOFTWQRE engineer |
|