all groups > dotnet remoting > september 2006 >
You're in the

dotnet remoting

group:

Requested Service Not Found


Requested Service Not Found jon.porter NO[at]SPAM gmail.com
9/19/2006 7:41:50 PM
dotnet remoting:
Losing my mind with this. I had a project that I had started and was
working fine - now, that I have time to continue I have resurrected it
(started in .NET 1.1 - now .NET 2.0) and I continually get this. When
I cut and paste into some new code, I am not sure if it is something I
changed or not.

The web.config file is:

<configuration>
<system.runtime.remoting>
<serverProviders>
<formatter ref="binary" />
</serverProviders>
<application>
<service>
<wellknown mode="Singleton"
type="HDS.Analyst.Server.Listener.Security, Server_Listener"
objectUri="security.rem" />
</service>
</application>
</system.runtime.remoting>
</configuration>

I am using the following line to call it from the client:

ISecurity RemoteSecurity =
(ISecurity)Activator.GetObject(typeof(ISecurity),
"http://localhost/analyst/security.rem",
WellKnownObjectMode.Singleton);

// get return session
return RemoteSecurity.PerformLogin(UserName, Password,
ClientCode);

I am not sure why I get this. How can I go about tracing it? Is it
not finding the assembly (I have put it in the bin directory) or the
class path? I have read a ton of posts and tried all sorts of little
suggestions. What I am hoping to find is a way to trace the error from
the server side (hosted by IIS) as "Requested Service not Found" does
not get me much.

I am relativey new to remoting - any help is appreciated.

Thanks,
Jon
Re: Requested Service Not Found Spam Catcher
9/20/2006 12:00:00 AM
jon.porter@gmail.com wrote in news:1158720110.823440.64770
@m73g2000cwd.googlegroups.com:

[quoted text, click to view]

Try

http://localhost/analyst/security.rem?wsdl

Re: Requested Service Not Found Lambuz
9/20/2006 12:53:27 AM
sorry for the intrusion, but I need the help of SpamCatcher inside a
post of a few days ago.

http://groups.google.it/group/microsoft.public.dotnet.security/browse_frm/thread/4eb492aa96591c3b/#

Please help me

Sorry
Re: Requested Service Not Found jon.porter NO[at]SPAM gmail.com
9/20/2006 9:49:16 AM
I tried it - seemed to get the same answer. At this point I have
stripped my code down to nothing and I cannot get the simplest remoting
application to work.

Curiously what did you expect to happen?

Also, is there any way to see what is being requested - the error
starts with the following. I would like to see what service it is
requesting (which would be known to the server). Is there a way to
catch this type of error in the application event log?

System.Runtime.Remoting.RemotingException was unhandled
Message="System.Runtime.Remoting.RemotingException: Requested Service
not found\r\n"
Source="mscorlib"
StackTrace:
Server stack trace:
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at
HDS.Analyst.Shared.Interfaces.IhdsSecurity.PerformLogin(String
UserName, String Password, String ClientCode)

[quoted text, click to view]
Re: Requested Service Not Found jon.porter NO[at]SPAM gmail.com
9/20/2006 9:53:45 AM
This is all I am doing on the client - with shared library exposing the
interface.

// sender remoting objects
HttpChannel channel = new HttpChannel();
ChannelServices.RegisterChannel(channel, false);

// create remote object
IhdsSecurity RemoteSecurity =
(IhdsSecurity)Activator.GetObject(typeof(IhdsSecurity),
"http://localhost/analyst/security.rem?wsdl",
WellKnownObjectMode.Singleton);
IDictionary props =
ChannelServices.GetChannelSinkProperties(RemoteSecurity);

// set properties
props["username"] = "USER";
props["password"] = "PASSWORD";

// get return session
string Test = RemoteSecurity.PerformLogin("HELLO", "HELLO",
"HELLO");


[quoted text, click to view]
Re: Requested Service Not Found jon.porter NO[at]SPAM gmail.com
9/20/2006 11:54:54 AM
Thans for everyones help - I figured out my error - stupid error that
is.

When I had first started I had had a probllem with ASPNET not having
necessary permissions by default. In fixing that, I had moved from
virtual directory to actual directory so that :

http://locahost/analyst/security.rem

was an acutal folder under wwwroot rather than a virtual directory.
After solving the ASPNET permissions problem, I had never moved it back
to a virtual directory and thus the web.config did not seem to be being
used.

Sorry to have wasted your time on a stupid error - I only write it in
so that it may help someone else from doing the same. It seems
web.config cannot be located in subdirectory but can in virtual
directory.

Thanks,
Jon
Re: Requested Service Not Found Spam Catcher
9/20/2006 1:13:41 PM
"Lambuz" <lambu76@gmail.com> wrote in
news:1158738807.242875.247940@h48g2000cwc.googlegroups.com:

[quoted text, click to view]


How are you configuring your client? via a Config file?

Re: Requested Service Not Found Spam Catcher
9/20/2006 7:17:42 PM
jon.porter@gmail.com wrote in news:1158770956.679300.133450
@k70g2000cwa.googlegroups.com:

[quoted text, click to view]

If you manually called the remoting object in IE and you're getting the
"Requested Service was not found message" it typically means your app was
not configured correctly in IIS.

Re: Requested Service Not Found Lambuz
9/21/2006 12:10:51 AM
[quoted text, click to view]

For now I think I've solved the problem at the base of that post.

MAybe I'll post another one for others problem.

The reason of my problem is described at this url
http://www.vergentsoftware.com/blogs/ckinsman/PermaLink.aspx?guid=397bdf1f-258b-4add-bd8b-532c481de000

Thanks for your help
AddThis Social Bookmark Button