IIS Remoting is breaking my back -- SOS -- Help -- Man over board

Last post 09-29-2007 9:06 PM by erikkl2000. 1 replies.

Sort Posts:

  • IIS Remoting is breaking my back -- SOS -- Help -- Man over board

    09-29-2007, 5:48 PM
    • Member
      189 point Member
    • erikkl2000
    • Member since 06-05-2005, 1:55 AM
    • McKinney, TX.
    • Posts 160

    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


    There’s my side and there’s your opinion
  • Re: IIS Remoting is breaking my back -- SOS -- Help -- Man over board

    09-29-2007, 9:06 PM
    Answer
    • Member
      189 point Member
    • erikkl2000
    • Member since 06-05-2005, 1:55 AM
    • McKinney, TX.
    • Posts 160

    I added the ?wsdl to the end of the url and this finally resolved the issue...

     

    http://localhost/ServiceServer/TheRemoteObject.soap?wsdl  

    There’s my side and there’s your opinion
Page 1 of 1 (2 items)