com

Why does Regasm put ProgId into HKEY_CURRENT_USER?

旧城冷巷雨未停 提交于 2019-12-19 08:52:50
问题 I have two Virtual Machines that I wish to (Wix) install my software onto. One is Windows XP SP2 and another is Windows XP SP1. Neither of them use domains, and both of them have the local user Administrator with admin privileges. Running RegAsm.exe to register MyApp.dll on the machine with SP3 puts my ProgId in the folders: HKEY_CLASSES_ROOT\MyAppProgId HKEY_LOCAL_MACHINE\Software\Classes\MyAppProgId whereas running it on the SP2 machine puts it in the folders: HKEY_CLASSES_ROOT\MyAppProgId

How do I preserve COM binary compatibility for a .NET Assembly when properties are added?

≯℡__Kan透↙ 提交于 2019-12-19 07:49:07
问题 We have developed a .NET Assembly that stores language translation information and it needs to be consumed by a VB6 application. We would like to be able to change the translation information without having to recompile the application. The translation is provided by a two-file partial class called LanguageServices. One file is non-changing library methods, the other is all auto generated properties from a resx file and the regx is generated from a database of language translation information

Why is VBA's VarType function saying this COM object is a string? (Object is instance of COM version of .NET's System.Object class.) Is it a bug?

允我心安 提交于 2019-12-19 07:39:34
问题 Question summary When I use VBA's VarType function, passing it an instance of the Object class available in a mscorlib.dll library reference (a .NET library reference), the value returned is 8 . According to VBA documentation here, this means the object is a string. This seems ridiculous. My question is why is the VarType function returning a string-type value for instances of this Object class from the .NET-library VBA reference? Is it a bug? Background information I suspect that the fact

RPC_E_SERVERFAULT

白昼怎懂夜的黑 提交于 2019-12-19 07:37:11
问题 In my asp.net application I am calling one com component method using Interop dll. This is working fine in normal condition but In production sometimes its throwing below exception System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) I am suspecting that this is happening when large number of users are accessing same page simultaneously. Is somebody know solution or steps to debug this issue. I have

How can I access Windows COM objects in R v3?

被刻印的时光 ゝ 提交于 2019-12-19 05:54:11
问题 Some time ago, you used to be able to install the rcom package in R to use COM scripting (eg, access to external programs.) Unfortunately, it seems to be discontinued: Package ‘rcom’ was removed from the CRAN repository. Formerly available versions can be obtained from the archive. This depends on statconnDCOM, which nowadays restricts use, contrary to the CRAN policy for a package with a FOSS licence. See http://rcom.univie.ac.at/ and http://www.statconn.com/. Following the archive and

Read Outlook .msg File

南笙酒味 提交于 2019-12-19 05:53:07
问题 I believe that the only way to read an Outlook .msg file (in order to extra metadata like subject, attachments etc), is to use the Outlook API - the Application.Session.OpenSharedItem() method. If this is the case, then I am looking for way to run this code on our application server, which doesn't have MS OFfice or MS Outlook installed. I'm getting the error System.ArgumentException: progId not found. Outlook.Application Which of course is due to the absence of the Outlook application. Is

Read Outlook .msg File

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 05:52:32
问题 I believe that the only way to read an Outlook .msg file (in order to extra metadata like subject, attachments etc), is to use the Outlook API - the Application.Session.OpenSharedItem() method. If this is the case, then I am looking for way to run this code on our application server, which doesn't have MS OFfice or MS Outlook installed. I'm getting the error System.ArgumentException: progId not found. Outlook.Application Which of course is due to the absence of the Outlook application. Is

Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005

妖精的绣舞 提交于 2019-12-19 05:38:30
问题 What is the troubleshooting process for the "Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005" errors in .Net? To clarify: I am getting this at runtime, on my XP machine, with client being .net code running under admin account. {XXXX} refers to one of our in-house COM components. From what I understand, 0x80080005 refers to "permission denied", but where do I go to check/change the permissions? Or am I completely wrong here, and the

Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005

試著忘記壹切 提交于 2019-12-19 05:38:28
问题 What is the troubleshooting process for the "Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005" errors in .Net? To clarify: I am getting this at runtime, on my XP machine, with client being .net code running under admin account. {XXXX} refers to one of our in-house COM components. From what I understand, 0x80080005 refers to "permission denied", but where do I go to check/change the permissions? Or am I completely wrong here, and the

Calling Shell32.dll from .NET Windows Service

≯℡__Kan透↙ 提交于 2019-12-19 05:35:12
问题 I have a .NET 4.0 library that uses Shell32 and Folder.GetDetailsOf() to get metadata from WTV files. I have used it successfully with Console and Windows Forms apps without issue. But for some reason, when calling the component from a .NET 4.0 Windows Service, the call to initiate the Shell class causes a COM error. The code that fails inside the library: Shell32.Shell shell = new Shell(); The error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Shell32.Shell'.