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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not run .aspx file after change to Windows XP

Status
Not open for further replies.

firehorse24

Programmer
Sep 22, 2006
28
US
Hi Guys,

I've just changed my pc to Windows XP (Brand new pc). I Intalled IIS. The ASP files works fine. But Cannot run .aspx file. Even very sample file (welcome.aspx):
Code:
<html>
<body bgcolor="yellow">
<center>
<h2>Hello W3Schools!</h2>
<p><% Response.Write(now()) %></p>
</center>
</body>
</html>

I got the error:
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834" is denied.

I checked that path, ...\\Temporary ASP.NET Files\root\2135a508\8d69a834 not even exist in my pc. Do I need to install anything else? Windows XP has the .NET framework 1.1 installed already, right?


Please help!

Thank you very much
 
what version of IIS?
With IIS 6 most features are disabled by default (finally) so you need to enable IIS to intepret the file types.



Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Hi jmeckly,

Thanks for your reply. I had IIS V5.1. The way I installed IIS is: I went to control panel - Add or Remove Programs - Add/Remove Windows Components, then check the box next to IIS to install it. But why I have the Msft framework .net 1.1 and Hotfix already in my pc already before I installed IIS? Should I delete framework first then install IIS then install framework again?

Please kindly advise.

Thanks

 
i think the tool is regiis.exe or aspnet_regiis.exe. there are a few flags to set. here are some references

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Hi jmeckley,

I think I found the problem. Our administrator installed .net framework 1.1 without install IIS when he installed OP. I un-installed .net framework 1.1 then IIS and re-installed them by right sequence. It's working now.

Thanks

 
Cool man. If you ever get that access denied error then you can just set the appropriate permissions on that folder. I know that in your case it didn't exist, so you probably did the right thing by reinstalling IIS. I've seen this happen many times.

Also a few things to keep in mind...
- If you run aspnet_regiis then it will set all of the websites to whichever version of the framework you ran it from (whatever folder you are in at the time - 1.1. or 2.0).
- XP comes with IIS 5.1 only (however you can get the IIS 6.0 manager for it - I recommend it). Server 2003 comes with IIS 6.0. Win2000 comes with IIS 5.0. I did have XP with IIS 5.0 one time, but it was a mistake from a ghosted image and cause all kinds of problems.

Glad you got it fixed.

J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top