Avatar of Misafi
MisafiFlag for South Africa

asked on 

How can I preview Classic ASP in the browser when using Microsoft Expression Web with XP Pro

I have successfully used M S Expression with Windows Server 2003 and classic ASP.
I am attempting to use it on my laptop with XP Pro SP3, and everything works well until I attempt to preview an asp page in the browser - I then get an error message " This page may contain dynamic content that requires a web server ......"
The site itself works well - If I publish it to an external server it's fine.
I can view HTML pages in the browser without any problem.
IIS and www components have been activated.
Any assistance woulkd be appreciated

kind regards
ASPWeb Servers

Avatar of undefined
Last Comment
tigermatt
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

The content must be parsed by IIS. So, you must ensure the site is saved into C:\Inetpub\wwwroot (and then perhaps a sub-folder - "MySite"). Then, open your browser and type http://localhost/mysite/page.asp. That string will be passed to IIS, which will execute the ASP in the page before it outputs the result.

With any type of server-side scripting it is not possible for you to run the files directly from the file system, otherwise you get the issue you are seeing.

-tigermatt
Avatar of Misafi
Misafi
Flag of South Africa image

ASKER

Thanks - I do have the sites in the wwwroot folder
Calling the page up by your method (the localhost path)  works  perfectly and the page comes up without a problem.
The trouble (or inconvenience) comes when developing sites in Expression.
Previously I could work on an ASP page - click on "preview in Browser" to check the result - now I can't.
The fact that your solution above works means that all the necessary ingredients are there, but for some reason they will not work within the Microsoft Expression application whereas when used with Server 2003 they will.
Any idea how I can overcome this?
kind regards

Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

Just been researching this and it looks like Microsoft Expression Web has a built-in mini web server which can be used for testing ASP sites. Perhaps you have a problem with this instead.

I wonder, would a reinstall or repair install of Expression Web help?

-tigermatt
Avatar of Misafi
Misafi
Flag of South Africa image

ASKER

Thanks for the effort. I have tried that a few times.
In fact I first ame across the problem when I had Vists on my laptop and made many attempts to get it to work. I then assumed that the problem lay with Vista and downgraded to XP Professional - the problem is still there.

I can preview HTM, HR+TML, ASPX, but not ASP.

kind regards
ASKER CERTIFIED SOLUTION
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Misafi
Misafi
Flag of South Africa image

ASKER

I think that it does that anyway, because you can still preview the other files - HTM and ASPX - with the browser.

rgds

Avatar of Misafi
Misafi
Flag of South Africa image

ASKER

OK I've got it - thanks for your guidance.
Expressions will "default" new web site to "My Websites" within "My Documents" and in that case the ASP page cannot be previewed in the Browser.
If you set the new website to http://computername/websitename the whole thing works well.

I am sure that there is probably a better way of doing it but this "workaround" will do for me.

Thanks for your help
Avatar of Misafi
Misafi
Flag of South Africa image

ASKER

Many thanks for your help - you may not have come up with the complete solution but your input helped me to solve it and that was very valuable.

rgds
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

Good you sorted it - that was the route I was thinking you would need to take. It is very similar to the way dreamweaver configures it!

Thanks very much :-)
ASP
ASP

Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.

82K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo