473,484 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Internet Explorer exception with Embedded Control

Hi,

I'm not sure where to post this as it's about windows forms, web forms,
socket communication and embedded objects.

I am developing a smart client which is embedded in a webform. This client
software communicates with a third party windows service over sockets.
However I have a weird exception being raised in the AppDomain that I can't
handle. When I finish the socket communication (all asyncronous) I popup a
modal winform, which when closed causes the following exception;

System.InvalidOperationException was unhandled
Message="The Undo operation encountered a context that is different from
what was applied in the corresponding Set operation.
The possible cause is that a context was Set on the thread and not
reverted(undone)."
Source="mscorlib"
StackTrace:
at System.Threading.SynchronizationContextSwitcher.Un do()
at System.Threading.ExecutionContextSwitcher.Undo()
at System.Threading.ExecutionContext.runFinallyCode(O bject userData,
Boolean exceptionThrown)
at
System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteBackoutCodeHelper(Object backoutCode, Object userData, Boolean exceptionThrown)
at
System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(Exec utionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback (Object result,
IntPtr userToken)
at
System.Net.Sockets.BaseOverlappedAsyncResult.Compl etionPortCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at
System.Threading._IOCompletionCallback.PerformIOCo mpletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

The wierd thing is that, if I don't open the message window I don't get the
exception. The message window is just a form with a label and a button, so I
am assuming there is something lower level that is causing the above
exception?!?!

Any help would be appreciated as I have spent two days trying to figure this
one out.

Thanks,

Simon
Dec 2 '05 #1
1 1513
Hi Simon...

Are you using Framework v2.0?

If so I believe it's a bug on the Framework as it can be seen on MSDN
forum.

http://forums.microsoft.com/MSDN/Sho...73873&SiteID=1

Regards,

PJ

Dec 31 '05 #2

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

Similar topics

2
2662
by: Raymond H. | last post by:
Hello, I create a vb4 project which can also naviger on Internet via the WebBrowser control which I put on my form. My question is: if this program is installed on a station having already...
0
1276
by: Florian Fredegar Haftmann | last post by:
Hi! For a regression test setup on web interfaces, I use a test tool which in a very heavywight fashion uses the COM interface to the Internet Explorer (of course, from Python, ver 2.3.4,...
1
2095
by: Euan Crawford | last post by:
Can I do this? Is it even a good idea? I need to build an application that will self-install over the internet. The restriction is that the application uses a 3rd party ActiveX control. However...
4
1442
by: ilPostino | last post by:
I'm trying to find out if its possible to call webservices from a browser using c# or maybe some other script? I know the client would have to have ..net installed which is fine but I can't find...
1
475
by: Daniel Walzenbach | last post by:
Hi I’d like to know, whether it is possible to set enabled = false or visible = false on the tabs of the MultiPage WebControl at runtime (check out...
0
1176
by: Marco Mendonça | last post by:
Hi, I have a Template wich customizes Word toolbars and menus. I need to open this template in Internet Explorer and i expect that the Embedded Word will be customized as if the same Template...
2
3092
by: Graham | last post by:
Hi everyone I'm having a couple of problems with the Internet Explorer browser control. I'm using VS.NET 2003 on Win2k SP4 with IE6. First, let me briefly describe how it's used in my project....
1
3494
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
9
7710
by: Etayki | last post by:
Hi! I am new to VB.net and I am using the Visual Basic 2005 Express Edition I have two questions: 1. I am trying to write an application that will automate Internet Explorer and store data...
0
6950
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...
0
7140
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...
1
6811
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7209
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5403
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 project—planning, coding, testing,...
0
4527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3038
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
588
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
234
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...

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.