Attempted to read or write protected memory. This is often anindication that other memory is corrupt

Discussion in 'ASP .Net' started by jaburg@gmail.com, Feb 6, 2008.

  1. Guest

    Hi,

    I am trying to consume a webservice and get the following error. The
    weird things is, if i run it on the localhost (so on the production
    webserver itself) it works fine!

    Any help greatly appreciated!


    Bas Jaburg
    Amsterdam, The Netherlands


    Attempted to read or write protected memory. This is often an
    indication that other memory is corrupt.
    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:


    Line 78: req.PreAuthenticate = true;
    Line 79:
    Line 80: WebResponse resp = req.GetResponse();
    Line 81:
    Line 82: stm = resp.GetResponseStream();


    Source File: c:\Inetpub\wwwroot\staging.steape.com\App_Code\ANWB.cs
    Line: 80

    Stack Trace:


    [AccessViolationException: Attempted to read or write protected
    memory. This is often an indication that other memory is corrupt.]
    System.RuntimeTypeHandle._GetTypeByName(String name, Boolean
    throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
    StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
    System.RuntimeTypeHandle.GetTypeByName(String name, Boolean
    throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
    StackCrawlMark& stackMark) +78
    System.RuntimeType.PrivateGetType(String typeName, Boolean
    throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
    StackCrawlMark& stackMark) +58
    System.Type.GetType(String typeName, Boolean throwOnError, Boolean
    ignoreCase) +64

    System.Net.Configuration.AuthenticationModulesSectionInternal..ctor(AuthenticationModulesSection
    section) +230

    [ConfigurationErrorsException: Error creating the modules specified in
    the 'system.net/authenticationModules' configuration section.]

    System.Net.Configuration.AuthenticationModulesSectionInternal..ctor(AuthenticationModulesSection
    section) +453

    System.Net.Configuration.AuthenticationModulesSectionInternal.GetSection()
    +120
    System.Net.AuthenticationManager.get_ModuleList() +90
    System.Net.AuthenticationManager.Authenticate(String challenge,
    WebRequest request, ICredentials credentials) +167
    System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest
    httpWebRequest, ICredentials authInfo) +242
    System.Net.HttpWebRequest.CheckResubmitForAuth() +243
    System.Net.HttpWebRequest.CheckResubmit(Exception& e) +93
    System.Net.HttpWebRequest.DoSubmitRequestProcessing(Exception&
    exception) +94
    System.Net.HttpWebRequest.ProcessResponse() +45
    System.Net.HttpWebRequest.SetResponse(CoreResponseData
    coreResponseData) +410

    [WebException: The request was aborted: The request was canceled.]
    System.Net.HttpWebRequest.GetResponse() +885
    ANWB.ConsumeWebService(String url, String postXML, String userName,
    String password) in c:\Inetpub\wwwroot\staging.steape.com\App_Code
    \ANWB.cs:80
    ANWB.CheckMember(String lidNummer) in c:\Inetpub\wwwroot
    \staging.steape.com\App_Code\ANWB.cs:35
    Templates_ANWB.btnCheck_Click(Object sender, EventArgs e) in c:
    \Inetpub\wwwroot\staging.steape.com\Templates\ANWB.ascx.cs:27
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String
    eventArgument) +107

    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
    eventArgument) +7
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
    sourceControl, String eventArgument) +11
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    +33
    System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    +1746




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.1378;
    ASP.NET Version:2.0.50727.1378
    , Feb 6, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. humbleaptience
    Replies:
    0
    Views:
    5,478
    humbleaptience
    Feb 22, 2006
  2. =?Utf-8?B?am9obm55Rw==?=

    Attempted to read or write protected memory

    =?Utf-8?B?am9obm55Rw==?=, Apr 19, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,684
    =?Utf-8?B?am9obm55Rw==?=
    Apr 19, 2006
  3. Dhruba Bandopadhyay
    Replies:
    0
    Views:
    5,218
    Dhruba Bandopadhyay
    May 12, 2006
  4. humbleaptience
    Replies:
    2
    Views:
    2,083
    humbleaptience
    Sep 7, 2006
  5. Sudhan
    Replies:
    1
    Views:
    633
Loading...

Share This Page