Robyn Hutton Cerda
Robyn is a senior lead developer at Catapult Systems and blogs about .NET development (MVC, AJAX, JSON, WCF), XRM, SQL Server (Transact SQL), BI Data Warehousing (SSIS, SSAS, ETL), SharePoint, User Experience, and Responsive Design.

MVC3 with Windows Authentication Redirected to Account/Login   

Tags: MVC, Razor
Technorati Tags: ,

I was deploying my MVC3 application into a production that did not have the proper DLLs in the GAC.  So I used the handy little tool in Visual Studio that allows you to include the DLLs in the BIN folder.  Simply right-click on the project in Visual Studio and select Add Deployable Dependencies.

image

But when I deployed the project into production, it kept attempting to redirect me to Account/Login, which does not exist.  And I have not routed those values anywhere.

It turns out that the WebMatrix.Data.dll was copied into my BIN directory and into production.  This DLL is the culprit.  I removed all instances of this DLL from my project, and the issue went away.

image

 
Posted by  Robyn Hutton  on  7/20/2012
1  Comment  |  Trackback Url  | 0  Links to this post | Bookmark this post with:        
 

Links to this post


Comments


David Lee  commented on  Monday, July 15, 2013  10:50 AM 
Thank you so much! I found this post mentioned here: http://stackoverflow.com/questions/4078525/problem-exclusively-using-windows-authentication-in-asp-net-mvc-3-beta

Name *:
URL:
Email:
Comment:


CAPTCHA Image Validation