Re: Error while invoking remoteobject method



source wrote:
....
InProcessHost inProcIPH = (InProcessHost)Activator.GetObject(typeof(InProcessHost), "tcp://InProc:8086");

string str = inProcIPH.Foo(); //This line throws me the following exception

threw an exception of type 'System.Net.Sockets.SocketException'
base {System.ComponentModel.Win32Exception}: {"No such host is known"}
ErrorCode: 11001
SocketErrorCode: HostNotFound
}
}


This means that host "InProc" cannot be resolved to IP address. Can you do "nslookup InProc" (without double quotes) in command prompt and check whether it resolves correctly. Also, you could replace InProc in "tcp://InProc:8086" with corresponding IP address.

Regards,
Goran
.



Relevant Pages

  • Re: IIS hosting remote object
    ... Host a Remote Object in Microsoft Internet Information Services ... IClock ... > catch (Exception e) ... I replaced my actual web server name with "WebServer" in the url. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Debugging under VMWare
    ... but when debugging in the vm I can browse to several pages then for one page boom "Project UNKNOWN faulted with message: 'access violation at 0x75bb2443: read of address 0x75bb2443'. ... same exception and I have to end the process. ... problems running under the host OS though, ... machine support DES perhaps? ...
    (borland.public.delphi.non-technical)
  • Silly DNS.BeginResolve question
    ... DNS.BeginResolvewith an intentionally bad host name. ... in a try/catch block, all works fine and a SocketException is thrown as ... However, if I remove the try/catch lines, no exception is thrown. ... RequestState myRequestState = new RequestState; ...
    (microsoft.public.dotnet.general)
  • RE: Trouble deploying ASP.NET application
    ... XML files for some bizare reason I thought I could just put the file name ... only when I deployed it to the host. ... > Tried both FTP and frontpage extensions method to the host server. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Using KerberosTokens for signing/encrypting
    ... Byron KIM ... The RetrieveKerbTicket call returned the following error code: ... > and this line causes the exception. ... > There is no domain in the URL, because the host is not a part of a domain, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)

Loading