The application called an interface that was marshalled for a different thread ?
hi all!i have a connection manager (windows authentication) in one of my packages, that is connecting to a remote server which is not there in my country.its working fine all the days! server is down for some reason very recently. because of that, i could not open my entire projectwhenever i try opening my project solution in BIDS, its opening the packages and validating it, and hang with an error!only one package has reference to the remote server. rest of my packages are referring some other servers.why this is happening?because of one package, the entire solutions hooked up?any solution in this regard!i attach the error message also with this post! even i could not copy from that alert window, i'm typing by my own Unable to cast COM object of the type 'System.__ComObject' to interface type 'Microsoft.SQLServer.Dts.Pipeline.Wrapper.IDTSObject90'. this operation failed because the query interface call on the COM component for the interface with IID '{some alphanumeric}' failed due to the following error. "The application called an interface that was marshalled for a different thread (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))"
July 24th, 2008 4:35pm

it has got fixed by its own, as and when the server is ready!i just wanna know what happen with the debugger?did anyone faced the same problem like me?
Free Windows Admin Tool Kit Click here and download it now
July 28th, 2008 8:49am

Hi Vivek!I got the same problem but for a Microsoft Office Word 2003 Addin (using Visual Studio 2005, .NET Framework 2.0 and VSTO 2005 SE).Mine says:Unable to cast COM object of type 'Microsoft.Office.Interop.Word.DocumentClass' to interface type 'Microsoft.Office.Interop.Word._Document'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{0002096B-0000-0000-C000-000000000046}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).This happens randomly and when I try to press a custom button within a custom menu in Word 2003 toolbar.Any help please?Regards,Nicu
October 16th, 2008 10:18am

hi nicu,remove all .net frameworks you have and install new version of .net 2.0, i think this will help.and one more thing, this is the forum for SSIS related stuffs, so better you find some forums for .net related in msdn! i think the moderator will move your post over there.all the best
Free Windows Admin Tool Kit Click here and download it now
October 16th, 2008 12:14pm

Thanks for your reply Vivek! I will try it.Sorry that I've posted here, didn't know. I will post it somewhere else in Office Addins Community.Happy programmin' Nicu
October 17th, 2008 11:52am

p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';} span.EmailStyle15 {font-family:'Calibri','sans-serif';color:windowtext;} .MsoChpDefault {font-size:10.0pt;} @page Section1 {size:8.5in 11.0in;margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} Hi, I get an error that looks like this: The application called an interface that was marshalled for a different thread This happens when trying to get the Content of WAB addresslist. I think I know why it happens, this list is accessed on another thread I have created but the strange thing is that it never happens over XP. Does any one know why? Does Vista fixed some COM APARTMENT issues? TX, Igal
Free Windows Admin Tool Kit Click here and download it now
November 12th, 2008 7:54pm

Nicu - Did you ever get a solution to this problem? I am having the exact same one and it is causing a real pain since every single time I use our program to prepare a cutomer quote (which should be closer to 100 times a day if it weren't for this issue), I have to shut down and restart my entire computer. ANY assistance to get this to stop would be greatly appreciated!! Unable to cast COM object type 'Microsoft.Office.Interop.Word.DocumentClass' to interface type 'Microsoft.Office.Interop.Word._Document'. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{0002096B-0000-0000-C000-000000000046}’ failed due to the following error: The application called an interface that was marshaled for a different thread. (Exception from HRESULT: 0x8001010E(RPC_E_WRONG_THREAD)).
November 9th, 2010 1:15pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics