ClrObjectFactory.CreateFromVroot(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Activates a remote assembly through .NET remoting, using the virtual root URL of the remote assembly.
public:
virtual System::Object ^ CreateFromVroot(System::String ^ VrootUrl, System::String ^ Mode);
public object CreateFromVroot (string VrootUrl, string Mode);
abstract member CreateFromVroot : string * string -> obj
override this.CreateFromVroot : string * string -> obj
Public Function CreateFromVroot (VrootUrl As String, Mode As String) As Object
Parameters
- VrootUrl
- String
The virtual root URL of the object to be activated.
- Mode
- String
Not used.
Returns
An instance of the Object representing the type, with culture, arguments, and binding and activation attributes set to null
, or null
if the assembly identified by the VrootUrl
parameter is not found.
Implements
Exceptions
A caller in the call chain does not have permission to access unmanaged code.
The thread token could not be opened.
Remarks
CreateFromVroot appends the string "?wsdl" to VrootUrl
and calls CreateFromWsdl to activate the remote object.
The version of SOAP used by .NET remoting is RPC/encoded, not document/literal, which is required for SOAP interoperability. Therefore, CreateFromVroot will not work with most ASMX Web services.
CreateFromVroot requires administrative privileges on the local computer the first time it is run, because it creates and installs a client proxy for communication with the remote assembly.