Re: 'System.NullReferenceException'
From: Sunny (sunny_at_newsgroup.nospam)
Date: 02/28/05
- Next message: David Sanchez: "Re: 'System.NullReferenceException'"
- Previous message: Sunny: "Re: REMOTING WITHOUT IIS"
- In reply to: David Sanchez: "'System.NullReferenceException'"
- Next in thread: David Sanchez: "Re: 'System.NullReferenceException'"
- Reply: David Sanchez: "Re: 'System.NullReferenceException'"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 28 Feb 2005 13:26:59 -0600
In article <9D55237B-863F-4BDA-8609-8A38583F048A@microsoft.com>,
DavidSanchez@discussions.microsoft.com says...
> An unhandled exception of type 'System.NullReferenceException' occurred in
> mscorlib.dll
>
> I get this error after acquiring an object:
> objDSRemote1 = CType(Activator.GetObject(Type.GetType
> "DataLayer.clsSettings, DataLayer"), "//TestPC/clsSettings"),
> DataLayer.clsSettings)
>
> Then I access a function in the remote object:
>
> objDSRemote1.Register(Me, System.Environment.MachineName)
>
> I get the error when I access register function.
>
> This only happens when I try to access the object for the first time.
>
> After the client app crashes I restart the client and I can access the
> remote object without any problems.
>
> I ask this question again: Do I need to have the proxy/server Create an
> instance when it launches before the clients or is there something I am not
> calling prier to access the function in the remote object?
>
>
Where the exception is thrown, at server or at client? Have you put some
logging in at the server, at least to know if the call enters the
Register function at all? And you may put some logging in the
constructor of your server object to see if it is created and when.
And please, read this:
http://www.yoda.arachsys.com/csharp/complete.html
and this:
http://www.catb.org/~esr/faqs/smart-questions.html
Sunny
- Next message: David Sanchez: "Re: 'System.NullReferenceException'"
- Previous message: Sunny: "Re: REMOTING WITHOUT IIS"
- In reply to: David Sanchez: "'System.NullReferenceException'"
- Next in thread: David Sanchez: "Re: 'System.NullReferenceException'"
- Reply: David Sanchez: "Re: 'System.NullReferenceException'"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|