Asslam-o-Alaikum & hi to all.............
I have two Questions.
1st
I have a Global.asax file in my web Application. After publish my website i am confuse where is Global.asax file. In bin folder i find 2 file with the name Global App_global.asax.compiled and App_global.asax.dll is that are the global.asax file.
2nd
I have set error 404 Page in Global.asax file but i am not successfull to run it locally is the code run after when i upload my website.
here is my code..
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
Exception ex = Server.GetLastError().GetBaseException();
if (ex.GetType() == typeof(System.IO.FileNotFoundException))
{
//your code
Response.Redirect("error.aspx");
...
Go to the complete details ...