none
SOAP Error RRS feed

  • Question

  • I have a project with a custom http module that I wrote. In the ReportServer web.config I added this http module to be called.

    In  the module I added a handler for begin_request. I also have a web reference which I call from here. However when I try to access any method on the generated proxy it gives me this error:

    Object reference not set to an instance of an object.

    and the stack trace is

     

       at Microsoft.ReportingServices.WebServer.RsSoapExtension.Initialize(Object initializer)

       at System.Web.Services.Protocols.SoapMessage.InitializeExtensions(SoapReflectedExtension[] reflectedExtensions, Object[] extensionInitializers)

       at System.Web.Services.Protocols.SoapHttpClientProtocol.BeforeSerialize(WebRequest request, String methodName, Object[] parameters)

       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

       at Numina.Framework.Ssrs.NuminaService.NuminaFrameworkDataService.RequestValidationTicket(ValidationTicketRequest request)

       at Numina.Framework.Ssrs.FrameworkManager.Startup()

       at Numina.Framework.Ssrs.RequestModule.context_BeginRequest(Object sender, EventArgs e)

       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

     

    Does anyone know why this is happening? I have this section in my report server web.config which I am assuming has something to do with it...

    <webServices>
    <soapExtensionTypes>
    <add type="Microsoft.ReportingServices.WebServer.RsSoapExtension, ReportingServicesWebServer" priority="1" group="1" />
    </soapExtensionTypes>
    <soapExtensionReflectorTypes>
    <add type="Microsoft.ReportingServices.WebServer.RsSoapExtensionReflector, ReportingServicesWebServer" />
    </soapExtensionReflectorTypes>
    </webServices>

     


    • Edited by rushfrisby Friday, December 9, 2011 3:24 PM
    Friday, December 9, 2011 3:23 PM

All replies

  • I am trying to work around an exception that is happening in Microsoft.ReportingServices.WebServer.RsSoapExtension when I call a web service from an httpmodule i have added to reportserver. I do not need this extension when making client requests so I was planning to create a new class that inherits Microsoft.ReportingServices.WebServer.RsSoapExtension and overrides the Initialize method, calling base.Initialize and swalling the exception. However when I add ReportingServersWebServer which this should be in, I cannot access it. Is it not possible to inherit the RsSoapExtension class? I don't even see the WebServer namespace in there so I am guessing everything was marked as internal?
    Friday, December 9, 2011 5:36 PM
  • Hi rushfrisby,

    Thanks for the question. It seems like we couldn’t inherit the RsSoapExtension class. In addition, could you please post the exception here? Maybe we can get one direction from the exception information.

    Best Regards,
    Sharp Wang


    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact us.


    Please remember to mark the replies as answers if they help you and unmark them if they provide no help.
    Monday, December 12, 2011 5:11 AM
    Moderator
  •    Object reference not set to an instance of an object.

    and the stack trace is

    at Microsoft.ReportingServices.WebServer.RsSoapExtension.Initialize(Object initializer)

       at System.Web.Services.Protocols.SoapMessage.InitializeExtensions(SoapReflectedExtension[] reflectedExtensions, Object[] extensionInitializers)

       at System.Web.Services.Protocols.SoapHttpClientProtocol.BeforeSerialize(WebRequest request, String methodName, Object[] parameters)

       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

       at Numina.Framework.Ssrs.NuminaService.NuminaFrameworkDataService.RequestValidationTicket(ValidationTicketRequest request)

       at Numina.Framework.Ssrs.FrameworkManager.Startup()

       at Numina.Framework.Ssrs.RequestModule.context_BeginRequest(Object sender, EventArgs e)

       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


    • Edited by rushfrisby Monday, December 12, 2011 5:20 AM
    Monday, December 12, 2011 5:19 AM
  • Hi rushfrisby,

    Based on my research, there is a similar article about regist custom http module with Report Server. You can refer to the article to implement an ASP.NET HttpModule, please see:
    http://rstracer.codeplex.com/

    Regards,
    Bin Long

    TechNet Subscriber Supportin forum
    If you have any feedback on our support, please contact tnmff@microsoft.com


    Bin Long

    TechNet Community Support


    Monday, December 12, 2011 9:57 AM
    Moderator
  • Hi rushfrisby,

    I would recommend you referencing this article about how to register custom http module with Report Server.

    http://rstracer.codeplex.com/

     

    Thanks,
    Sharp Wang


    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact us.


    Please remember to mark the replies as answers if they help you and unmark them if they provide no help.
    Tuesday, December 13, 2011 2:16 AM
    Moderator
  • registering a custom http module isnt the problem. the problem is that the RsSoapExtension is being applied to client requests instead of only incoming reporting service requests. Is there a way to limit the RsSoapExtension so that it doesn't apply to client requests? (requests I make to other services from within my http module)

    • Edited by rushfrisby Tuesday, December 13, 2011 4:12 AM
    Tuesday, December 13, 2011 4:11 AM
  • Hi rushfrisby,

    Thank you for your question.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thank you for your understanding and support.

    Regards,
    Bin Long


    Bin Long

    TechNet Community Support

    Wednesday, December 14, 2011 2:49 AM
    Moderator
  • Hi,

     

    there are several KBs in connection with SSRS and the message "Object reference not set to an instance of an object".

    Unfortunately I didn’t find any that would explain the issue you have.

     

    Please test this on the latest build.

    If the problem still remains this requires a more in-depth level of support, please open a support case. 

    Please visit the below link to see the various paid support options that are available to better meet your needs.

    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone

     

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

     

    Thanks,

    Orsi

    Microsoft Online Community Support

    Monday, January 23, 2012 10:19 AM
    Answerer