B
Brad Wood
Been working off and on with this for quite some time with no luck.
Last request before scrapping it.
Using a web service running framework 1.1 I'm creating threads and
making http calls within them.
The problem I'm having is that I get 2 exceptions (can't narrow down to
a particular line of my code - none of my exception handlers catch it)
when the http calls take a long time (which they do consistently):
<AbbreviatedStack>
[AppDomainUnloadedException]: Attempted to access an unloaded AppDomain.
at System.Threading.Thread.SetCompressedStackInternal()
at System.Threading.Thread.SetCompressedStack()
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()
[ConfigurationException]: The XML file [machine.config] could not be
loaded. Attempted to access an unloaded AppDomain.
at System.Web.Configuration.HttpConfigurationSystem.CacheLookup()
at System.Web.Configuration.HttpConfigurationSystem.ComposeConfig()
at System.Web.HttpContext.GetCompleteConfigRecord()
at System.Web.HttpContext.GetCompleteConfig()
at System.Web.HttpContext.GetConfig()
at System.Web.HttpContext.GetMachineConfig()
at System.Web.HttpContext.GetAppLKGConfig()
</AbbreviatedStack>
I've tried all sorts of things like:
- Modified ASP.NET settings
- Reinstalled the framework and hotfix.
- Tried Thread.Sleep(0) in various places hoping to prevent some kind of
deadlock.
Is there a threading issue in general or any other clue someone might
have for me?
- desperate.
Last request before scrapping it.
Using a web service running framework 1.1 I'm creating threads and
making http calls within them.
The problem I'm having is that I get 2 exceptions (can't narrow down to
a particular line of my code - none of my exception handlers catch it)
when the http calls take a long time (which they do consistently):
<AbbreviatedStack>
[AppDomainUnloadedException]: Attempted to access an unloaded AppDomain.
at System.Threading.Thread.SetCompressedStackInternal()
at System.Threading.Thread.SetCompressedStack()
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()
[ConfigurationException]: The XML file [machine.config] could not be
loaded. Attempted to access an unloaded AppDomain.
at System.Web.Configuration.HttpConfigurationSystem.CacheLookup()
at System.Web.Configuration.HttpConfigurationSystem.ComposeConfig()
at System.Web.HttpContext.GetCompleteConfigRecord()
at System.Web.HttpContext.GetCompleteConfig()
at System.Web.HttpContext.GetConfig()
at System.Web.HttpContext.GetMachineConfig()
at System.Web.HttpContext.GetAppLKGConfig()
</AbbreviatedStack>
I've tried all sorts of things like:
- Modified ASP.NET settings
- Reinstalled the framework and hotfix.
- Tried Thread.Sleep(0) in various places hoping to prevent some kind of
deadlock.
Is there a threading issue in general or any other clue someone might
have for me?
- desperate.