Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to fix Remoting error?

How to fix Remoting error?

Scheduled Pinned Locked Moved C#
helpvisual-studiotutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meeram395
    wrote on last edited by
    #1

    I am using webservice in my application. Inside that I have a function to register the remoting service. Following is my code:

    RegisterRemoting();
    private void RegisterRemoting()
    {
    try
    {
    WellKnownClientTypeEntry entry = RemotingConfiguration.IsWellKnownClientType(typeof(IManager));
    if (entry == null)
    {
    RemotingConfiguration.RegisterWellKnownClientType(typeof(IManager), AmortisationGeneral.GetAppSettings("RemotingService"));
    Hashtable properties = new Hashtable();
    properties["name"] = "HttpBinary";
    properties["useDefaultCredentials"] = true;
    //SoapClientFormatterSinkProvider clientFormatter = new SoapClientFormatterSinkProvider();
    BinaryClientFormatterSinkProvider clientFormatter = new BinaryClientFormatterSinkProvider();
    HttpChannel channel = new HttpChannel(properties, clientFormatter, null);
    ChannelServices.RegisterChannel(channel, false);
    }

            }
            catch(Exception ex)
            {
                ex.Message.ToString();
                return;
            }
        }
    

    The uri is coming from an appsettings key which is as follows:

    When I try to test the url as specified in the value tag, I was getting the following error:

    System.ArgumentNullException: No message was deserialized prior to calling the DispatchChannelSink.
    Parameter name: requestMsg

    Is this something that the remoting service has not been installed properly in my local system? I am using VS 2005. I have tried almost all of the solutions found in google, but didn't solve the issue. Would be great if anybody provides some help on this.

    Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups