My error log is filling up with "File does not exist" error messages and I can't find where the problem lies.
Timestamp: 6/7/2007 12:11:35 AM
Message: HandlingInstanceID: a98ec45d-eb5d-4053-a0eb-4b6ecd17185f
An exception of type 'System.Web.HttpException' occurred and was caught.
------------------------------------------------------------------------
06/06/2007 17:11:35
Type : System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : File does not exist.
Source : System.Web
Help link :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ProcessRequestInternal(System.Web.HttpContext)
Stack Trace : at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
You are accessing some file via program, make sure that file exists on given path or give some code detail, what you are trying to do to further drill down.
Regards,
Zahid
Dont forget to "Mark As Answer" if this post answered your question
I have been debugging for a few hours now and have finally figured out which code causes an error. I have different "layouts" that I can cut and past into my aspx pages and one of the layouts is not working. All the pages that I am using this page layout
on are giving me the same error message "File does not exist". I am using a master page. Here is the html code which goes into the content page and causes the error:
div
class="bar-615"></div>
<div
class="infowrapper">
<
h2><asp:Literal
ID="Literal1"
runat="server"
Text="Lorem ipsum dolor sit amet"
/></h2>
<p>
<
asp:Localize
ID="Localize1"
runat="server">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
</asp:Localize>
</
p>
<h3><asp:Literal
ID="Literal2"
runat="server"
Text="Lorem ipsum dolor sit amet"
/></h3>
p><asp:Localize
ID="Localize2"
runat="server">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua</asp:Localize></p>
<asp:HyperLink
ID="HyperLinkBackToTop"
runat="server"
CssClass="backtotoplink">back to top</asp:HyperLink>
</div>
<!-- end .infowrapper -->
<a
name="mainnav"></a>
<!-- Target for skiplink in #headerbox -->
<ul
class="mainnav">
<
li
class="currentbutton">
<asp:HyperLink
ID="HyperLink2"
runat="server"><span>HyperLink</span></asp:HyperLink></li>
<
li
class="button">
<asp:HyperLink
ID="HyperLink3"
runat="server"><span>HyperLink</span></asp:HyperLink></li>
<
li
class="button">
<asp:HyperLink
ID="HyperLink4"
runat="server"><span>HyperLink</span></asp:HyperLink></li>
<
li
class="button">
<asp:HyperLink
ID="HyperLink5"
runat="server"><span>HyperLink</span></asp:HyperLink></li>
<
li
class="button">
<asp:HyperLink
ID="HyperLink6"
runat="server"><span>HyperLink</span></asp:HyperLink></li>
<
li
class="button">
<asp:HyperLink
ID="HyperLink7"
runat="server"><span>HyperLink</span></asp:HyperLink></li>
<
li
class="button">
<asp:HyperLink
ID="HyperLink8"
runat="server"><span>HyperLink</span></asp:HyperLink></li>
</
ul>
<
br
class="brclear"
/><!-- Important element! Don't remove! -->
</
div>
<!-- end .boxbottom -->
</div>
<!-- end .box-200-410 -->
Here is what I found and what reproduces the error “File does not exist”. Any page where I use the html tag <hr /> throws the error if I take the tag out it works fine if I put it
back in there it throughs an error.
I am thinking it has todo with the CSS file. I have 2 entries in the CSS file for hr
hr {height:1px;background-image:url(images/split.gif);width:100%;color: #C0C0C0;}I have no idea what is going on if somebody could enlighten me I would greatly appreciate it.
Here is what I found and what reproduces the error “File does not exist”. Any page where I use the html tag <hr /> throws the error if I take the tag out it works fine if I put it
back in there it throughs an error.
I am thinking it has todo with the CSS file. I have 2 entries in the CSS file for hr
hr {height:1px;background-image:url(images/split.gif);width:100%;color: #C0C0C0;}I have no idea what is going on if somebody could enlighten me I would greatly appreciate
it.
Is background-image right? Does it exist? Please make sure that it exists and you can put background in <hr/>. I think you can cancel the background-image.
Thanks.
Please give us feedback no matter whether you get your answer.
Please "mark as answer" if it's useful for you
I just had the same problem and I was wondering what file it is was talking about. I just had one missing image file from the background images in css. I added that and it no longer throws that exception. Thank you, it helped.
I've experienced this problem for the first time today, and the issue was a missing stylesheet referenced in a master page. I'm running the same code in 2 environments, one is .NET 2.0 and the other .NET 3.5 SP1 Beta; only the second environment has any
problem with the missing stylesheet.
newbie06
Member
625 Points
458 Posts
How to debug "File does not exist" error?
Jun 07, 2007 12:28 AM|LINK
My error log is filling up with "File does not exist" error messages and I can't find where the problem lies.
Timestamp: 6/7/2007 12:11:35 AM
Message: HandlingInstanceID: a98ec45d-eb5d-4053-a0eb-4b6ecd17185f
An exception of type 'System.Web.HttpException' occurred and was caught.
------------------------------------------------------------------------
06/06/2007 17:11:35
Type : System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : File does not exist.
Source : System.Web
Help link :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ProcessRequestInternal(System.Web.HttpContext)
Stack Trace : at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Additional Info:
MachineName : LUNARPARK
TimeStamp : 6/7/2007 12:11:35 AM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null
AppDomainName : dc2b224e-1-128256471216816445
ThreadIdentity :
WindowsIdentity : LunarPark\Bischi
Category: General
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: LUNARPARK
Application Domain: dc2b224e-1-128256471216816445
Process Id: 5088
Process Name: C:\Windows\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE
Win32 Thread Id: 4616
Thread Name:
Extended Properties:
threekhanz
Member
24 Points
7 Posts
Re: How to debug "File does not exist" error?
Jun 07, 2007 06:25 AM|LINK
You are accessing some file via program, make sure that file exists on given path or give some code detail, what you are trying to do to further drill down.
Zahid
Dont forget to "Mark As Answer" if this post answered your question
kaushalparik...
All-Star
26580 Points
3693 Posts
MVP
Re: How to debug "File does not exist" error?
Jun 07, 2007 06:37 AM|LINK
can you post you code to help you out.!?
make sure that file exists at the path you are specifying. or make sure that you are having proper rights to access at the specified path.
Good Luck.
[KaushaL] || BloG || Twitter
Don't forget to click "Mark as Answer" on the post that helped you.
newbie06
Member
625 Points
458 Posts
Re: How to debug "File does not exist" error?
Jun 07, 2007 11:46 PM|LINK
I have been debugging for a few hours now and have finally figured out which code causes an error. I have different "layouts" that I can cut and past into my aspx pages and one of the layouts is not working. All the pages that I am using this page layout on are giving me the same error message "File does not exist". I am using a master page. Here is the html code which goes into the content page and causes the error:
<!--XXXXXXXXXXXX First Module XXXXXXXXXXXX-->
<a name="top"></a> <div class="box-615"><
div class="boxbottom">
<asp:HyperLink ID="HyperLink1" runat="server" CssClass="toprightlink">HyperLink</asp:HyperLink><
div class="bar-615"></div> <div class="infowrapper"><
h2><asp:Literal ID="Literal1" runat="server" Text="Lorem ipsum dolor sit amet" /></h2> <p><
asp:Localize ID="Localize1" runat="server">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
</asp:Localize></
p> <h3><asp:Literal ID="Literal2" runat="server" Text="Lorem ipsum dolor sit amet" /></h3><
hr /> <h3><asp:Literal ID="Literal3" runat="server" Text="Lorem ipsum" /></h3><
p><asp:Localize ID="Localize2" runat="server">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua</asp:Localize></p> <asp:HyperLink ID="HyperLinkBackToTop" runat="server" CssClass="backtotoplink">back to top</asp:HyperLink> </div> <!-- end .infowrapper -->
<a name="mainnav"></a> <!-- Target for skiplink in #headerbox --> <ul class="mainnav"><
li class="currentbutton"> <asp:HyperLink ID="HyperLink2" runat="server"><span>HyperLink</span></asp:HyperLink></li><
li class="button"> <asp:HyperLink ID="HyperLink3" runat="server"><span>HyperLink</span></asp:HyperLink></li><
li class="button"> <asp:HyperLink ID="HyperLink4" runat="server"><span>HyperLink</span></asp:HyperLink></li><
li class="button"> <asp:HyperLink ID="HyperLink5" runat="server"><span>HyperLink</span></asp:HyperLink></li><
li class="button"> <asp:HyperLink ID="HyperLink6" runat="server"><span>HyperLink</span></asp:HyperLink></li><
li class="button"> <asp:HyperLink ID="HyperLink7" runat="server"><span>HyperLink</span></asp:HyperLink></li><
li class="button"> <asp:HyperLink ID="HyperLink8" runat="server"><span>HyperLink</span></asp:HyperLink></li></
ul><
br class="brclear" /><!-- Important element! Don't remove! --></
div> <!-- end .boxbottom --> </div> <!-- end .box-200-410 --><!--XXXXXXXXXXXX End First Module XXXXXXXXXXXX-->
newbie06
Member
625 Points
458 Posts
Re: How to debug "File does not exist" error?
Jun 08, 2007 01:57 AM|LINK
Here is what I found and what reproduces the error “File does not exist”. Any page where I use the html tag <hr /> throws the error if I take the tag out it works fine if I put it back in there it throughs an error.
I am thinking it has to do with the CSS file. I have 2 entries in the CSS file for hr
html, body, ul, ol, li, dl, dt, dd, img, form, hr {margin: 0; padding: 0; border: 0; list-style: none;}
hr { height:1px; background-image:url(images/split.gif); width:100%; color: #C0C0C0; }I have no idea what is going on if somebody could enlighten me I would greatly appreciate it.Patrick
newbie06
Member
625 Points
458 Posts
Re: How to debug "File does not exist" error?
Jun 08, 2007 01:57 AM|LINK
Here is what I found and what reproduces the error “File does not exist”. Any page where I use the html tag <hr /> throws the error if I take the tag out it works fine if I put it back in there it throughs an error.
I am thinking it has to do with the CSS file. I have 2 entries in the CSS file for hr
html, body, ul, ol, li, dl, dt, dd, img, form, hr {margin: 0; padding: 0; border: 0; list-style: none;}
hr { height:1px; background-image:url(images/split.gif); width:100%; color: #C0C0C0; }I have no idea what is going on if somebody could enlighten me I would greatly appreciate it.Patrick
Jerome Cui -...
Star
12018 Points
1080 Posts
Re: How to debug "File does not exist" error?
Jun 11, 2007 01:46 PM|LINK
Hi newbie06,
Is background-image right? Does it exist? Please make sure that it exists and you can put background in <hr/>. I think you can cancel the background-image.
Thanks.
Please "mark as answer" if it's useful for you
Sincerely,
Jerome
temebele
Member
11 Points
11 Posts
Re: How to debug "File does not exist" error?
Sep 25, 2007 11:29 PM|LINK
I just had the same problem and I was wondering what file it is was talking about. I just had one missing image file from the background images in css. I added that and it no longer throws that exception. Thank you, it helped.
pauldundon
Member
4 Points
12 Posts
Re: How to debug "File does not exist" error?
Jul 13, 2008 12:30 AM|LINK
I've experienced this problem for the first time today, and the issue was a missing stylesheet referenced in a master page. I'm running the same code in 2 environments, one is .NET 2.0 and the other .NET 3.5 SP1 Beta; only the second environment has any problem with the missing stylesheet.
rjainx
Member
3 Points
1 Post
Re: How to debug "File does not exist" error?
Oct 21, 2008 06:48 PM|LINK
Worked for me thanks! It was a missing .css file at master page.