Cannot Run ASP

I cannot run .asp files.
My IIS is running.
I can only run .htm files.

I type this
http://localhost/myfile.htm  <-- ok
http://localhost/myfile.asp  <-- NOT ok

When i run .asp files, I get this error
Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

just use this code in your asp file to test:


response.write "Hello World"


Does this work?
if you've not altered the webfile location, are you storing the files in c:\inetpub\wwwroot\

file should be called "somthing".asp (without the speech marks)

and for a test put something like this into the ASP file.


date1 = date()
response.write date1



then to view it goto http://localhost/yourpagename.asp

if it works you should get the date in the web browser.

failing this...
open the Internet Serivces Manager (mmc snapin)
and check your configuration

Are you running IIS 6? If so, you need to configure the site to run .ASP files. by default they are not set.

Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

ansi_cAuthor Commented:
ap_sajith, how to configure?
If you search on Google, there is an "IIS Lockdown" utility that Microsoft made.  It asks you what features you want enabled, and it disables the rest.  On IIS 6 most are now disabled by default, but I assume the utility also has the ability to enable items you want that are currently disabled.
Go to Inetmgr(IIS Console),Click on Web server extensions, Click on Active server pages and click on 'Allow'. This should get you going.

If you are using file uploads then there is a limit of 2megs on them, you need to edit the config.web file to specify a higher size for the file uploads.

ansi_cAuthor Commented:
i click on the server extensions but then it says
"This server has not been configured to use the Server Extensions. To configure it, choose Configure Server Extensions fronm the task menu for this server."

I cannot find the configure button.
ansi_cAuthor Commented:
FYI, I think i am using FAT32 and not NTFS on WinXP Pro.
Could this be the reason?
Check out application and system log files in Event Viewer.
You will get clue from there.
That error is too general and not specific.

Do you have the service pack installed for winxp?;en-us;310407&Product=winxp

Try following the steps described in the article...

Do you have Norton Antivirus installed? If so, Try running the asp page after disabling the Script blocking option in NAV.

Also, you could try disabling the simple file sharing option..

To turn Simple File Sharing on or off in Windows XP Professional:
Double-click My Computer on the desktop.
On the Tools menu, click Folder Options.
Click the View tab, and then click to select the Use Simple File Sharing (Recommended) check box to enable Simple File Sharing (click to clear this check box to disable this feature).


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.