Cannot get remoting to work in IIS host
I have a class library with one class in it which inherits marshalbyrefobject.
I created a web config file as follows:
<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="RemotingServer.TestClass, RemotingServer" objecturi="TestClass.rem"/>
</service>
</application>
</system.runtime.remoting>
I created a virtual directory in IIS (RemotingTestHost) and copied the web config in there and the assembly into the /bin folder.
I then tried to connect using Internet Explorer.http://localhost/RemotingTestHost/TestClass.rem?wsdl
I get an http 500 error and nothing else. Once i got a cannot find service error.
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 know this is supposed to work, and i have had similar ones work before. so what am i missing?

