473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP code is not running

vikas251074
198 100+
I have been expert in running asp code. Now I am trying to work at my home. I have installed (OS-Windows XP SP2.0), Oracle9i, IIS. Now I try to run following simple program. Only 'Hello' is displayed but the data in asp code is not displayed. I don't know why.
Expand|Select|Wrap|Line Numbers
  1. <%@language="vbscript"%>
  2. <HTML>
  3. <HEAD>
  4. <TITLE>DSN CONNECTION TO ORACLE</TITLE>
  5. </HEAD>
  6. <BODY>
  7. Hello
  8. <% 
  9. Response.Write("<P>Connecting to Oracle the ASP way</P>")
  10. %>
  11. </BODY>
  12. </HTML>
Oct 2 '09 #1
11 3698
Frinavale
9,735 Expert Mod 8TB
Is your IIS configured so that it allows ASP code to run/execute?
Make sure that the website is also configured to allow ASP code to run.

-Frinny
Oct 2 '09 #2
vikas251074
198 100+
Where it is configured? I have installed iis in default mode. In control panel IIS icon is not available
Oct 3 '09 #3
Frinavale
9,735 Expert Mod 8TB
You need to go to control panel->administrative tools -> IIS

That should bring you to the IIS snap-in tool that you can use to configure IIS.
Oct 3 '09 #4
vikas251074
198 100+
Control Panel > Administrative Tool > Internet Information Services >

what setting should be done in IIS snap-in tool and where.
Oct 4 '09 #5
Frinavale
9,735 Expert Mod 8TB
  • Open the IIS snap-in tool.
  • Expand the Computer name.
  • Expand the Web Sites folder
  • Right click on Default Web Site
  • Select Properties
  • Select the Home Directory tab in the Default Web Site Properties dialog box

Do you see .asp listed there??
In the Default Web Site Properties dialog box, are your Execute Permissions set to "Scripts only" or "Scripts and Executable"?

Right click on the Virtual directory for the website (under the Default Website) and select Properties. Under the "Virtual Directory" tab, check that the Execute Permissions is set to either "Scripts only" or "Scripts and Executables"....

-Frinny
Oct 5 '09 #6
vikas251074
198 100+
I go to the following
  • Open the IIS snap-in tool.
  • Expand the Computer name.
  • Expand the Web Sites folder
  • Right click on Default Web Site
  • Select Properties
  • Select the Home Directory tab in the Default Web Site Properties dialog box

Then I click on 'Configuration' tab where I see many extension list like
.asa
.asp
.cdx
.cer
.idc
.shtm
.shtml
.stm

This is the list where should I need?

Every thing is OK , but still asp code is not running,

Should I reinstall OS ?? Or any other solution ...?
Oct 6 '09 #7
Frinavale
9,735 Expert Mod 8TB
No you don't need to re-install the OS.
You just need to configure IIS correctly to allow the website to execute ASP code.
Go through the properties for the default website and for the virtual directory that the website is in to make sure that it allows ASP scripts to be executed.
Oct 6 '09 #8
vikas251074
198 100+
OK sir I should try for it..........?@#$%^
Oct 6 '09 #9
Frinavale
9,735 Expert Mod 8TB
So that we can actually have a conversation about your set up you have to tell me what it looks like.

All IIS5 set ups have a Web Sites folder and a Default Web Site in it.

I gather that you have a virtual director in the Default Web Site that is going to host your ASP driven website.

What is the name of that folder?

You need to right click on that folder and make sure that the executing scripts is allowed. The Execute Permissions should at least be set to "Scripts Only"....otherwise your website won't execute ASP code.

Is this set?

-Frinny
Oct 6 '09 #10
Frinavale
9,735 Expert Mod 8TB
If this doesn't work let's try recreating the site.
  • Right click on the Default Web Site.
  • Hover over "New" and click "Virtual Directory..."
  • Click the Next button in the Virtual Directory Creation Wizard to dismiss the intro page
  • Provide the alias for the website and click the Next button
  • Browse to the directory that contains your asp website and click the Next button
  • Make sure that "Read" and "Run scripts (such as ASP)" are checked on the Access Permissions page of the Virtual Directory Creation Wizard and click the Next button to complete the wizard.
  • Try connecting to your ASP page by going to "http://localhost/websitealias/theAspPage.asp"


I tested this (using XP with IIS 5.0) by creating a test.asp file that contained the following:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.   <head>
  3.     <title>test asp</title>
  4.   </head>
  5.   <body>
  6.     Hi....<br />
  7.     <% Response.Write("Hello World from ASP!") %>
  8.   </body>
  9. </html>
It works fine...
Oct 6 '09 #11
vikas251074
198 100+
Yes !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!


It is working !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!


Great!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !



Thankyou very much !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

:-)
Oct 8 '09 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
10
by: Vineet | last post by:
If anybody has any insight into this problem I'm running into I would really appreciate if you could write to me... I'm running a simple C++ program on Solaris 8 that forks and execs a bunch of...
3
by: Serg | last post by:
I need to do some caching. If my code is running a part of asp.net then I would use caching, otherwise I'll just store my data in an object. And my question is now do I determine at run time if...
18
by: Joe Fallon | last post by:
I have some complex logic which is fairly simply to build up into a string. I needed a way to Eval this string and return a Boolean result. This code works fine to achieve that goal. My...
2
by: Matthias H. | last post by:
Hi guys, Our team has a very strange problem. I hope anybody can help. We have a class called webpage and all our aspx-pages bases on it. Then we have a SYS.IO.File Class which have a...
88
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
4
by: njuneardave | last post by:
Hi, I have an application that will run a method depending on whether or not there is an instance of MS Word currently open. How do I determine whether or not an executable from another program...
7
by: Wisgary | last post by:
I'm doing some benchmarking tests to compare Microsoft's CLR against Mono's CLR. I could use some suggestions for how to objectively compare the code. To my surprise the few tests I've run so far...
5
by: Zytan | last post by:
I cannot stand being unable to change the code while the debugger is running. Is there a way to do this? thanks, Zytan
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.