ASP.NET "The resource cannot be found."
Posted: Sun Mar 11, 2007 10:04 am
feyd | Please use
This doesn't work, but regular HTML pages do work. Unfortunately I don't have a very fine degree of control over things as I have to use 1&1 hosting "wonderful" web control panel.
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Does anyone have any experience with ASP.NET? Since there's a problem which is driving me insane. The .aspx files I've uploaded refuse to work, the following error is produced:
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: /Default.aspx
At first I thought that it was a problem with the site I was building (using visual web developer express) so I used notepad to create a VB based script, tested it on IIS on my own machine and uploaded it. Therefore I'm assuming the script is not at fault:
[syntax="asp"]<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Sample Page</title>
<script runat="server">
Sub Page_Load()
messageLabel.Text = "Hello World!"
End Sub
</script>
</head>
<body>
<form runat="server">
<p>
<asp:Label id="messageLabel" runat="server" />
</p>
<p>
<%-- Declare the title as string and set it --%>
<% Dim Title As String = "This is generated by a " & _
"code render block." %>
<%= Title %>
</p>
</form>
</body>
</html>feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]