PC Review


Reply
Thread Tools Rate Thread

I am missing something but cant think what

 
 
Mark Shehan
Guest
Posts: n/a
 
      8th Aug 2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports - Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing) Les Caudle Microsoft ASP .NET 3 3rd Sep 2007 03:27 AM
Missing Tasbar, Missing Start Button, Missing Desktop Icons =?Utf-8?B?TWlrZSBGaXNoZXI=?= Windows XP General 1 27th Dec 2005 09:03 PM
On Error? Creates 1 missing worksheet then never detects any other missing worksheets Craigm Microsoft Excel Programming 2 1st Aug 2005 02:39 PM
can't boot up -- system file missing -- INF txtsetup.sif missing on bootdisks jen katz Windows XP Performance 0 27th Dec 2003 12:34 AM
Correct missing fixed font, missing registry data Mark Kraft Windows XP Embedded 2 9th Jul 2003 05:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 AM.