VB.NET Code

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2006
Posts: 18
Reputation: r_jack is an unknown quantity at this point 
Solved Threads: 0
r_jack r_jack is offline Offline
Newbie Poster

VB.NET Code

 
0
  #1
Feb 22nd, 2007
I used notepad to create VB.NET code exactly as it is in a book,
then saved the file as TestWeb.aspx into C:\ASP.NET\TestWeb directory.
When I type http://localhost/ASP.NET/TestWeb/TestWeb.aspx, I get message
below:


Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /ASP.NET/TestWeb/TestWeb.aspx


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
What is the problem?
Last edited by r_jack; Feb 22nd, 2007 at 8:51 pm. Reason: To correct a mistake
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,146
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: VB.NET Code

 
0
  #2
Feb 22nd, 2007
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 18
Reputation: r_jack is an unknown quantity at this point 
Solved Threads: 0
r_jack r_jack is offline Offline
Newbie Poster

Re: VB.NET Code

 
0
  #3
Feb 23rd, 2007
I have tried as suggested (http://localhost/TestWeb/TestWeb.aspx,), I get the same error.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,146
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: VB.NET Code

 
0
  #4
Feb 23rd, 2007
try http://localhost/TestWeb/default.aspx,),

if not then I think its an error with your IIS configuration
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 18
Reputation: r_jack is an unknown quantity at this point 
Solved Threads: 0
r_jack r_jack is offline Offline
Newbie Poster

Re: VB.NET Code

 
0
  #5
Feb 23rd, 2007
Originally Posted by jbennet View Post
try http://localhost/TestWeb/default.aspx,),

if not then I think its an error with your IIS configuration
It still doesn't work. The code is: <html>
<script language="VB" runat="server">
Private Sub Page_load()
lblTest.Text = "Hello, the Page.Load event occured."
End Sub
</script>
<body>
<form id="Form" runat="server">
<asp:Label id="lblTest" runat="server" />
</form>
</body>
</html>.

I did not make any configuration of IIS after installing it from Add/Remove Components/Add Windows Components.
So any IIS configurations are the default ones. Are there any configurations you can suggest I should make.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 79
Reputation: nikkiH is an unknown quantity at this point 
Solved Threads: 4
nikkiH's Avatar
nikkiH nikkiH is offline Offline
Junior Poster in Training

Re: VB.NET Code

 
0
  #6
Feb 23rd, 2007
If you are not putting your code under C:\inetpub\wwwroot, then you need to tell IIS where to look for it. You appear to have put it in a normal directory. You can either make that a virtual directory in IIS, or move the whole thing under wwwroot.

I am a fan of virtual directories, personally.
Google is your friend. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC