PDA

View Full Version : Problem with ASP



Unregistered
07-19-2002, 04:47 PM
this question might not be the question this board usually gets, but c if you can help me out.
I started learning ASP a couple of days ago and i'm trying to try out the things i'm learning, but my IE wouldn't open a *.ASP file. Whenever i try to open an asp file, it gives me the SAVE AS... window thing. I have a microsoft personal server setup and a access database for the server. I don't know how to fix this. The *.asp files from the internet works fine, but i can't open a asp file from my computer.

the question is not very clear, and i apologize for that. Any help would be appreciated.
thnkx

Commander
07-19-2002, 04:48 PM
I posted that question guys, my stupid internet got disconnected while i was writing that.

Fordy
07-19-2002, 04:51 PM
Asp files need to be run through a webserver for IE to view them....

Have a go at setting up IIS ( the webserver that comes with Win2K++)

A while back when I was fooling with it I came across a prog on Programmer's Heaven that allows you to type in a special URL to the APS file on your hard drive and run them straight into IE.....It doesnt need the webserver to be properly configured and allows you to test your scripts.......

Have a look over there

Fordy
07-19-2002, 04:59 PM
Err....not sure, but I think this is what I was talking about - here (http://www.programmersheaven.com/zone26/cat640/19193.htm)

VBprogrammer
07-19-2002, 05:03 PM
I think PWS (Personal Web Server) comes with other versions of windows and should do the same thing.

You should find something that will help you set it up here:
http://www.developerfusion.com/asp/

mithrandir
07-19-2002, 05:58 PM
Go to your folder where you ASP file is located. Go to properties, click the web sharing tab. Select "share this folder". Give the folder an alias (i.e. - a nickname). Click all of the options - read, execute, scripts.

Now go to your control panel. Open up the Network icon. Click on the Identification tab. You should see the name of your PC appear. Go to IE, in the address bar type in http://thenameofyourpc/foo (foo being the alias of your folder).

Hope this helps.

Commander
07-19-2002, 06:27 PM
thanks Stealth! it's working now.

and fordy, i was downloading the program because it sounded interesting, BEFORE i saw the 400 $ price tag!! I simply can't
afford a program leagaly!

VBprogrammer: I had the personal webserver, I just didn't know how to use it to get th scripts working!


thnkx for your help guys!

NOW I"M READY TO LEARN ASP!!!!!!!!!!

mithrandir
07-19-2002, 06:29 PM
No worries :). ASP is a b!tch sometimes, but its easy enough once you get the hang of it.

Fordy
07-19-2002, 06:31 PM
Originally posted by Commander
thanks Stealth! it's working now.

and fordy, i was downloading the program because it sounded interesting, BEFORE i saw the 400 $ price tag!! I simply can't
afford a program leagaly!


Yeah...I noticed that on download....but I got it up and working... cant remember if it was time limited, but I thought it might do the trick until you got the webserver up and running.....

Commander
07-19-2002, 07:51 PM
Originally posted by [stealth]
No worries :). ASP is a b!tch sometimes, but its easy enough once you get the hang of it. your right, asp IS a ..........! I couldn't get this code ( i copied it out of a sample i got with my book) to work.
<% '---------------- Content Rotator ---------------------
set randomNews = Server.CreateObject("MSWC.ContentRotator")
Response.Write randomNews.choosecontent("Content.txt")
'---------------- End Content Rotator -----------------%>

and content.txt looked something like this:

%% #3 // Sky Surfers
The sequel to "Sky Surfers" will be coming out in theatres
next month. A new team member will be added with special
powers, and a romance may be starting between Ilsa and Gripper.
%% #2 // Incredible Rocket
More movie news, Josh Collins best seller "Adam Ansley's
Incredible Rocket" will be made into a movie. The cast is
still being picked and filming starts sometime after the
New Year.
%% #3 // Salami
"The Salami That Ate Cleveland" is breaking box office records
everywhere. Tickets have been sold out for days for the new
sf thriller comedy. Be sure to see it if you love farce and
suspense.
%% #4 // Chase the Vision
Marrissa Denning's new book "Chase the Vision" will be released
this week. It's the latest in her Dream Chaser series.
%% #3 // Eternity and Beyond
Look for a surprise season ender on "Eternity and Beyond". Will
Russ finally tell Gena where he comes from?

have any idea of what's wrong?

mithrandir
07-20-2002, 03:00 AM
Can you attach the files (all not just the ASP file)?

Commander
07-20-2002, 07:00 AM
I will attach the files.
here is the index.asp and content.txt and some of the other files you might need to run the adrotator thing.
I think they are still a read-only file, you might have to change that.
hope i added all the files..

mithrandir
07-20-2002, 07:25 AM
I'll take a good look at it tommorow and get back to you :)

Commander
07-20-2002, 04:52 PM
this is the error :: Server.CreateObject Failed

I have no clue how to fix that... i have all the server files, atleast i YHINK i have all the server files

Hammer
07-20-2002, 05:58 PM
Originally posted by Commander
this is the error :: Server.CreateObject Failed

I have no clue how to fix that... i have all the server files, atleast i YHINK i have all the server files
Is the Content Rotator component installed correctly in your web server... (I think it's controt.dll) What's the full error message you get?

and are you using PWS? If so, I'm not sure these components are installed by default. You may be able to d/l them from somewhere if you really want to.

mithrandir
07-20-2002, 07:04 PM
Server object error 'ASP 0177 : 800401f3' - this error message is pretty general and is used in quite a few cases.

"It means that either the component has not been registered on the server or the ProgID passed to the Server.CreateObject method is misspelled" (http://www.aspemail.com/faq.html)

Our problem line is:

set randomNews = Server.CreateObject("MSWC.ContentRotator")

What is ContentRotator - is this a file? What does your book say? I'm assuming that this is why you're having the error, because ContentRotator cannot be found.

Commander
07-20-2002, 08:13 PM
as far as i remember, ContentRotator is a server object. it prints random texts from a file and prints them. since i'm using pws, i take into consideration that the object is not properly installed in my computer since the controt.dll file was nowhere to be found.