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. Having Problem in a Remoting call

Having Problem in a Remoting call

Scheduled Pinned Locked Moved C#
helpwcfsysadminwindows-adminxml
3 Posts 2 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
    Muhammad Ahmed 0
    wrote on last edited by
    #1

    Hi: i have hosted my server dll in IIS its code is like Server view: //server dll name is mydll.dll namespace NameSpaceabc { Class ServiceProvider:MarshalByRefObject, IServices { void DoIt(string strWorkOnit) { //..do some work } } } //shared assembly has interface def public interface IServices { bool DoIt(string strName); } the web.config file is as folllows ////////////////////////////////////// ////////////////////////////////////// Client view: HttpChannel channel = new HttpChannel(); ChannelServices.RegisterChannel(channel); IServices iservice = (IServices )Activator.GetObject( typeof(IServices ),"http://10.0.0.108/mydll/services.soap"); string abc="eiwero"; //as soonas i call my first method it gives an exception ..service not found //whats the issue iservice .DoIt(abc); dlls are copied in the www/mydll/bin folder web.config is in www/mydll folder Please help Regards Muhammad Ahmed Ahmed

    K 1 Reply Last reply
    0
    • M Muhammad Ahmed 0

      Hi: i have hosted my server dll in IIS its code is like Server view: //server dll name is mydll.dll namespace NameSpaceabc { Class ServiceProvider:MarshalByRefObject, IServices { void DoIt(string strWorkOnit) { //..do some work } } } //shared assembly has interface def public interface IServices { bool DoIt(string strName); } the web.config file is as folllows ////////////////////////////////////// ////////////////////////////////////// Client view: HttpChannel channel = new HttpChannel(); ChannelServices.RegisterChannel(channel); IServices iservice = (IServices )Activator.GetObject( typeof(IServices ),"http://10.0.0.108/mydll/services.soap"); string abc="eiwero"; //as soonas i call my first method it gives an exception ..service not found //whats the issue iservice .DoIt(abc); dlls are copied in the www/mydll/bin folder web.config is in www/mydll folder Please help Regards Muhammad Ahmed Ahmed

      K Offline
      K Offline
      Kodanda Pani
      wrote on last edited by
      #2

      Hi Ahmed, Seems there is nothing wrong with your code. Are you getting the WSDL file when you give the URL http://10.0.0.108/mydll/services.soap?wsdl. Thanks and Regards Kodandapani.

      M 1 Reply Last reply
      0
      • K Kodanda Pani

        Hi Ahmed, Seems there is nothing wrong with your code. Are you getting the WSDL file when you give the URL http://10.0.0.108/mydll/services.soap?wsdl. Thanks and Regards Kodandapani.

        M Offline
        M Offline
        Muhammad Ahmed 0
        wrote on last edited by
        #3

        ok,..i have fixed it by changing the server config file tag from to now its working fine,.. now i have another problem,.i cant debug the server side dll hosted in IIS,.although i am attaching it to w3wp.exe but to no use,.. ihave also used Debug.Assert(false) but futile,..i check the w3wp.exe using a tool the monitors path where a dll is loaded from ,..it loaded my server dll from a very starnge path,... my dll is also not registered in GAC,..but yet it loads from that strange path,(i guess cache).i deleted my dll from that path but it copies it again,.. any help on as to how to debug,.??? as an alternative i am debugging by making a service that loads my dll,.. but how to debug using IIS???? thanks Ahmed

        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