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