Re: Unable to Deploy ASP.Net 2.0 App to Local IIS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Juan,

Thanks for the response. I've since gotten it working and it all seemed to
be because of the OS. I was using a machine that came pre-built with Media
Center and, because VS2005 installed fine and ASP.Net seemed to work (and
the docs said so, too) I assumed that it did.

I have since completely rebuilt the entire machine with XP Pro...and ASP.Net
worked correctly right out of the gate. Even got debugging working, had not
worked previously for ASP.Net projects....

Oh well.....
thanks all...

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:Otag0G$lGHA.3732@xxxxxxxxxxxxxxxxxxxxxxx
re:
- Set to anonymous access
- Given permission to IUSR_ANONYMOUS

Unless you've configured impersonation for the IUSR_ANONYMOUS account,
you are giving permissions to the wrong account.

Under XP, ASP.NET runs as the "MachineName\ASPNET" account.
Under W2K3, ASP.NET runs as the "MachineName\Network Service" account.

Give access permissions to the correct account.

Also, under W2K3, you need to explicitly enable ASP.NET 2.0.

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.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Tim Brooks" <usna91@xxxxxxx> wrote in message
news:OC9maB%23lGHA.748@xxxxxxxxxxxxxxxxxxxxxxx
All,
Not sure where else to go. I have: VS2005, XP SP2 Media Center, IIS5.1

Problem:
Apps developed (even simple "Hello WOrld") apps simply won't deploy
properly to either my local IIS instance or to a 2nd server W2003K
server.

When I publish, create them as IIS apps, or copy, even after running
both/either the ASP2.) security tab or the web admin (asp based) manager
they will not enable properly.

I have:
- Set to anonymous access
- Given permission to IUSR_ANONYMOUS
- Turned off/uninstalled firewall, and Windows Defender
- Read the even log
- Uninstalled 1.1, and 2.0, repareid and re-installed 2.0
- Re reged ASP with aspnet_regiis
- Unistalled and re-installed IIS services
- etc...

App run fine with the built in Cassini server but won't deploy, won't
run, etc...any other way. I always get a 403 (Access forbidden or 500
unknown) error.

I have also tried hand-copying and setting permissions for anonymous
manually....also does not work....
Not sure where else to turn....
I am starting to think that ASP in VS2005 is absolute rubbish....

cheers,
t







.



Relevant Pages

  • Re: Unable to Deploy ASP.Net 2.0 App to Local IIS
    ... Unless you've configured impersonation for the IUSR_ANONYMOUS account, ... Give access permissions to the correct account. ... Open the IIS Manager, scroll on the left to "Web Service Extensions", ... Apps developed apps simply won't deploy ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Digest Authentication
    ... It sounds like IIS is having problems impersonating the IUSR account, ... In IIS, you do not need Script Source or Write permissions unless you ... But the Digest authentication for windows domain is ...
    (microsoft.public.inetserver.iis)
  • Re: VS.NET 2005 and the "allowDefinition=MachineToApplication" error
    ... Your description of impersonation is great. ... If you want to use the default configured account, eliminate that entry, or configure it as: ... The easiest way to assign correct permissions to all required directories is to run: ... I re-started IIS and tried to access my ASPX page again -- same ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... TestUser (normal user account with same credentials on all machines). ... I logged into the IIS server as vdirUser and simply typed ... open and I had read and write permissions to the share. ... I logged off and back into the IIS server as the administrator and deleted ...
    (microsoft.public.inetserver.iis)
  • RE: SBS 2003/member Web Server and ISUR access
    ... NTFS permissions for the directories and files ... the IIS content directories have the following permissions. ... Server Extensions, ASPNET, SQL Server and other software is installed. ... The IUSR_MachineName account has the following permissions. ...
    (microsoft.public.windows.server.sbs)