I am missing something but cant think what

M

Mark Shehan

I am using VS2005 and ASP.NET 2
I want to use IIS to host some .NET remoting.

I have a website I created called RemotingHost. I created another class
project called RemotingServer and in there a class called TestClass
(inherits Marshallbyrefobject for remoting). I then added the built
assembly to the bin folder on the RemotingHost website.
I created a web config file with system.runtime.remoting wellknown service
for the testclass as follows:

<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="RemotingServer.TestClass,
RemotingServer" objecturi="TestClass.rem"/>
</service>
</application>
</system.runtime.remoting>

I then created a windows client with a reference to the RemotingServer (just
for the metadata).
I created an app config file for the client too as follows:

<system.runtime.remoting>
<application>
<client>
<wellknown
type="RemotingServer.TestClass, RemotingServer"
url="http://localhost/RemotingTestHost/TestClass.rem"
/>
</client>
</application>
</system.runtime.remoting>

I call RemotingConfiguration.Configure but when i try to instantiate the
class i get an error saying it cannot find the service.

I have done similar thousands of times in .NET1.1 with no problems so what
am i missing on .NET2? The only thing i do differently is create the
TestClass in a seperate assembly (i used to create it in the website in 1.1
and reference from there but you cant do that in .NET2 unfortunately.

Anyone spot where i am going wrong? Any ideas on hosting a single class for
remoting in IIS in .NET2?

Thanks
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top