Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All I get is a page with the source... 1

Status
Not open for further replies.

benlinkknilneb

Programmer
May 16, 2002
590
US
Hi all,

I'm trying to learn ASP.NET. I've installed IIS and all the tools that I was told to... I downloaded the source of some sample apps (one through the MSDN help, the other off a random website) and any time I try to load an ASP page in IE, I get a white page with all the source of the document instead of the output of the ASP code. What did I miss?

Ben

There's no place like 127.0.0.1.
 
how did you run the file???

Known is handfull, Unknown is worldfull
 
Make sure the aspx extensions are listed in your IIS extension listing. I believe otherwise, it treats it like a text file and just spits out the code as text.

D'Arcy
 
Also, if you haven't installed the framework correctly, you could try running "aspnet_regiis -i" from the framework directory.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I selected it, and chose "Open With..." then picked IE. I have solved the problem, however, at least partially. When I actually moved it into my Inetpub/ folder, it ran fine. How do I set other (test) directories to work like that?

Ben
The ships hung in the sky in much the same way that bricks don't. - Douglas Adams
 
I selected it, and chose "Open With..." then picked IE.
That is your problem then. When you do this, you are not executing the file, you are merely viewing it's contents. To execute the file you have to request it through your web browser e.g.


If you want to store your aspx pages somewhere else (other than the directory) you can simply set up a virtual directory in IIS.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top