ArgumentNullException thrown when generating SharePoint compatible disco or wsdl files.


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 2:51 PM by stefh


Alexabix wrote Feb 13, 2013 at 12:18 PM

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 2:46 AM

stefh wrote Feb 15, 2013 at 5:41 PM

Can you post the WSDL ?

And which SharePoint version do you use ?

stefh wrote Feb 15, 2013 at 9:44 PM

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

wrote Feb 15, 2013 at 10:53 PM

wrote Feb 16, 2013 at 2:51 PM

Resolved with changeset 85221.

wrote May 16, 2013 at 9:18 AM