Jump to content

ASP not working?


bluekid239

Recommended Posts

Hello, I'm relatively new with ASP, and I'm having trouble. Last weekend, I was learning ASP and doing rather well. I had an HTML page with a form and an ASP file to process it. It worked fine and dandy. Now I go back to check it again today (and yesterday), and all of a sudden it doesn't work any more! Everytime I click the submit button, Internet Explorer tries to download the ASP file, unless the HTML page is viewed in a frame and scripting is allowed. In that case it just shows the HTML parts of the ASP and doesn't do anything between the <% %> tags. I've even tried the simplist "Hello World!" ASP I can find, and it doesn't work! What am I doing wrong? I'm currently using IIS version 7.5 on Windows 7 OS. Oh, and also, I added a test file called test.asp to my wwwroot folder, and typed this into my browser: "http://localhost/test.asp" and got an HTTP 404 Not Found error page instead. The code is as follows: (VBScript is the default scripting language)

<html>	<head>	</head>	<body>		This is a test:<br/>		<%response.write("hello world!")%>	</body></html>

Link to comment
Share on other sites

Can you just access http://localhost/? It sounds like the server might not be running. Keep in mind you can't double-click an ASP file to run it, you need to access it over HTTP.
I've tried connecting to http://localhost/, but it give me an HTTP 404 Not Found error page. Also, I just checked it again AND checked IIS, and IIS says the server is running. Thank you for pointing out the flaw in double-clicking on the ASP file, I'll keep that in mind. Here's the exact description IE gave me of the 404 error.This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpageEDIT: I realized my problem lies with IIS, not ASP, so I moved my question here.
Link to comment
Share on other sites

  • 2 weeks later...

Have you looked in IIS to see what the document names are?The root could posibly have in the following which if they do not exist will give the 404 errordefault.htmdefault.aspindex.htmindex.aspiisstart.aspCreate a blank one of these to check that it's IIS problem.

Link to comment
Share on other sites

  • 2 months later...
Have a careful looking and creating step by step.I think you maybe miss something.
Well in my experice, I run ASP on Win7 with ISS 7.something. And I have put my files in the folder called "wwwroot/testsite" located:C:\inetpub\wwwroot\testsiteAnd to acces it i type in the browser:http://localhost/testsite/And then it opens Default.asp, which is located in the folder "testsite".Maybe you have misplaced the files?Well, just a suggestion.Cheers,Mark
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...