Jump to content

I cant run asp file


clar

Recommended Posts

I have install Personal Web Server and have checked that it is running. I type "http://localhost/MyWeb/test1.asp", but it say "The page cannot be displayed", the title of the page is "HTTP 500 Internal server error".I have placed test1.asp file under wwwroot folder, so I cant think of it why it cannot work. But I try running html file, it can be displayed. Can anybody help me?

Link to comment
Share on other sites

I'm not 100% certain of the differences between PWS and IIS but if the test1.asp file is directly inside wwwroot, I would expect the address to be http://localhost/test1.asp. Or is the file within a directory called 'MyWeb'?Also, when you try with the HTML file are you viewing it through the server, by going to, say, http://localhost/MyWeb/test.html?

Link to comment
Share on other sites

Yes, what u have say I doing according to it, but it still cannot work. I try save a jsp file, and type "http://localhost/test1.jsp", it is also able to display, just only asp cant work. Oh ya, I forget to say my OS is Windows 98, dont think can install IIS.Do I need to install any other thing before can run asp file, like jdk or need to set any classpath?

Link to comment
Share on other sites

Ah, are you using IE? If you are go to Tools > Options > Advanced then uncheck "Show friendly HTTP error messages".Now reload the page and I think it might give you an ASP error. I think theres just a fault in your code, but IE is helpfully hiding the details from you.

Link to comment
Share on other sites

Actually I'm trying my first asp file, so it only contain very simple coding, so i don think is the code that cause the fault.By the way, this is my coding:<html><body> <% response.write("Hello World!")%> </body></html>Do u think is because there's a requirement to install any program or asp file cant run on windows 98?Thanks a lot for your help.

Link to comment
Share on other sites

No, I'm pretty sure you shouldn't have to install anything else, or set any classpaths. And ASP should run fine on PWS. You're right, that code should run fine, but I would still recommend you check friendly messages are turned off because you'll want all the information you can get about errors that occur.It could be something to do with the PWS settings, I don't have a copy of PWS or IIS on this machine so I can't have a look at them at the moment.I suggest you google for "ASP internal server error" and similar to look for causes, particularly on the microsoft support site.Heres one possible problem: http://support.microsoft.com/?scid=kb;en-u...3042&sid=global

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...