How do I run a classic asp webpage from visual studio
-
I have two classic asp pages on my local machine that I would like to test them by bring each up in a browser from Visual Studio just to test a few links. How can I do this?
-
I have two classic asp pages on my local machine that I would like to test them by bring each up in a browser from Visual Studio just to test a few links. How can I do this?
You need Visual InterDev which comes with Visual Studio 6 :) As asp is interpreted you can use any text editor to amend the pages; sublime, notepad++ etc. They might not recognize classic asp syntax features but it's no big deal. Then to test you just navigate to the pages directly in your browser
-
I have two classic asp pages on my local machine that I would like to test them by bring each up in a browser from Visual Studio just to test a few links. How can I do this?
I have run across this problem many times and Have FINALLY found out what is going on and how to solve it. In VS 2012 (and probably 2010 and 2013), after you load your web site, right click on the site name (usually something like C:\..\\) and a large menu appears. Look for "Use IIS Express..." and click on this. Two pop-ups will appear click Yes on the first and OK on the second. Give it a few seconds and you will then see the site name has changed and the C:\..\ is no longer there. (i.e. C:\..\MySite\ becomes MySite). If you don't already have a specific page set up to be the default page to run when you run the site from VS, click on the start page, (i.e. index.asp, Default.asp, etc...) and then hit F5 to run the site. It should come right up. If you try to run the above procedure but you don't see the option "Use IIS Express..." what you might see instead is "Use Visual Studio Development Server". This means you are already set up to run classic asp and your problem is probably your pages. Things you can try: Hit Shift-F4 to open the properties page and select Start Options. Click on Use Current Page and then click Okay. Select the simplest/do nothing ASP page you have (or create one), one that doesn't require logging in or getting data from a database but maybe just prints something to the screen using a Response.Write. Once selected, hit F5. If this page works then VS is set up correctly but the problem is with your code.