Jump to content
Sign in to follow this  
bluekid239

ASP not working?

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>

Edited by bluekid239

Share this post


Link to post
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.

  • Like 1

Share this post


Link to post
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. Edited by bluekid239
  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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 Edited by Spawnie

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...