471,108 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

Alternating failure on long request executions

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

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...

[AppDomainUnloadedException]: Attempted to access an unloaded AppDomain.
at System.Threading.Thread.SetCompressedStackInternal (IntPtr
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])
System.Web.Configuration.HttpConfigurationSystem.C acheLookup(String vpath)
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)
Dec 3 '05 #1
0 1149

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.