System.NullReferenceException when using WSE 2.0

Hi all

System.NullReferenceException:Object reference not set to an instance of object at Microsoft.Web.Services2.WebServicesExtension.AfterSerializeServer(SoapServerMessage message) when using WSE 2.0.

FYI, We are not using any security, Certificate in our web service. It was working fine for a long but suddenly it start giving this error in the Application log of Event Log.

All of our web method are gettign executed successfully. Error is coming when web service is sending back response to client.

Any information , whatr is wrong.

Thanks in advance




Answer this question

System.NullReferenceException when using WSE 2.0

  • j_ruez

    Hi Mintu,

    I am facing the same Issue. But It won't happen if My WebService is a simple ( a typial Hello world that returns a strng.)

    I know your Issue is resolved, But It will be of great help if you can describe your webservice architecture at a very high level. I want to know the common scenario this Exception is occuring.

    Finally, did you opt not to use any of the features provided by the WSE 2.0 .

    Thanks

    Ram


  • Dennis Micheelsen

    Thank to everyone who looked for a solution to my problem.

    Problem has been resolved there was an entry for the SoapExtension in the web.config of Web Service. After commenting it everything works fine.



  • System.NullReferenceException when using WSE 2.0