ASP.Net: Response.Redirect not working after hosting in IIS

Last Reply 27 days ago By Alauddin

Posted 27 days ago

Response.Redirect not working

when application

"host in IIS server and using IE browser

but working in Chrome.


Error Message:

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.


Without hosting in server application working in every browser.


Posted 27 days ago

Hi Alauddin,

The details you are provided is incomplete. Will you please share the code and let us know which line is throwing the error in order to tell where the problem is.

To get error details set Custom Error Mode Off in Web.Config.

ASP.Net: The current custom error settings for this application prevent the details of the application error

Posted 27 days ago

Thank you for your reply. 

I had session related problem, solved now.