Re: VERY Frustrated

From: Stark Frost (projects_at_dmgstudios.co.za)
Date: 06/03/04


Date: Thu, 3 Jun 2004 11:36:09 +0200

Hey Elp

Thanks for your reply.

I built the solution and then executed the server.exe file and set my client
project in vs.net as my startup project and did the debug. The program hangs
for about 7 seconds and then tells me that "The underlying connection was
closed: The remote name could not be resolved" and then it gives me an error
at the line of code:

-- MessageBox.Show(Me.theManager.getHash())

and a vs.net message box that says:
"An unhandled exception of type 'System.Net.WebException' occured in
mscorlib.dll
Additional information: The underlying connection was closed: The remote
name could not be resolved."

So i'm assuming that it raises an exception because the connection was
closed and therefore the line of code cannot complete its task.?

So my initial thought is that i have to change some settings to suite my
local environment, but the tutorial (see link in initial post) doesnt say
anything about changing any parameteres. Perhaps you could copy and paste
this project to see if it works on your system?

I'm very eager to get into Remoting but i just cant get hold of enough
resources anywhere so i have to do this the hard way. Your help will be
greatly appreciated.

Stark

"Elp" <rockfamily@REMOVEME.hotmail.com> wrote in message
news:OJM34KMSEHA.3840@TK2MSFTNGP09.phx.gbl...
>
> "Stark Frost" <projects@dmgstudios.co.za> wrote in message
> news:c9kij9$3fr$1@ctb-nnrp2.saix.net...
> > Hi there,
> >
> > Could someone please check out this tutorial and tell me why windows
asks
> me
> > if i want to debug the client program everytime i try to run it (built
> > version(exe)).
>
> This means that there has been an unhandeld exception in your application
> and that it crashed. This has nothing to do with .NET Remoting (although
the
> exception may have been caused by your .NET remoting component as well as
by
> anything else in your application). To solve the problem, compile your
> application in Debug mode and run it from Visula Studio (press the F5
key).
> When the unhandled exception will be raised, VS will tell you what it is,
> the stack trace and if available the line of code that caused the
exception.
> From there, you'll be able to find out what's wrong in your code.
>
> Note that with .NET Remoting, both the server and the client application
can
> run on the same computer (and also on different computer). This means that
> you can launch both the server and client app in Debug mode from VS on the
> same computer.
>
>



Relevant Pages

  • Re: System.NullReferenceException
    ... > An unhandled exception of type 'System.NullReferenceException' occurred in ... > I get the error when I access register function. ... > After the client app crashes I restart the client and I can access the ... at server or at client? ...
    (microsoft.public.dotnet.framework.remoting)
  • MAPI control with C# causes exception when calling Send()
    ... MSMAPI.MAPISessionClass session = new MSMAPI.MAPISessionClass; ... When my default client is Outlook Express, ... An unhandled exception of type ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Displaying User-Supplied String
    ... surprise, it causes an unhandled exception: A potentially dangerous Request.Form value was detected from the client ... that is ASP.NET's standard response to this sort of thing... ...
    (microsoft.public.dotnet.framework.aspnet)
  • problem in InvalidCastException-Return argument has an invalid type
    ... I have my client application call a method in a remote object hosted in IIS. ... The return value is a typed dataset. ... "An unhandled exception of type ... Return argument has an invalid type. ...
    (microsoft.public.dotnet.framework.remoting)
  • .NET Remoting & RTD
    ... I am just interested in sending strings to a ... it doesn't even raise an unhandled exception via the ... I had originally taken the .NET Remoting route a while back now as I ...
    (microsoft.public.dotnet.languages.vb)