bluekid239 1 Posted March 14, 2010 Report Share Posted March 14, 2010 (edited) 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 March 14, 2010 by bluekid239 Quote Link to post Share on other sites
justsomeguy 1,135 Posted March 15, 2010 Report Share Posted March 15, 2010 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. 1 Quote Link to post Share on other sites
bluekid239 1 Posted March 16, 2010 Author Report Share Posted March 16, 2010 (edited) 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 March 16, 2010 by bluekid239 1 Quote Link to post Share on other sites
amj 0 Posted March 31, 2010 Report Share Posted March 31, 2010 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. Quote Link to post Share on other sites
ballack999 0 Posted June 1, 2010 Report Share Posted June 1, 2010 Have a careful looking and creating step by step.I think you maybe miss something. Quote Link to post Share on other sites
markph88@gmail.com 0 Posted June 8, 2010 Report Share Posted June 8, 2010 (edited) 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 June 8, 2010 by Spawnie Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.