Solved

Cannot Run ASP

Posted on 2003-12-11
12
957 Views
Last Modified: 2012-06-21
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.


Why?
0
Comment
Question by:ansi_c
12 Comments
 
LVL 8

Expert Comment

by:NowaY
Comment Utility
just use this code in your asp file to test:

<%

response.write "Hello World"

%>

Does this work?
0
 
LVL 2

Expert Comment

by:hb21l6
Comment Utility
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.

<html>
<title>test</title>

<%
date1 = date()
response.write date1

%>

</html>

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




0
 
LVL 21

Expert Comment

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

Cheers!!
0
 

Author Comment

by:ansi_c
Comment Utility
ap_sajith, how to configure?
0
 
LVL 6

Expert Comment

by:MannSoft
Comment Utility
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.
0
 
LVL 21

Expert Comment

by:ap_sajith
Comment Utility
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.

Cheers!!
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:ansi_c
Comment Utility
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.
0
 

Author Comment

by:ansi_c
Comment Utility
FYI, I think i am using FAT32 and not NTFS on WinXP Pro.
Could this be the reason?
0
 
LVL 33

Assisted Solution

by:hongjun
hongjun earned 125 total points
Comment Utility
Check out application and system log files in Event Viewer.
You will get clue from there.
That error is too general and not specific.

hongjun
0
 
LVL 21

Expert Comment

by:ap_sajith
Comment Utility
Do you have the service pack installed for winxp?
http://support.microsoft.com/default.aspx?scid=kb;en-us;310407&Product=winxp

Cheers!!
0
 
LVL 21

Accepted Solution

by:
ap_sajith earned 125 total points
Comment Utility
Try following the steps described in the article...
http://support.microsoft.com/?id=309051

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).

Cheers!!
0
 
LVL 21

Expert Comment

by:ap_sajith
Comment Utility
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now