ASP.NET "The resource cannot be found."

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
jolinar
Forum Commoner
Posts: 61
Joined: Tue May 24, 2005 4:24 pm
Location: in front of computer

ASP.NET "The resource cannot be found."

Post by jolinar »

feyd | Please use

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>
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]
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Have you tried installing PHP?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

My first advise would be to verify if the process running asp.net (i believe the aspnet_wp.exe) has the rights to read the files...

(Probably forums.asp.net is a better resource for asp.net related problems...)
Post Reply