473,609 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
+ 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.InvalidO perationExcepti on 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="mscorli b"
StackTrace:
at System.Threadin g.Synchronizati onContextSwitch er.Undo()
at System.Threadin g.ExecutionCont extSwitcher.Und o()
at System.Threadin g.ExecutionCont ext.runFinallyC ode(Object userData,
Boolean exceptionThrown )
at
System.Runtime. CompilerService s.RuntimeHelper s.ExecuteBackou tCodeHelper(Obj ect backoutCode, Object userData, Boolean exceptionThrown )
at
System.Runtime. CompilerService s.RuntimeHelper s.ExecuteCodeWi thGuaranteedCle anup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threadin g.ExecutionCont ext.RunInternal (ExecutionConte xt
executionContex t, ContextCallback callback, Object state)
at System.Threadin g.ExecutionCont ext.Run(Executi onContext
executionContex t, ContextCallback callback, Object state)
at System.Net.Cont extAwareResult. Complete(IntPtr userToken)
at System.Net.Lazy AsyncResult.Pro tectedInvokeCal lback(Object result,
IntPtr userToken)
at
System.Net.Sock ets.BaseOverlap pedAsyncResult. CompletionPortC allback(UInt32
errorCode, UInt32 numBytes, NativeOverlappe d* nativeOverlappe d)
at
System.Threadin g._IOCompletion Callback.Perfor mIOCompletionCa llback(UInt32
errorCode, UInt32 numBytes, NativeOverlappe d* 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 1522
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
2670
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 Internet Explorer in it then will it cause an error if version Internet Explorer is the same one as WebBrowser which is in my project? Is it this control which Internet Explorer uses? If that can cause errors of version then, instead, can I install this...
0
1289
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, win32com build 163, Windows XP, IExp ver 6.0.2800). During a session, many COM controls are installed in order to trace actions inside the Internet Explorer. After a certain amount (100?) of sessions (each about 2 until 5 minutes), allocating a new...
1
2109
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 I don't want to write any new COM code. As far as I can see my options are; - no-touch install windows app (with embedded control) - .NET User control (with embedded control)
4
1450
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 any docs on whether its really viable? I want the asp.net pages to have an appearance of no visible postback. thanks
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 http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=72&tabindex=2 which is a quite nice control). I understand that the Microsoft® Internet Explorer WebControls are currently not supported but probably somebody else had this problem and knows a solution for this dilemma I try...
0
1180
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 was opened in a normal instance of Word. Is this possible? The thing is: when i try to open the Template in internet explorer (note that i'm using a browser embedded in a WindowsForm), the Embedded Word is not customized at all...
2
3108
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. I have a DLL containing a form which hosts the IE Browser control, using the AxInterop stuff that is generated when you add a reference to the COM ShDocVw
1
3500
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 products events which I want to consume (sink) within Internet Explorer. I'm following the instructions at: ms-http://support.microsoft.com/default.aspx?kbid=313891.
9
7719
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 in a database. Am I better off learning VB.net or C#.net? Is there a free development environment for C# as well?
0
8524
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...
1
8210
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8394
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6990
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, and deployment—without 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
6052
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
5507
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4013
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
2527
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
0
1379
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.