Reputation: 492
I have an MVC 4 app which run fine locally, however, after deploying to IIS7.5 on Windows Server 2008 R2 the code can't retrieve the current user from AD. That returns null and i get a NullReferenceException.
I have changed from ApplicationPoolIdentity to NetworkService severally, enabled Windows Authentication in the project settings, gave permission in folder settings to IIS_IUSRS but none worked for me.
This is expected to be deployed as an intranet solution so it should leave on one of the intranet servers.
Any help would be appreciated.
Upvotes: 0
Views: 1747
Reputation: 18556
Upvotes: 1