Server.Transfer throws Error executing child request. How to resolve?

后端 未结 8 1814
小蘑菇
小蘑菇 2020-12-17 08:36

I have a HttpModule in C# 2.0 which handles exceptions thrown. Whenever the exception is thrown, an error page (aspx) with some querystring will be called. It i

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-17 09:07

    Server.Transfer("mywebpage.aspx") seems to work only when a session already exists.

    If there is no Session started it throws this error so you must use Response.Redirect or another method.

提交回复
热议问题