PrepAway - Latest Free Exam Questions & Answers

What should you do?

You create an assembly named SimpleMathLib.dll.
SimpleMathLib.dll contains a namespace named SimpleMath.
SimpleMath contains a .NET Framework remoting class named SimpleMathClass that inherits from the MarshalByRefObject class.
You deploy the SimpleMathLib assembly to the Bin folder under an IIS server virtual directory named SimpleMathHost that is on a server named Server1.
You need to configure the server application to initialize the SimpleMathClass class so that the class can be called by remoting client applications.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following XML to the configuration element of the Web.config file in the SimpleMathHost virtual directory.
<appSettings>
<add key=”SimpleMath.SimpleMathClass,SimpleMathLib” value=”http://server1/SimpleMathHost/SimpleMath.soap” />
</appSettings>

B.
Add the following XML code to the configuration element of the Web.config file in the SimpleMathHost virtual directory.
<system.runtime.remoting>
<application>
<client>
<wellknown type=”SimpleMath.SimpleMathClass, SimpleMathLib” url=”http://server1/SimpleMathHost/SimpleMath.soap”/>
</client>
</application>
</system.runtime.remoting>

C.
Add the following XML to the configuration element of the Web.config file in the SimpleMathHost virtual directory.
<system.runtime.remoting>
<application>
<service>
<wellknown mode=”SingleCall” type=”SimpleMath.SimpleMathClass, SimpleMathLib” objectUri=”SimpleMath.soap”/>
</service>
</application>
</system.runtime.remoting>

D.
Add the following XML code to the configuration element of the Web.config file in the SimpleMathHost
virtual directory.
<configSections>
<section name=”simpleMath” type=”SimpleMath.SimpleMathClass,SimpleMathLib” />
</configSections>
<simpleMath mode=”SingleCall”>
<url>
http: //server1/SimpleMathHost/SimpleMath.soap
</url>
</simpleMath>


Leave a Reply