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

J

jaburg

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top