MVC User.Identity.Name failure

So I wanted to make a quick post regarding MVC with new applications (Internet or empty) that got me a few times now, so I can only imagine how many others this has nailed.

Apparently there is a "Known issue" where some MVC applications are not able to get the User.Identity populated with just authentication ="Windows".The known issue was found under Known MVC issues

In some cases you are also required to add the following line to the &ltappSettings&gt section of the web.config:

<add key="autoFormsAuthentication" value="false" />

Hope this helps some folks in their MVC journey!

Reference:
Dan Lewis’ Development and Technology Blog

Advertisements

About Gregg Coleman

I am Senior-level Software Engineer working primarily these days with .NET. I have a good working knowledge of ASP.NET MVC, Web Forms, WCF web services and Windows Services. I spend much of my time in the Web Services (SOAP and REST) world in my current job designing and implementing various SOA architectures. I have been in the software engineering industry for about 6 years now and will not now nor ever consider myself an "expert" in programming because there is always so much to learn. My favorite thing about designing software is there are always new emerging technologies and something to learn every day! My current job has me spending much of my job on the bleeding edge of technologies and changing gears all the time, so I'm never bored and always challenged. On my spare time I enjoy weight training, reading and venturing to new places near by. Of course programing and learning new technologies are another hobby of mine.
This entry was posted in ASP.NET, C#, MVC, Programming and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s