Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HelloWorld.aspx program runs on Laptop but not on Dekstop
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
HelloWorld.aspx program runs on Laptop but not on Dekstop
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01433142
Message ID:
01433142
Vues:
113
Okay, I wrote a simple HTML program called and then saved it as an ASPX file, HelloWorld.aspx. I made a virtual directory called ASPNET35 whose physical path is: C:\INetPub\wwwroot\ASPNETStepbyStep\

The program is very simple. If you will notice, I added the one line of code: %@ Page Language = "C#" % to make it respond as an aspx file should respond. I got this to work on my laptop, but not on my desktop. I do not understand why this is so different between one machine and another. IIS is active and the virtual directory is good.

I had to take the brackets off in order to save it here. The following line is to make it work like an aspx instead of an html file.

%@ Page Language = "C#" %

Here's the error:

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070032
Requested URL http://localhost:80/ASPNET/HelloWorld.aspx
Physical Path C:\inetpub\wwwroot\ASPNETStepbyStep\HelloWorld.aspx
Logon Method Anonymous
Logon User Anonymous
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform