468,733 Members | 1,616 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

Alternating failure on long request executions

<environment>
Consuming a web service from a VS2005 beta 2 test harness on WinXP. Web
service built with VS2003 running on my machine with IIS 5X set to use
ASP.NET 1.1
</environment>

I have a web service that creates a thread for each request in an input
document. Each thread then makes an HttpWebRequest.GetResponse call.

When only one request is submitted in the input doc all is fine.

When several requests are sent in the input doc, the call to the service
takes over 2 minutes to complete. In these cases everything works fine
on every other attempt (success, failure, success, failure). When it
fails, ASP.NET returns:

"The XML file [path to machine.config] could not be loaded. Attempted to
access an unloaded AppDomain."

Most previous threads related to this problem had to do with unmanaged
C++ extensions in .net 1X. I tried increasing the
responseDeadlockInterval attribute in machine.config.

It sure seems to be related to ASP.NET behavior on long request
executions, but I don't know what else to look at...

<stackDump>
[AppDomainUnloadedException]: Attempted to access an unloaded AppDomain.
at System.Threading.Thread.SetCompressedStackInternal (IntPtr
unmanagedCompressedStack)
at System.Threading.Thread.SetCompressedStack(Compres sedStack stack)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Web.Configuration.XmlUtil.OpenXmlTextReader ()
at System.Web.Configuration.HttpConfigurationRecord.. ctor(String
filename, HttpConfigurationRecord parent, Boolean inheritable, String
path, String mappedPhysicalPath)
[ConfigurationException]: The XML file [machine.config] could not be
loaded. Attempted to access an unloaded AppDomain. ([machine.config])
at
System.Web.Configuration.HttpConfigurationSystem.C acheLookup(String vpath)
at
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap)
at System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap)
at System.Web.HttpContext.GetCompleteConfig(String path)
at System.Web.HttpContext.GetAppLKGConfig(String name)
</stackDump>
Dec 3 '05 #1
0 1103

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Andy | last post: by
1 post views Thread by Eirik Eldorsen | last post: by
reply views Thread by Marty Cruise | last post: by
33 posts views Thread by cesco | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.