locked
error after Publishing page RRS feed

  • Question

  • User-1844117248 posted

    hi 

    after i publishet my site im getting a error then im using a specifik botton 

    here is the error messages 

    Server Error in '/' Application.--------------------------------------------------------------------------------
    Access is denied.
    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.UnauthorizedAccessException: Access is denied.

    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. 
    To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
    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: 

    [UnauthorizedAccessException: Access is denied.]   System.DirectoryServices.Interop.IAds.SetInfo() +0   System.DirectoryServices.DirectoryEntry.CommitChanges() +98   IT_Service.AddUser.CreateButton_Click(Object sender, EventArgs e) in C:\Users\jtj\documents\visual studio 2010\Projects\IT_Service\IT_Service\AddUser.aspx.cs:401   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691

    is there any one there can help me? 

    Friday, May 6, 2011 7:51 AM

Answers

  • User1697457068 posted

    i think this link is usefull for u

     

    http://ferrysoft.co.uk/supportkb20040409.htm

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 6, 2011 4:36 PM
  • User-1844117248 posted

    im using windows login on my asp.net page and im using a administrator account.

     

    it seams to be when i send the 

     user.CommitChanges(); 
    

    Command to my active diretory it was working perfeckt in vs2010 but when i put it on the server i get this error 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 9, 2011 2:43 AM

All replies

  • User1697457068 posted

    i think this link is usefull for u

     

    http://ferrysoft.co.uk/supportkb20040409.htm

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 6, 2011 4:36 PM
  • User-1844117248 posted

    im using windows login on my asp.net page and im using a administrator account.

     

    it seams to be when i send the 

     user.CommitChanges(); 
    

    Command to my active diretory it was working perfeckt in vs2010 but when i put it on the server i get this error 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 9, 2011 2:43 AM