Thursday, February 9, 2012

ASP.NET * Cannot find file

When launching created file 'eSurvey.aspx' the following error occurs.
How can I resolve this matter? Thanks!
ERROR:
Could not find a part of the path "E:\Documents and
Settings\wardte\Desktop\eSurvey\convert\
files\Rigid_PCB_Questionnaire.htm".
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information abou
t
the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a
part of the path "E:\Documents and
Settings\wardte\Desktop\eSurvey\convert\
files\Rigid_PCB_Questionnaire.htm".
Source Error:
Line 107: objStreamReader = File.OpenText(filename)You are posting in the wrong forum. This is a SQL server forum, and you
have an ASP.Net issue.
The error you are recieving told you exactly what the problem is, the file
the code is trying to access cannot be found. Either the files doesnt
exist, the path is wrong, or the user for which the code is running does not
have access to the file.
You are going to have to look through the ASPX and the .Net source code and
determine where the code is trying to access the file, but the first thing
you need to do is look on the server for :
"E:\Documents and
Settings\wardte\Desktop\eSurvey\convert\
files\Rigid_PCB_Questionnaire.htm"
Make sure you do this on the server, and not on the client PC (unless the PC
is the web server).
Keep in mind that the drive mapping may not exist for the user under which
the web server code is running. Using the \\ServerName\ShareName\FilePath
instead of referring to the E:\ drive may also fix your problem.
The ASP.Net user groups will provide much more help than you will get here.
They can also point you in the direction of some ASP.Net and file access
tutorials that will help you to make more sense of the code.
Good luck!
"Terry" <Terry@.discussions.microsoft.com> wrote in message
news:688AE5DE-A9F0-429C-8BE3-56871AEEDE73@.microsoft.com...
> When launching created file 'eSurvey.aspx' the following error occurs.
> How can I resolve this matter? Thanks!
> ERROR:
> Could not find a part of the path "E:\Documents and
>
Settings\wardte\Desktop\eSurvey\convert\
files\Rigid_PCB_Questionnaire.htm".
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
about
> the error and where it originated in the code.
> Exception Details: System.IO.DirectoryNotFoundException: Could not find a
> part of the path "E:\Documents and
>
Settings\wardte\Desktop\eSurvey\convert\
files\Rigid_PCB_Questionnaire.htm".
> Source Error:
> Line 107: objStreamReader = File.OpenText(filename)
>

No comments:

Post a Comment