Error message 401.2.: Unauthorized: Logon failed due to server configuration. When application deployed

前端 未结 15 1792
南方客
南方客 2020-12-30 01:20

I have an asp.net 4.0 application that works fine running under cassini but when i deploy to IIS i get the above error. It is running under the Default App pool which a numb

15条回答
  •  天涯浪人
    2020-12-30 01:53

    I had the same problem just now. None of the fixes I found worked, so I'll just post here in case it helps someone.

    For me the issue was solved this way:

    • Open IIS manager
    • Select "Application Pools"
    • Right click on the application pool you are using and select "Advanced settings"
    • Set "Enable 32-Bit Applications" to "True"
    • Click "OK" to close the dialog box
    • Right click on the application pool again and select "Recycle"

    Hope that will help someone else out! This was driving me crazy.

提交回复
热议问题