Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / November 2006

Tip: Looking for answers? Try searching our database.

.NET Remoting Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ivan Lozada - 30 Jun 2005 22:07 GMT
I built the example in the MSDN documentation in the Section 'Building a
Basic .NET Remoting Application'. When I try to execute the Client.exe I get
the following error.

'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll
Additional information: Requested Service not found

How do I find out what service was not found?

Thanks for your helpful comments,
Ivan
blore crafter - 01 Jul 2005 13:08 GMT
Hi
If you are using app.config for configuring the remoting server and client
information then make sure the remoting server application's app.config has
the
<system.runtime.remoting> section and contains the service information.
Also ensure that the remoting client application's app.config hsa the
<system.runtime.remoting> section and contains the client configuration.

The particular error indicates that the remoting server information
contained within <client> is not correct.
<client>
           <wellknown
              type="RemotableType, RemotableType"
              url="http://localhost:8989/RemotableType.rem"
           />
</client>
Here 'RemotableType.rem' is the objectURI attribute value you had given in
remoting server application configuration.

Hope you find this useful.
Regards
blore crafter

> I built the example in the MSDN documentation in the Section 'Building a
> Basic .NET Remoting Application'. When I try to execute the Client.exe I get
[quoted text clipped - 7 lines]
> Thanks for your helpful comments,
> Ivan
Ivan Lozada - 01 Jul 2005 15:05 GMT
Hello blore,

I agree with your diagnostic. I went and very carefully inspected both
configuration files (the content of these configuration files is also
included in the MSDN Example source code) and I found that they are exactly
as you indicate that they should be. Since these files are small I am
including the text in this message.

In the example files I've tried both, the http and the tcp variations, with
the same results.

Thanks,
Ivan

<configuration>
   <system.runtime.remoting>
    <application>
       <service>
        <wellknown
           mode="Singleton"
           type="RemotableType, RemotableType"                   ObjectUri="RemotableType.rem"
                     />
       </service>
       <channels>
        <channel ref="http" port="8989"/>
       </channels>
               </application>
   </system.runtime.remoting>
</configuration>

/////////////////////////////////////////////////////////////////////////////

<configuration>
   <system.runtime.remoting>
    <application>
       <client>
        <wellknown
           type="RemotableType, RemotableType"
           url="http://localhost:8989/RemotableType.rem"
        />
       </client>
    </application>
   </system.runtime.remoting>
</configuration>

> Hi
> If you are using app.config for configuring the remoting server and client
[quoted text clipped - 18 lines]
> Regards
> blore crafter
blore crafter - 05 Jul 2005 06:38 GMT
Hi Ivan
I tried with a sample program and could replicate 'Requested service not
found' Remoting exception only when i give a wrong objectURI. if i don't run
the server, or change the other configurations this specific exception
doesn't occur. Hence according to me, giving a wrong objectURI is a reason
for the exception. I didn't come across other situations where in the same
exception is thrown.
Regards
Blore Crafter

> Hello blore,
>
[quoted text clipped - 63 lines]
> > Regards
> > blore crafter
Ivan Lozada - 05 Jul 2005 14:28 GMT
Hi blore,

I found the problem!!!. It was the upper case "O" in            
ObjectUri="RemotableType.rem"

... and this is after a very long lifetime of writing "c", and though I
don't think it is an excuse, I am somehow dissapointed that the compiler did
not flag this one out.

On a related subject, do you know if this area of the framework (remoting)
is going to change substantially in Version 2.0?, and if not, and you have
some ideas, what are a couple of good books on this subject?

Thanks,
Ivan

> Hi Ivan
> I tried with a sample program and could replicate 'Requested service not
[quoted text clipped - 7 lines]
>
> > Hello blore,
blore crafter - 07 Jul 2005 12:49 GMT
Hi Ivan
Good to hear the problem is solved.
Ok regarding change to remoting, i'm not aware of it and
Books- I so far used to read the msdn articles and also some blogs as and
when i get an issue kinda. No specific book i have read on remoting but books
like
inside c# - Tom Archer
visual c# step by step
Applied Microsoft .Net Framework Programming -Jeffrey Richter
give you basics on remoting
Regards
Easwaran

> Hi blore,
>
[quoted text clipped - 23 lines]
> >
> > > Hello blore,
Anusha - 14 Nov 2006 10:10 GMT
Hi,

I am also facing a similar Problem. On running the client Application I get
an error Requested Service Not Found. The o in Object Uri is small case only.

The web.config file is as follows:

configuration>
 <system.runtime.remoting>
   <application>

     <service>
       <wellknown mode="SingleCall" type="ClsRemoteObject.Maths,
ClsRemoteObject" objectUri="Maths.soap" />
     </service>
     <channels>
      <channel ref="http" port="80"/>
     </channels>

   </application>
 </system.runtime.remoting>
</configuration>

The client side Remoting code is as follows:

Dim channel As HttpChannel = New HttpChannel
ChannelServices.RegisterChannel(channel)

RemotingConfiguration.RegisterWellKnownClientType(GetType(Maths),
"http://localhost:80/TestClsRemoteWeb/Maths.soap") '"tcp://Anita:8085/Maths")
'

Here TestClsRemoteWeb is the Virtual directory.

Help me out.

> Hi Ivan
> Good to hear the problem is solved.
[quoted text clipped - 36 lines]
> > >
> > > > Hello blore,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.