Robyn Hutton Cerda
Robyn is a senior lead developer at Catapult Systems and blogs about .NET development, SQL Server, SharePoint, MVC, AJAX, JSON, WCF, 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
0  Comments  |  Trackback Url  | 0  Links to this post | Bookmark this post with:        
 

Links to this post


Comments

Name *:
URL:
Email:
Comment:


CAPTCHA Image Validation