By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,570 Members | 1,613 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,570 IT Pros & Developers. It's quick & easy.

Parser Error "he file 'xxx.xxx.aspx.vb' does not exist"

100+
P: 347
I'm a new vb.net user and am creating a page on a Windows 2003 Server. When I try to view the page with a browser I get the following error:

Parser Error Message: The file '/Sandbox/fileinput.aspx.vb' does not exist.

Here is the code for the page:

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="fileinput.aspx.vb" Inherits="_fileinput" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title>Untitled Page</title>
  8.     <style type="text/css">
  9.         .style1 {
  10.             text-align: center;
  11.         }
  12.     </style>
  13. </head>
  14. <body>
  15.  
  16. <p class="style1">&nbsp;</p>
  17. <p class="style1">Please upload your file below. </p>
  18. <p class="style1"><input name="File1" type="file" /></p>
  19. <form method="post">
  20.     <div class="style1">
  21.     <input id="Submit1" name="Submit1" type="submit" value="Upload File" OnServerClick="Upload Click" runat="server"/></div>
  22. </form>
  23. </p>
  24.  
  25.     <div class="style1">
  26.  
  27. <script>
  28. 'Save uploaded file to server at C:\ServerFolder\
  29.   Try 
  30.     MyFile.PostedFile.SaveAs("C:\ServerFolder\" + c)
  31.     Span1.InnerHtml = "Your File Uploaded Successfully: " & _
  32.                       "C:\ServerFolder\" & c
  33.   Catch Exp as exception
  34.     Span1.InnerHtml = "An Error occured. Please check the attached file"
  35.     UploadDetails.visible = false
  36.     Span2.visible=false
  37.   End Try
  38.   </script>
  39.  
  40. <asp:RegularExpressionValidator 
  41. id="FileUpLoadValidator" runat="server" 
  42. ErrorMessage="Upload .CSV files only." 
  43. ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.csv|.CSV|)$" 
  44. ControlToValidate="Submit1">
  45. </asp:RegularExpressionValidator>
  46.  
  47.     </div>
  48.  
  49. <p class="style1">&nbsp;</p>
  50.  
  51. </body>
  52.  
  53. </html>
  54.  
Can anyone offer any help on this?

Thank you,

Doug
Apr 13 '10 #1
Share this Question
Share on Google+
8 Replies


MrMancunian
Expert 100+
P: 569
The file '/Sandbox/fileinput.aspx.vb' does not exist.
Now why do you think it gives you this error? Did you check if it does exist?

Steven
Apr 14 '10 #2

100+
P: 347
well I know that the file doesnt exist but I have no idea how to create it. I guess that's my bigger question.
Apr 14 '10 #3

MrMancunian
Expert 100+
P: 569
Where do you refer to this file?
Apr 14 '10 #4

100+
P: 347
This line is line one .... I don't refer to it in any other place but there.
Apr 14 '10 #5

MrMancunian
Expert 100+
P: 569
Where is the fileinput.aspx.vb located? Do you see it in your solution explorer? If not, you can try to add it as "Existing Item"...
Apr 15 '10 #6

100+
P: 347
I dont see fileinput.aspx.vb listed in the Solution Explorer. I'm sorry but I don't know how to add it as an "Existing Item" ... I'll look that up.
Apr 15 '10 #7

100+
P: 347
I discovered what the problem was. I had initially written this page using Expression Web and essentially copied the code to Visual Studio without recreating the page. I had not created the .vb page or the proper web.config file. I started the page over and created it from scratch and now everything works fine. Thank you for your help.
Apr 16 '10 #8

MrMancunian
Expert 100+
P: 569
That is why I said you could add it as "Existing Item". You could have simply copied the file to your solution folder and then there is an option to add an existing file. Would have saved you time :-)

Steven
Apr 19 '10 #9

Post your reply

Sign in to post your reply or Sign up for a free account.