Reputation: 265
My "Hello World" c#.Net application works fine on my local Windows 7. Moving to our server I get 401.2 error.
Here what I have done (following advices in some forums):
Please note that:
What am I missing? Thanks, Asaf
Upvotes: 1
Views: 4178
Reputation: 630
You don't need to create a new windows user. I know you've said what steps you've done, but I'm going to highlight what I do each time I add a new site.
ApplicationPoolIdentity
.Anonymous Authentication
to Enabled
. Click
Edit on the right and set the Authentication Credentials
to
Application pool identity
.Basic Settings
on the right. Click
the Connect As..
button and make sure Application User
is
selected.IIS
AppPool\hello.com
.I think your issue is that you haven't given the folder permissions for the Application Pool User. I think you've incorrectly given them to an unneccessary Windows account. HTH
Upvotes: 2
Reputation: 488
Do you have the correct version of .NET installed on Server? Also you need to register ASP.NET in IIS - c:\windows\Microsoft.NET\framework\v2.0.50727 (or v4.0....) aspnet_regiis.exe -i
and after restart IIS with iisreset in command line
Upvotes: 0