473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

FileNotFoundException

Hi,

I am getting the following error:

System.IO.FileNotFoundException:
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx at
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
However, that file is not referrenced anywhere in the code? I also have the
IP of the user that generated the error but cant seemed to trace it back:

68.142.249.44
68.142.250.159
66.249.71.73
207.68.146.55
How can I trace where the exception is being thrown without even being able
to find any kind of redirect or transfer to a page of that name?

TIA

MattC
Nov 19 '05 #1
5 2223
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"MattC" <m@m.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
Hi,

I am getting the following error:

System.IO.FileNotFoundException:
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx at
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
However, that file is not referrenced anywhere in the code? I also have
the
IP of the user that generated the error but cant seemed to trace it back:

68.142.249.44
68.142.250.159
66.249.71.73
207.68.146.55
How can I trace where the exception is being thrown without even being
able
to find any kind of redirect or transfer to a page of that name?

TIA

MattC

Nov 19 '05 #2
Well, no, but thanks. It seems that the web app is generating a
FileNotFoundException if any page is requested that doesn't exists. In the
web.config is the following:

<customErrors mode="RemoteOnly" defaultRedirect="/error.aspx">

<error statusCode="404" redirect="/error-404.html" />

If a 404 is generated by the webserver and redirects to the error-404.html
page why should it also generate the exception?

TIA

MattC

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"MattC" <m@m.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
Hi,

I am getting the following error:

System.IO.FileNotFoundException:
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx at
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
However, that file is not referrenced anywhere in the code? I also have
the
IP of the user that generated the error but cant seemed to trace it back:
68.142.249.44
68.142.250.159
66.249.71.73
207.68.146.55
How can I trace where the exception is being thrown without even being
able
to find any kind of redirect or transfer to a page of that name?

TIA

MattC


Nov 19 '05 #3
Where do you see this exception (client side in IE ?)

You could try to disable this in the web.config to see if it does a
difference. Never saw that previously...
I'm not sure how internally it is done but I would say that it looks like
the request are processed as usual even though the file is not there instead
of being directed to whatever 404 handler is active...

Once done, try perhaps to see the IIS log to see if its's registered as a
404 error...

Patrice

--

"MattC" <m@m.com> a écrit dans le message de
news:uo**************@TK2MSFTNGP15.phx.gbl...
Well, no, but thanks. It seems that the web app is generating a
FileNotFoundException if any page is requested that doesn't exists. In the
web.config is the following:

<customErrors mode="RemoteOnly" defaultRedirect="/error.aspx">

<error statusCode="404" redirect="/error-404.html" />

If a 404 is generated by the webserver and redirects to the error-404.html
page why should it also generate the exception?

TIA

MattC

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"MattC" <m@m.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
Hi,

I am getting the following error:

System.IO.FileNotFoundException:
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx at
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
However, that file is not referrenced anywhere in the code? I also have the
IP of the user that generated the error but cant seemed to trace it back:
68.142.249.44
68.142.250.159
66.249.71.73
207.68.146.55
How can I trace where the exception is being thrown without even being
able
to find any kind of redirect or transfer to a page of that name?

TIA

MattC



Nov 19 '05 #4
Hi Matt,

The System.IO.FileNotFoundException is not thrown when a 404 error occurs.
The 404 is a web server exception. I pointed you to the page that threw the
exception. You'll have to figure it out from there.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"MattC" <m@m.com> wrote in message
news:uo**************@TK2MSFTNGP15.phx.gbl...
Well, no, but thanks. It seems that the web app is generating a
FileNotFoundException if any page is requested that doesn't exists. In the
web.config is the following:

<customErrors mode="RemoteOnly" defaultRedirect="/error.aspx">

<error statusCode="404" redirect="/error-404.html" />

If a 404 is generated by the webserver and redirects to the error-404.html
page why should it also generate the exception?

TIA

MattC

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"MattC" <m@m.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I am getting the following error:
>
> System.IO.FileNotFoundException:
> C:\Dreamtxt\WebSites\mysite\www\feedback.aspx at
> System.Web.UI.TemplateParser.GetParserCacheItem() at
> System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
> virtualPath, String inputFile, HttpContext context) at
> System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
> virtualPath,
> String inputFile, HttpContext context) at
> System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
> virtualPath,
> String inputFile, HttpContext context) at
> System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
> requestType, String url, String path) at
> System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
> requestType, String path, String pathTranslated, Boolean useAppConfig)
>
>
> However, that file is not referrenced anywhere in the code? I also
> have
> the
> IP of the user that generated the error but cant seemed to trace it back: >
> 68.142.249.44
> 68.142.250.159
> 66.249.71.73
> 207.68.146.55
>
>
> How can I trace where the exception is being thrown without even being
> able
> to find any kind of redirect or transfer to a page of that name?
>
> TIA
>
> MattC
>
>



Nov 19 '05 #5
Does the file exist in your web site?

"MattC" <m@m.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
Hi,

I am getting the following error:

System.IO.FileNotFoundException:
C:\Dreamtxt\WebSites\mysite\www\feedback.aspx at
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
However, that file is not referrenced anywhere in the code? I also have the IP of the user that generated the error but cant seemed to trace it back:

68.142.249.44
68.142.250.159
66.249.71.73
207.68.146.55
How can I trace where the exception is being thrown without even being able to find any kind of redirect or transfer to a page of that name?

TIA

MattC

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
2
by: Michael Sanford | last post by:
I'm getting a Sysmte.IO.FileNotFoundException when executing the code below. It is straight from the example. This works on one machine, but not the other. Other benign calls invoke the same...
0
by: Daylor | last post by:
any suggestions, why FileNotFoundException is throw , when im try to send object from appdomain to other ? (the object inherits MarshalByRefObject) i dont have a clue what the VS.2003 want...
3
by: Nick | last post by:
Hello, Let me explain my situation. There is an application in C++ (that I didn't write) that needs to call a C# DLL. One option, I believe, would be to compile the app with the clr switch....
3
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
5
by: SGRing | last post by:
I have a c# application that I'm migrating from 2003 to 2005, and I moved it to another machine. It built ok. But, when trying to run I get System.IO.FileNotFoundException was unhandled...
0
by: Peter Vestergaard | last post by:
Hi, I am running VS .Net 2005. I have an application in which one of the classes are having a member that is an instance of a class defined in a managed C++ dll. As soon as I try to create an...
2
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer....
2
by: bbindae | last post by:
I am trying to check whether XmlTextReader reads the xml file successfully or not. MSDN says that XmlTextReader raise the FileNotFoundException when it cannot find the file to read. Here is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.