I have worked this a million different ways and i can not seem to get this correct.
I have a simple remote object that returns a "Hello Wold String".
I have a simple server that host the object.
Now this is where i stop before even making a client so that i can test it and i keep getting this dam error.
System.Runtime.Remoting.RemotingException: Requested Service not found
Here is the remote object:
using System;
using System.Collections.Generic;
using System.Text;
namespace ServiceObject
{
public class TheRemoteObject : MarshalByRefObject
{
public TheRemoteObject()
{
}
public string ReturnHello() { return "Hello World"; }
}
}
-------------------------------------------
Here is the global.asax:
<%@ Application Language="C#" %>
<%@ Import Namespace="System.Runtime.Remoting" %>
<script RunAt="server">
void Application_Start(object sender, EventArgs e)
{
RemotingConfiguration.Configure(Server.MapPath("/Web.Config"), false);
}
///rest removed for clarity
..
<configuration>
<appSettings/>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="SingleCall"
type="ServiceObject.TheRemoteObject, ServiceObject"
objectUri="TheRemoteObject.soap" />
</service>
<channels>
<channel ref="http"/>
<serverProviders>
<formatter ref="binary" />
</serverProviders>
</channels>
</application>
</system.runtime.remoting>
</configuration>
---------------
Now i have placed the remote object and the server into a vDir under wwwRoot
Here is what i type in the address bar:
http://localhost/ServiceServer/TheRemoteObject.soap
and here is the response:
System.Runtime.Remoting.RemotingException: Requested Service not found