2
Answers

404 error handler page executed even though no page not found error.

Photo of Amol

Amol

14y
1.4k
1
hello, I have created a web application in vs2008 ,c sharp (framework 3.5).I configured "web.config" to pass control to error1.aspx page in case of 404 error.Everytime I start to debug(& execute) project,error page get automatically executed even though there is no "page not found" error.Pls tell me solution for this problem.
Thanks in advance. 

Answers (2)

0
Photo of Suthish Nair
NA 31.7k 4.6m 14y
resolved?
0
Photo of Suthish Nair
NA 31.7k 4.6m 14y

 I think you are missing something, can you post the configuration.

 <pages>
        <customErrors mode="On">
            <error statusCode="404" redirect="NoPage.htm"></error>
        </customErrors>
 </pages>

 refer article: http://www.c-sharpcorner.com/UploadFile/bryianTan/5115/