473,756 Members | 6,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Very strange error: CLR has been unable to transition from COM context

I ran into a very strange error tonight. I was working with web services
and typed datasets. The web server I was using happens to be on the
other end of a virtual network (Hamachi).

Everything was working fine. I added one more row of data to the table
and all of a sudden one web method started failing. I initially thought
the web service was timing out but after a while the following exception
was thrown:

The CLR has been unable to transition from COM context 0x1a2008 to COM
context 0x1a2178 for 60 seconds

I thought there might be some funny stuff going on since it was working
fine just moments ago. So, I rebooted both boxes, tried VS 2005 and
VS2003 on the client end. (VS2003 is running on the web server side.)
The client would not work remotely, but if I ran the client locally on
the server, it would work fine.

I was running out of ideas and decided to delete the last couple rows I
added from the database and everything started working again. Crazy. I
hope this doesn't happen in production -- can't really just delete
production rows to get something to work. (There was nothing odd about
the data, no SQL injection etc.)

I believe the line of code it was failing on (and hence the post in this
newsgroup) was in the web reference generated code:
protected override void ReadXmlSerializ able(XmlReader reader) {
this.Reset();
DataSet ds = new DataSet();
ds.ReadXml(read er); // <------------ CRASH HERE
if ((ds.Tables["OrganizationLi st"] != null)) {
this.Tables.Add (new OrganizationLis tDataTable(ds.T ables
["OrganizationLi st"]));
}
this.DataSetNam e = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensit ive = ds.CaseSensitiv e;
this.EnforceCon straints = ds.EnforceConst raints;
this.Merge(ds, false, System.Data.Mis singSchemaActio n.Add);
this.InitVars() ;
}

The fact that it was happening in both 2003 and 2005 makes me think
there is something going wrong in the XML stack somewhere, but that's
just a wild guess.

I thought I would post this incase other people get the same error. Good
luck!

--
Don Rixtown
don[dot]rixtown[at]gmail[dot]com
Nov 30 '06 #1
1 8188
Don Rixtown wrote:
protected override void ReadXmlSerializ able(XmlReader reader) {
this.Reset();
DataSet ds = new DataSet();
ds.ReadXml(read er); // <------------ CRASH HERE
What is the reader instance here?
--
Oleg Tkachenko [XML MVP, MCPD]
http://blog.tkachenko.com | http://www.XmlLab.Net | http://www.XLinq.Net
Nov 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1165
by: Mark | last post by:
I believe this is an ASP.Net 2 framework problem because the ASP Admin Service fails to start with the message - "Error 2 - The system cannot find the file specified" I get the following error trying to start Report Manager after installing SQL2005 beta December CTP. I installed side-by-side with a full SQL2000 implementation on Windows 2003 Server: Server Error in '/Reports$SQL2005' Application.
0
23508
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub) 5: Procedure call or argument is not valid. 6: Overflow. 7: Out of memory.
2
2240
by: jwray | last post by:
Hello All, I am migrating some scripts to .NET. This has been a learning experience to say the least. The whole script pull a list of computers through an LDAP call to AD. It then writes the computer names to a file. The file is then read, pings the computer and then if it is alive, checks the OS. Private Sub ParseComputerList()
669
26158
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
2
1815
by: kavyak | last post by:
This is not a mere error. because,whatever input i give from jsp, its getting updated in mysql but the page is showing some internal error.The error looks like this.Plz tell me if someone knows the cause. org.springframework.webflow.ActionExecutionException: Exception thrown executing action 'net.jdev.jtrac.web.webflow.UserFormAction@1485542' in state 'userForm' of flow 'userCreateFlow'; nested exception is...
8
5360
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we dont wan't a single point of failure we use SQL Session State. I have setup a persistant sql session state database on a SQL 2000 server (this is a cluster in production, so no SPOF) I have setup our web.config files to include; " <sessionState...
2
6827
by: satnamsarai | last post by:
Using System.Net.Mail: Sometimes I get error 'failure sending mail. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.' Not sure how to fix this error. I am able to send messages sometimes both other times randomly following error appear EXCEPTION:
112
4750
by: Prisoner at War | last post by:
Friends, your opinions and advice, please: I have a very simple JavaScript image-swap which works on my end but when uploaded to my host at http://buildit.sitesell.com/sunnyside.html does not work. To rule out all possible factors, I made up a dummy page for an index.html to upload, along the lines of <html><head><title></title></ head><body></body></html>.; the image-swap itself is your basic <img src="blah.png"...
1
3015
by: =?Utf-8?B?SkI=?= | last post by:
Hello As I debug the C# code with a break point and by pressing F11 I eventually get a message stating: ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x17aeb8 to COM context 0x17abd8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages.
0
9454
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9271
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9868
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5139
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3352
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2664
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.