Επεξεργασία

Κοινή χρήση μέσω


IComSoapPublisher.GetAssemblyNameForCache(String, String) Method

Definition

Returns the full path for a strong-named signed generated assembly in the SoapCache directory.

public:
 void GetAssemblyNameForCache(System::String ^ TypeLibPath, [Runtime::InteropServices::Out] System::String ^ % CachePath);
public void GetAssemblyNameForCache (string TypeLibPath, out string CachePath);
abstract member GetAssemblyNameForCache : string * string -> unit
Public Sub GetAssemblyNameForCache (TypeLibPath As String, ByRef CachePath As String)

Parameters

TypeLibPath
String

The path for the file that contains the typelib.

CachePath
String

When this method returns, this parameter contains the full path of the proxy assembly in the SoapCache directory.

Exceptions

TypeLibPath is null.

The caller does not have the required permission.

The file name is empty, contains only white spaces, or contains invalid characters.

Access to TypeLibPath is denied.

The specified path, file name, or both exceed the system-defined maximum length.

TypeLibPath contains a colon (:) in the middle of the string.

Remarks

For an unmanaged COM+ component to be published through .NET remoting as a SOAP endpoint, a proxy needs to be generated to make the unmanaged components available to the .NET Framework. This is done by programmatically performing the same steps as Type Library Importer (Tlbimp.exe), the Windows SDK tool that is used to convert unmanaged COM+ type libraries to proxy metadata assemblies. For client activation over SOAP to succeed, however, client and server machines must share the same strong-named signed metadata proxies. For this reason, when a managed proxy assembly is generated for an unmanaged COM+ component, a strong name key is also generated and used to sign the proxy assembly.

Applies to