Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Attempted to read or write protected memory. This is often anindication that other memory is corrupt.

Reply
Thread Tools

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

 
 
jaburg@gmail.com
Guest
Posts: n/a
 
      02-06-2008
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\ANW B.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.AuthenticationModulesSect ionInternal..ctor(AuthenticationModulesSection
section) +230

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

System.Net.Configuration.AuthenticationModulesSect ionInternal..ctor(AuthenticationModulesSection
section) +453

System.Net.Configuration.AuthenticationModulesSect ionInternal.GetSection()
+120
System.Net.AuthenticationManager.get_ModuleList() +90
System.Net.AuthenticationManager.Authenticate(Stri ng 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.DoSubmitRequestProcessin g(Exception&
exception) +94
System.Net.HttpWebRequest.ProcessResponse() +45
System.Net.HttpWebRequest.SetResponse(CoreResponse Data
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.RaisePostBackEven t(String
eventArgument) +107

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Attempted to read or write protected memory. This is often anindication that other memory is corrupt. Sudhan ASP .Net 1 01-22-2008 12:07 PM
Desperate Need Of Help "Attempted To Read Or Write Protected Memory" humbleaptience ASP .Net 2 09-07-2006 02:47 PM
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Dhruba Bandopadhyay ASP .Net 0 05-12-2006 01:24 PM
Attempted to read or write protected memory =?Utf-8?B?am9obm55Rw==?= ASP .Net 0 04-19-2006 08:14 PM
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" humbleaptience ASP .Net 0 02-22-2006 06:23 PM



Advertisments