473,387 Members | 1,834 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,387 software developers and data experts.

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

347 100+
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
8 7133
MrMancunian
569 Expert 512MB
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
dougancil
347 100+
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
569 Expert 512MB
Where do you refer to this file?
Apr 14 '10 #4
dougancil
347 100+
This line is line one .... I don't refer to it in any other place but there.
Apr 14 '10 #5
MrMancunian
569 Expert 512MB
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
dougancil
347 100+
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
dougancil
347 100+
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
569 Expert 512MB
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

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

Similar topics

6
by: Uwe Mayer | last post by:
Hi, when extending a build in class, what does the constructor __init__(...) have to return? and how does the constructor call its base-class construtor? (or is this done automatically?) I...
0
by: Jan | last post by:
I store sql-commands in a database table. In the first step I get the sql command out of the database table with embedded sql. In the second step I try to execute the command, which i got from the...
1
by: Beryl Small | last post by:
I have a web application in Visual Studio.Net 2003. On the click event of a button on my .aspx page, I use the following FileCopy SourceFile, DestinationFil the Sourcefile is on a mapped drive...
2
by: S.Peppe | last post by:
Hi there! I'm really new at this game, so please forgive me if my request is at all irritating. I have installed PostgreSQL onto a Debian/Linux machine, and I have just upgraded PostgreSQL via...
6
by: John Baker | last post by:
Hi: Does "On Open" code execute before or after related data is loaded? I want to test before the form appears on the screen to see if there is any data in the queryresult, and if there is not...
7
by: Drew Berkemeyer | last post by:
I've encounted a pretty strange problem and I'm not quite sure what to make of it. I have a web service that consumes an XML file as well as a few other parameters. This web service works fine...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
3
kickingthehabbit
by: kickingthehabbit | last post by:
Hi All new to all of this I just downloaded reactor server. everything works fine except Mysql - SQL import files. I am trying to import file createdb.sql I open DB and try and import with...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am getting an "Access to the path "xxxx" is denied error. I believe is because the file that I am writing to programatically is being read/written to by another end user. These files have the...
3
by: moltendorf | last post by:
I copied the files from my "test" database on my old server (MySQL was not running) to my new server ("./mysql/data/test" folder), and after starting the server, SHOW TABLES; shows all of the tables...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.