Groups | Blog | Home
all groups > dotnet web services enhancements > july 2004 >

dotnet web services enhancements : Exception on endpointref all of a sudden?


William Stacey [MVP]
7/21/2004 4:42:07 PM
Been using wse tcp services with no issue. Now all of a sudden I have
exception when creating endpoint below.
I can't figure it out as the exception is in internal module that debugger
does not break to (see Message below.)
Any clues?

via = new Uri("soap.tcp://192.168.0.221/dnsserver");
address = new Uri("soap://wjs.mvptools.com/dnstcpservice");
endpoint = new EndpointReference(address, via); // Error

Exception Message:
A first chance exception of type 'System.NullReferenceException' occurred in
Unknown Module.
Additional information: Object reference not set to an instance of an
object.

--
William Stacey, MVP

Lucien
7/26/2004 3:16:28 PM
I don't see anything wrong with the code. Seems like an issue in the .NET
framework setup perhaps?

[quoted text, click to view]

William Stacey [MVP]
7/27/2004 10:28:39 AM
Somehow I found the issue (I think). I don't understand it, but this line
was causing the exception:

ColumnHeader obj = new ColumnHeader();

I did not assign obj to column header array so it was just being created and
collected at some point. Really don't understand why this would effect
EndpointReference, but must have something to do with mem issue somewhere in
the framework. Cheers!

--
William Stacey, MVP

[quoted text, click to view]
AddThis Social Bookmark Button