| | |
VB.NET Code
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2006
Posts: 18
Reputation:
Solved Threads: 0
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?
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
•
•
Join Date: Nov 2006
Posts: 18
Reputation:
Solved Threads: 0
I have tried as suggested (http://localhost/TestWeb/TestWeb.aspx,), I get the same error.
try http://localhost/TestWeb/default.aspx,),
if not then I think its an error with your IIS configuration
if not then I think its an error with your IIS configuration
If i am helpful, please give me reputation points.
•
•
Join Date: Nov 2006
Posts: 18
Reputation:
Solved Threads: 0
•
•
•
•
try http://localhost/TestWeb/default.aspx,),
if not then I think its an error with your IIS configuration
<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.
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.
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/
Bored? Visit http://www.kaelisspace.com/
![]() |
Similar Threads
- Moving VB.NET Code to ASP.NET Code? (ASP.NET)
- Creating WebDirectory in ISS using VB.Net Code (VB.NET)
- Code convertor in Vb .net (VB.NET)
- Is it possible to execute the ASP.NET code in command prompt..? (C#)
- Free ASP.NET Application with code to practice (ASP.NET)
- I Need Sample ASP.NET Code (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: VB.NET Error
- Next Thread: set back color at run time
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose feedback flash flv form formatdecimal forms formview gridview homeedition iframe iis javascript jquery listbox login menu microsoft mono mouse mssql multistepregistration news numerical objects order panelmasterpagebuttoncontrols parent radio ratings reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard software sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml youareanotmemberofthedebuggerusers






