NullReferenceException at ApplyAppPathModifier when Calling Response.Redirect

Last post 12-14-2007 4:43 AM by Guang-Ming Bian - MSFT. 4 replies.

Sort Posts:

  • NullReferenceException at ApplyAppPathModifier when Calling Response.Redirect

    12-10-2007, 6:13 PM
    • Loading...
    • ericmedici
    • Joined on 12-10-2007, 11:07 PM
    • Posts 3

    I recently ported an ASP.NET application to a client and our custom HttpModule is causing an exception in their environment. I dont have the details of the exception with me, but the gist is that a NullReferenceException is thrown for some reason when the ApplyAppPathModifier method is called internally from Response.Redirect. Als, during my research of this issue, I cannot find documentation as to what exceptions ApplyAppPathModifier throws. If anyone has any insight into this, please let me know.

     

    Thank you,

    Joey

  • Re: NullReferenceException at ApplyAppPathModifier when Calling Response.Redirect

    12-13-2007, 2:54 AM

    Hi Joey,

    It if difficult to say why you are getting the exception, you should get more detail exception information.

     Best regards,
    Guang-Ming Bian - MSFT

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: NullReferenceException at ApplyAppPathModifier when Calling Response.Redirect

    12-13-2007, 12:42 PM
    • Loading...
    • ericmedici
    • Joined on 12-10-2007, 11:07 PM
    • Posts 3
    I'm attempting to gather the exception trace. The information I have at my disposal is this:

    ApplyAppPathModifier() - NullReferenceException is thrown here
    Response.Redirect() - this method is called from my code

    Is it possible to see the source for the ApplyAppPathModifier method?
    Thank you,

    Joey
  • Re: NullReferenceException at ApplyAppPathModifier when Calling Response.Redirect

    12-13-2007, 11:00 PM
    Answer
    • Loading...
    • ericmedici
    • Joined on 12-10-2007, 11:07 PM
    • Posts 3
    I found that installing SP1 of the .NET Framework 2.0 solved this problem. I'm including this as it may assist others who find this obscure error.
  • Re: NullReferenceException at ApplyAppPathModifier when Calling Response.Redirect

    12-14-2007, 4:43 AM
    Answer

    Hi ericmedici,

    Try to use Reflector to see the source code.

    Click the below link to download:
    http://www.aisto.com/roeder/dotnet/

    Best regards,
    Guang-Ming Bian - MSFT

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter