« Previous Next »

Thread: AccessViolationException

Last post 05-09-2009 3:19 PM by steve schofield. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 05-08-2009, 4:36 PM

    • alexeyb
    • Not Ranked
    • Joined on 05-08-2009, 5:23 PM
    • Posts 4

    AccessViolationException

    What can be the reason of the following exception in ASP.NET application under IIS 7?

     

    Exception: System.AccessViolationException

    Message: Attempted to read or write protected memory. This is often an indication that other memory has been corrupted.


    StackTrace:

       in System.Web.Hosting.UnsafeIISMethods.MgdIsLastNotification(IntPtr pRequestContext, RequestNotificationStatus dwStatus)
       in System.Web.HttpRuntime.FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, RequestNotificationStatus& status)
       in System.Web.HttpRuntime.OnRequestNotificationCompletionHelper(IAsyncResult ar)
       in System.Web.HttpRuntime.OnRequestNotificationCompletion(IAsyncResult ar)
       in System.Web.HttpAsyncResult.Complete(Boolean synchronous, Object result, Exception error, RequestNotificationStatus status)
       in System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
       in System.Web.HttpApplication.ResumeStepsWaitCallback(Object error)
       in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       in System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
       in System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

  • 05-08-2009, 11:22 PM In reply to

    Re: AccessViolationException

  • 05-09-2009, 2:49 AM In reply to

    • alexeyb
    • Not Ranked
    • Joined on 05-08-2009, 5:23 PM
    • Posts 4

    Re: AccessViolationException

     Thanks for your answer.

    I don't use Telerik. I have rather low level web service which doesn't use pages architecture at all. It is a set of sync and async http handlers.

    Also there are paraller threads running in the context of the application. Threads are created by Thread class or are taken from ThreadPool.

     I don't see that the second link is connected to the topic. Can it solve the problem?

    More info: sytem is running Windows Web Server 2008 64-bit.

  • 05-09-2009, 3:19 PM In reply to

    Re: AccessViolationException

    It can help with the error on the corrupted memory.   I ran into this with MOSS and W2k8 / x64, it helped with the error. 

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (4 items)
Microsoft Communities