How to fix Error message: Attempted to read or write protected memory.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mabubakarpk
    New Member
    • Feb 2007
    • 62

    #1

    How to fix Error message: Attempted to read or write protected memory.

    I am using asp.net framework 2.0. I am facing following error message

    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"

    For more detail Plz see the attached file.

    Any one can help.

    Thanks in advance.

    Regards,
    Abu Bakar

    Code:
    'Error
    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.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    
    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: 
    
    
    [AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
       System.Web.UnsafeNativeMethods.CreateUserToken(String name, String password, Int32 fImpersonationToken, StringBuilder strError, Int32 iErrorSize) +0
       System.Web.Configuration.IdentitySection.CreateUserToken(String name, String password, String& error) +185
       System.Web.Configuration.IdentitySection.InitializeToken() +57
       System.Web.Configuration.IdentitySection.get_ImpersonateToken() +56
       System.Web.Configuration.IdentitySection.ValidateCredentials() +8899181
       System.Web.Configuration.IdentitySection.GetRuntimeObject() +74
       System.Configuration.RuntimeConfigurationRecord.GetRuntimeObjectWithRestrictedPermissions(ConfigurationSection section) +72
       System.Configuration.RuntimeConfigurationRecord.GetRuntimeObject(Object result) +129
    
    [ConfigurationErrorsException: An error occurred executing the configuration section handler for system.web/identity.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890767
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259
    
     
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614
    Attached Files
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    refer this link seems like some unmanaged code issue somewhere in your code.
    The home for technical questions and answers at Microsoft. Get started asking, answering, and browsing questions about products like .Net, Azure, or Teams.

    Comment

    Working...