Typed Dataset: ArgumentNullException when calling automatically generated function

M

Martin Böhm

Hi all,

We have created a COM AddIn for MS Project which requests Data from an
ASP.NET web service. The data is delivered in a typed dataset.

A web reference has been added to the AddIn and the xsd schema definition of
both web service and AddIn datasets correspond with each other.

The problem is that we get a System.ArgumentNullException (on some machines)
when calling a function that has been automatically created by VS.NET 2003.

Here's the error message:System.ArgumentNullException: 'column' argument
cannot be null.
Parameter name: column
at System.Data.DataRow.CheckColumn(DataColumn column)
at System.Data.DataRow.IsNull(DataColumn column)
at CommunicationLayer.WebService.ResourcesRow.IsCST_CNTR_IDNull()
at MSProjectAddin.Resources.Import()

When calling the IsCST_CNTR_IDNull() Method from my import function the
DataRow.IsNull() function is called. The bug seems to be within the .Net
framework.

According to the xsd schema definition the CST_CNTR_ID column can be null
(otherwise I would be unable to select the .IsCST_CNTR_IDNull() in VS.Net):
<xs:element minOccurs="0" name="CST_CNTR_ID" type="xs:decimal" />

As usual, the user doesn't know what he has done, and we are not able to
reproduce this error.

Does anybody have any suggestions?

Any help is appreciated.

Best Regards
Martin

Interested in mailing me? Here's my email
(please read from right to left and use "COM Addin" or "dotNet" as keyword
in the subject line so your email is not considered as spam)
ed[dot]socyl[at]nitram[hyphen]mheob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top