Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sujith
Starting Member
20 Posts |
Posted - 2005-06-30 : 02:56:04
|
I have a web application. I have set custom errors ON in its web.config and gave the default redirect path.when I access the the website with a page which is not there inside the application, it has to redirect to the default error page.If the page I access is of any extension other than .aspx, the default page is being displayed. For .aspx, its showing some text with details of the error.Following is the error details:Application Error : Error in page http://www.[siteaddress].com/[page].aspx Errror due to System.Web.HttpException: Exception of type System.Web.HttpException was thrown. ---> System.IO.FileNotFoundException: [File path] at System.Web.UI.TemplateParser.GetParserCacheItem() at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) --- End of inner exception stack trace --- at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) at System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Can anyone help me in this...Sujith S |
|
karuna
Aged Yak Warrior
582 Posts |
Posted - 2005-06-30 : 05:54:26
|
Can you be bit more clear?For any aspx page request you get a filenotfoundexception? what happens for other pages which is there in the folder?..Those files are served properly by IIS?What happens you request page(htm or html, that is Non aspx) which is not there in application?Karunakaran___________It's better to be loved and lost, than ever to be loved... |
 |
|
sujith
Starting Member
20 Posts |
Posted - 2005-06-30 : 08:43:23
|
Let my site address be http://www.sujith.com/Home.aspxI have set the default error page as Home.aspx itself.So if I access the link as http://www.sujith.com/Login.aspx (Login.aspx is not there in my site), I get the above error as text. If I try the same page name with different extension, say .htm, .asp, .jsp or .html, I am redirected to the error page (Home.aspx).Why is it happening for .aspx page request?Sujith S |
 |
|
|
|
|
|
|