c# - custom error firing when there has been no error, but only in IIS6 -
i have written site in mvc4 , hosting on iis6. call on method when error occurs through customerror in web.config.
public actionresult error() { session.abandon(); return view("~/views/shared/error.cshtml"); } but fires when there no error fires session.abandon() , not return view(). if comment out session.abandon() works fine, rest of site runs , there have been no errors, though exception session has expired code should not fire don't why.
on iis7 works fine.
anyone got idea happening?
Comments
Post a Comment