comexception

System.Runtime.InteropServices.COMException (0x800A1436)

浪尽此生 提交于 2019-12-08 09:36:57
问题 We are trying to open a Word template which resides on a Shared Drive using Office Interop Services on an MVC application.The solution is working locally, but once is deployed to the server the following message appears: The File was not created: System.Runtime.InteropServices.COMException (0x800A1436): This file could not be found ApplicationPool is running under a domain user account which already has permissions on the shared drive. Any suggestion? 回答1: You may consider using the Open XML

MSBuild remoting to server throws COMException error

穿精又带淫゛_ 提交于 2019-12-08 08:35:22
问题 Ive got an MSBUILD script where ive set the Username and Password properties as below <MSBuild.ExtensionPack.Web.Iis7AppPool TaskAction="CheckExists" Name="@(WebSite -> '%(Name)')" MachineName="@(WebSite -> '%(MachineName)')" Username="username" UserPassword="password"> This throws the following error : COMException: Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine MYSERVER01 failed due to the following error: 800706ba

Lync: VideoWindows of AVModality.VideoChannel are null after successfully calling BeginStart (COMException HRESULT: 0x80029C4A TYPE_E_CANTLOADLIBRARY)

有些话、适合烂在心里 提交于 2019-12-06 14:44:33
We are currently trying to incorporate Lync communication (Lync SDK 2010) into our application and we have run into an issue with the VideoWindows ( CaptureVideoWindow , RenderVideoWindow ) of the AVModality 's VideoChannel : They are always null, even after successfully calling BeginStart . The connection is definitely established. We can talk. Our own video is shown in a remote Lync client. AVModalityState is Connected . VideoChannelState goes from Connecting to Receive to Send . It does not matter when and how we try to access them: Directly after BeginStart , in the AsyncCallback of

How to check ErrorCode for REGDB_E_CLASSNOTREG?

旧城冷巷雨未停 提交于 2019-12-06 05:31:45
try { // call to Com Method } catch (COMException e) { if (e.ErrorCode == 0x80040154) // REGDB_E_CLASSNOTREG. { // handle this error. } } I would like to check if com exception is thrown due to REGDB_E_CLASSNOTREG then handle it. I tried with the code above but it gives warning: Comparison to integral constant is useless; the constant is outside the range of type 'int' I believe this error is due to 0x80040154 is not in Int32 range. Can you suggest any possible solution? or Is there any other way to check this? Use the unchecked keyword: catch (COMException ex) { if (ex.ErrorCode == unchecked(

System.Runtime.InteropServices.COMException (0x800706BE) when getting contact.LastName

眉间皱痕 提交于 2019-12-04 13:57:47
问题 Some of our users are getting this exception sometimes (not for every contact): System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception from HRESULT: 0x800706BE) at Microsoft.Office.Interop.Outlook._ContactItem.get_LastName() This happens when we're trying to get the last name of a contact (of the ContactItem type). Does anybody know what the problem is? Any help would be appreciated. Thanks! 回答1: It is a Windows error, facility code 7. The last

WebBrowser.Navigate(…) throws COMException

↘锁芯ラ 提交于 2019-12-04 11:06:21
问题 I'm developing an Internet Explorer command button that will open a specific web page once clicked. Here's a snippet of code ( IEApp is a reference to an instance of IE.WebBrowser ): IEApp.Navigate(sURL, ref one, ref two, ref three, ref four); The above line throws the following COMException: Exception Source: Interop.SHDocVw Exception Type: System.Runtime.InteropServices.COMException Exception Message: The requested resource is in use. (Exception from HRESULT: 0x800700AA) Exception Target

Using Interop.MODI Throws 0x80040154 Exception

你。 提交于 2019-12-04 03:26:21
I am currently trying to implement the Interop.MODI.dll (From Microsoft Office) to use the Image -> Text features it should Provide. But when doing var modi = new MODI.DocumentClass(); I get: "COMException 80040154 with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B}". What have I tried to solve that problem? I registered the DLL using the regasm tool: -Problem still exists I tried setting the BuildPlatform to x86: -Problem still exists I use the Visual Studio 2010 Ultimate with Windows 7 Professional 64Bit & Have Microsoft Office 2007 installed EDIT: I found the Solution: I needed to install the

System.Runtime.InteropServices.COMException (0x800706BE) when getting contact.LastName

只愿长相守 提交于 2019-12-03 20:13:03
Some of our users are getting this exception sometimes (not for every contact): System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception from HRESULT: 0x800706BE) at Microsoft.Office.Interop.Outlook._ContactItem.get_LastName() This happens when we're trying to get the last name of a contact (of the ContactItem type). Does anybody know what the problem is? Any help would be appreciated. Thanks! It is a Windows error, facility code 7. The last word gives the Windows error, 0x6be == 1726: // MessageId: RPC_S_CALL_FAILED // // MessageText: // // The

Catastrophic failure (Exception from HRESULT: 0x8000FFFF) creating a playlist with axwindowsMediaPlayer

痴心易碎 提交于 2019-12-01 21:33:58
问题 I am using the axwindowsMediaPlayer object to show videos in a winform. In particular I want to play a playlist. Everything works fine on my pc (win7) and used to work fine also in another pc with winXP (the pc of the final user). But something happened a couple of days ago: on the XP PC I started to receive the following expcetion Unhandled Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) System.Runtime.InteropServices.COMException Stack Trace: at WMPLib

Catastrophic failure (Exception from HRESULT: 0x8000FFFF) creating a playlist with axwindowsMediaPlayer

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 20:40:31
I am using the axwindowsMediaPlayer object to show videos in a winform. In particular I want to play a playlist. Everything works fine on my pc (win7) and used to work fine also in another pc with winXP (the pc of the final user). But something happened a couple of days ago: on the XP PC I started to receive the following expcetion Unhandled Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) System.Runtime.InteropServices.COMException Stack Trace: at WMPLib.IWMPPlaylistCollection.newPlaylist(String bstrName) at BrinaS941.ScreenSaverVideo.ScreenSaver_Load(Object