What should you do?

You create a .NET Remoting object named Time. The Time class is in the Utils namespace and is in an assembly file named Fabrikam.dll.

The Time class is hosted in an Internet Information Services (IIS) virtual directory named UtilsSvr. The Time class is configured to be a server-activated object and uses a URI named Time.rem.

You use a client application named Test.exe to test the Time object. Test.exe creates instances of the Time object by using the following method signature:

public Time CreateInstance() {
RemotingConfiguration.Configure(“Test.exe.config”);
return new Time();
}

You want Test.exe to create instances of the Time class on a computer named Hosting.

What should you do?

You create a .NET Remoting object named Time. The Time class is in the Utils namespace and is in an assembly file named Fabrikam.dll.

The Time class is hosted in an Internet Information Services (IIS) virtual directory named UtilsSvr. The Time class is configured to be a server-activated object and uses a URI named Time.rem.

You use a client application named Test.exe to test the Time object. Test.exe creates instances of the Time object by using the following method signature:

public Time CreateInstance() {
RemotingConfiguration.Configure(“Test.exe.config”);
return new Time();
}

You want Test.exe to create instances of the Time class on a computer named Hosting.

What should you do?

A.
Create a Test.exe.config file that includes the following code segment:
<configuration> <system.runtime.remoting>
<application> <client>
<wellknown
type=”Utils.Time, Fabrikam”
url=”tcp://Hosting:80/UtilsSvr/Time.rem”/>
</client> </application>
</system.runtime.remoting> </configuration>

B.
Create a Test.exe.config file that includes the following code segment:
<configuration> <system.runtime.remoting>
<application> <client>
<wellknown
type=”Utils.Time, Fabrikam”
url=”http://Hosting/UtilsSvr/Time.rem”/>
</client> </application>
</system.runtime.remoting> </configuration>

C.
Create a Test.exe.config file that includes the following code segment:
<configuration> <system.runtime.remoting>
<application>
<client url=”http://Hosting/UtilsSvr/Time.rem”>
<activated
type=”Utils.Time, Fabrikam”/>
</client> </application>
</system.runtime.remoting> </configuration>

D.
Create a Test.exe.config file that includes the following code segment:
<configuration> <system.runtime.remoting>
<application>
<client url=”tcp://Hosting:80/UtilsSvr/Time.rem”>
<activated
type=”Utils.Time, Fabrikam”/>
</client> </application>
</system.runtime.remoting> </configuration>



Leave a Reply 0

Your email address will not be published. Required fields are marked *