Deploying .NET 2.0 Web App from WinXP Pro to Server 2003: 404!

G

Guest

Hi there:

I'm a veteran to ASP.NET 1.1, but new to 2.0, and I'm using VS 2005. When I
run the app on my local machine, using the built-in Web server, I have no
problems, but deploying the site to a 2003 Server machine (which is also
running several 1.1 sites) throws a persistent 404.

I've looked around and found several references to the app_offline file, for
which I've searched exhaustively and found nothing. I'm essentially running
a blank "Hello World" type site here, nothing fancy, just for purposes of
messing around with 2.0, and I cannot get anything to work. And Wrox's
Professional ASP.NET has been pretty much no help whatsoever.

The site's set up as its own site in IIS (not a virtual underneath something
else), it's using a new App Pool I set up just to keep the 2.0 stuff
separated from everything else, and in the ASP.NET tab, I've got 2.0
selected. What could be happening here? Is there some additional
requirement (i.e., having SQL 2005 Express installed -- this machine already
has SQL Server 2000) that I've missed somewhere in the documentation?

Any help would be greatly appreciated.

Thanks,
Chris
 
J

Juan T. Llibre

Have you explicitly enabled ASP.NET 2.0 pages to be served ?

W2K3 needs specific permissions be enabled, in order to allow each ASP.NET version to run.

Open the IIS Manager, scroll on the left to "Web Service Extensions",
select that, go to the right pane and select the ASP.NET version you
want to enable and click the "Allow" button.

Repeat the sequence for all versions of ASP.NET you want to enable.
 
G

Guest

Hi Juan:

Thanks much. In the Web Service Extensions node, I see ASP and ASP 1.1, but
not ASP 2.0. When I manually add the ASP.NET 2.0 DLL to the list and allow
it, then try running the page, I get a different error:

The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write
access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files'.

If I try adding NETWORK SERVICE as a user on that folder, Windows complains
and suggests I don't do so. I don't mind adding these things manually, but
the absence of ASP.NET 2.0 in the Web Service Extensions node suggests
something might not have been installed properly.

What should I do?

Thanks much!
Chris
 
J

Juan T. Llibre

re:
If I try adding NETWORK SERVICE as a user on that folder,
Windows complains and suggests I don't do so.

You can safely ignore that...but you'll have to WRITE in the account name.
You CANNOT *select* the account from the account list...or Windows complains.

Alternately, run the following command from the .Net Framework 2.0 folder
( Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 ) :

aspnet_regiis -ga machinename\network service

That will give all the necessary permissions to all the directories ASP.NET needs.

See :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000009.asp
for background info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top