A client application must connect to a .NET Framework remoting class that is running in a Windows service that is deployed to a computer named APPSERVER1.
The class is named SimpleMathClass and it exists within a namespace named SimpleMath in an assembly named SimpleMathLib.
It is exposed through the TCP and it is configured with the objectUri attribute set to SimpleMath.rem.
You write the following XML configuration settings in the App.config file of the client application.
<configuration>
<system.runtime.remoting>
<application>
</application>
</system.runtime.remoting>
</configuration>
You need to ensure that the client application can connect to the remoting class.
What should you do?
A.
Add the following XML configuration settings to the application element of the client application’s App.config file.
<service name=”SimpleMathHost”>
<wellknown mode=”SingleCall” type=”SimpleMath.SimpleMathClass, SimpleMathLib” objectUri=”SimpleMath.rem”/>
</service>
B.
Add the following XML configuration settings to the application element of the client application’s App.config file.
<client>
<wellknown type=”SimpleMath.SimpleMath, SimpleMath” url=”http://APPSERVER1:3085/SimpleMathHost/SimpleMath.rem”/>
</client>
C.
Add the following XML configuration settings to the application element of the client application’s App.config file.
<service name=”SimpleMathHost”>
<wellknown mode=”Singleton” type=”SimpleMath.SimpleMathClass, SimpleMathLib” objectUri=”SimpleMath.rem”/>
</service>
D.
Add the following XML configuration settings to the application element of the client application’s App.config file.
<client>
<wellknown type=”SimpleMath.SimpleMathClass, SimpleMathLib” url=”tcp://APPSERVER1:3085/SimpleMath.rem”/>
</client>