« Previous Next »

Thread: Asp.net:SqlException

Last post 12-11-2008 6:20 AM by Paul Lynch. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 12-10-2008, 6:54 PM

    • Kassiuz
    • Not Ranked
    • Joined on 12-10-2008, 11:50 PM
    • Posts 1

    Asp.net:SqlException

     Hi, I'm new to all this IIS Thing and recently I've been working with Asp websites developed on Visual studio 2008, now when debugging the server on the development server included with the studio all goes well but when I try and access it on IIS I get an sqlException, the stack race returned is:

     

    Exception Details: System.Data.SqlClient.SqlException:

    You do not have permission to perform this action


    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.

    [SqlException (0x80131904): You do not have permission to perform this action.]
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +248
    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) +327
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +2445290
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +2445144
    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) +2414696
    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +92
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1657
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +84
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +1645687
    System.Data.SqlClient.SqlConnection.Open() +258
    System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +82
    System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +3980970
    System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +3048516
    System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +213
    System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +164
    System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +75
    System.Web.UI.WebControls.Login.AttemptLogin() +152
    System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
     
    this occurs when I try to log into the site, the principal policy is all managed by the site 
     

  • 12-11-2008, 6:20 AM In reply to

    Re: Asp.net:SqlException

    Hi,

    What this error is telling you is that the process identity which your code is running under does not have sufficicient permission within the target SQL server instance or database to perform the action it is trying to perform.

    Regards, 

    Paul Lynch | www.iisadmin.co.uk
Page 1 of 1 (2 items)
Microsoft Communities