2

Closed

ArgumentNullException thrown when generating SharePoint compatible disco or wsdl files.

description

When running WSDLGenerator.exe with the -s or -d switches to generate a SharePoint compatible WSDL or disco .aspx file the utility fails with the following exception.

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: stream
at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(Stream stream, Boolean detectEncodingFromByteOrderMarks)
at WSDLGeneratorBusiness.Utils.GetResource(String filename)
at WSDLGeneratorBusiness.WSDLGenerator.GenerateWSDL(WebServiceType serviceType, Type type, String filepath, BooleangenerateSPFile)
at WSDLGeneratorBusiness.WSDLGenerator.GenerateFiles(WSDLOptions options)
at WSDLGeneratorCmd.Program.Main(String[] commandArgs)


The application exits immediately and no output files are generated.

This unexpected termination can be replicated consistently by using either of the switches -s, -d or both.
Closed Feb 16, 2013 at 1:51 PM by stefh

comments

Alexabix wrote Feb 13, 2013 at 11:18 AM

I tried this with WSS3, MOSS and Sharepoint Foundation and go the same error as reported when ever I tried to generate an .aspx file.

The WSDL itself was generated for me but nothing else.

wrote Feb 14, 2013 at 1:46 AM

stefh wrote Feb 15, 2013 at 4:41 PM

Can you post the WSDL ?

And which SharePoint version do you use ?

stefh wrote Feb 15, 2013 at 8:44 PM

@Alexbix, can you post the DLL your are using ? I can maybe debug the code.

wrote Feb 15, 2013 at 9:53 PM

wrote Feb 16, 2013 at 1:51 PM

Resolved with changeset 85221.

wrote May 16, 2013 at 8:18 AM