com+

VSS Hardware provider

核能气质少年 提交于 2019-12-24 09:54:26
问题 I've been trying to follow the instructions to install the example VSS hardware provider that comes with the Windows SDK. Unfortunately COM refuses to register the DLL, giving the following output: Unregistering the existing application... - Create the catalog object - Get the Applications collection - Populate... - Search for VssSampleProvider application... - Saving changes... Done. Creating a new COM+ application: - Creating the catalog object - Get the Applications collection - Populate..

Would this method of installing COM+ work?

冷暖自知 提交于 2019-12-24 06:35:06
问题 I've been trying to use WiX 3.7 to install a COM+ assembly . I've been using several WiX code snippets I found here on StackOverflow. Although I can generate an MSI, when I then install the msi it fails with errors that look like this: RegisterComPlusAssemblies: DLL: C:\Program Files\Kutana\Kappris\Carson.dll ComPlusInstallExecute: ExceptionInfo: Code='0', Source='System.EnterpriseServices', Description='Could not install type library 'C:\Program Files\Kutana\Kappris\Carson.tlb' into

What's the purpose of COM+ library applications?

落花浮王杯 提交于 2019-12-23 09:41:13
问题 When a COM+ application is created the wizard offers to choose between a library and a server application. A server application is activated in a separate process and this can be used to cheaply interop 64-bit consumers with 32-bit in-proc COM components. What's the use of library applications that are activated right in the caller process? Why use them instead of plain old in-proc COM servers? 回答1: There are several: Performance - it is a bit faster as you don't have to go through the

COM+ Server configuration with custom ConfigurationSection

时光怂恿深爱的人放手 提交于 2019-12-23 03:57:17
问题 I have a COM+ server hosting a .Net component which implements ServicedComponent. The COM+ server needs to access a configuration file in which a custom configuration section has been defined. I can load the configuration fine with the following code: ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap(); fileMap.ExeConfigFilename = @"%MY_FOLDER_WITH_ALL_DLLS%\MyComServer.dll.config"; Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap,

C# - Retrieve properties of a COM+ component?

白昼怎懂夜的黑 提交于 2019-12-22 06:29:10
问题 I have a COM+ component on a server (Windows Server 2003). Is there any way I can programmatically retrieve the properties of this component, (e.g. the constructor string used)? When I go to Administritive Tools -> Component Services -> COM+ Applications and right click on my component, these are the properties I want to be able to retrieve and write to a file. Is there any way I can do this? Thanks in advance. 回答1: You can use the COM+ Administration API to retrieve the properties of a

C# - Retrieve properties of a COM+ component?

左心房为你撑大大i 提交于 2019-12-22 06:29:03
问题 I have a COM+ component on a server (Windows Server 2003). Is there any way I can programmatically retrieve the properties of this component, (e.g. the constructor string used)? When I go to Administritive Tools -> Component Services -> COM+ Applications and right click on my component, these are the properties I want to be able to retrieve and write to a file. Is there any way I can do this? Thanks in advance. 回答1: You can use the COM+ Administration API to retrieve the properties of a

Calling a remote COM+ ServicedComponent from a C# client

爱⌒轻易说出口 提交于 2019-12-21 13:02:26
问题 I have a serviced component installed in a COM+ server application. I want to create an instance from a remote client. The client needs to be able to specify the server machine's name dynamically. How do I do this? I tried using Activator: (XSLTransComponent.XSLTransformer)Activator.GetObject( typeof(XSLTransComponent.XSLTransformer), serverName ); But I get this: System.Runtime.Remoting.RemotingException: Cannot create channel sink to connect to URL 'server'. An appropriate channel has

Powershell COM+ settings

末鹿安然 提交于 2019-12-19 07:48:16
问题 I'm trying to set the following values with the powershell COMAdmin.COMAdminCatalog but I can't find the setting for the below in red. Any help would be appreciated. Thanks 回答1: For the properties in question see the Authentication property and the AccessLevelChecks property for the Applications Collection under COM+ Administration Collections. For a VBScript example on how to set the Authentication Level property see the answer to changing existing COM+ applications identity via vbs script.

C# ServicedComponent running out-of-process gets File Not Found exception on one machine

三世轮回 提交于 2019-12-13 19:33:31
问题 I've written a stupid-simple ServicedComponent (COM+ component) to run out-of-process and wrap an x86 only COM component on an x64 server. On my test VM (Server 2008 R2) it works fine. On the production box, I get a file not found exception. C:\Windows\Microsoft.NET\Framework\v2.0.50727>C:\Testapp.exe The system cannot find the file specified. (Exception from HRESULT: 0x80070002) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System

.Net COM+ from .Net project: System.IO.FileNotFoundException

心已入冬 提交于 2019-12-12 03:22:42
问题 I've written a .Net component that runs in a COM+ application. The component inherits from ServicedComponent and is marked to run as a server process (because I need to maintain static data through activations from multiple consumers). Registration is done using RegAsm.exe: c:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /codebase MyObject.dll The COM+ application was created manually and the component added after creation. If I instantiate my component from PHP the code works as