Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Building small brochure-ware MVC website with no authentication. It's disabled in Visual Studio. Published with Visual Studio 2015 to my workstation IIS successfully the first time. Now when I attempt to publish again I get "The type or namespace name 'LoginViewModel' could not be found..." and a bunch of additional errors seemingly connected to login authentication.

How do I get around this?
Posted
Comments
PIEBALDconsult 6-Nov-15 18:48pm    
Huh. That sucks.
Krunal Rohit 6-Nov-15 23:21pm    
Whenever you publish, always rebuild the project.

-KR

1 solution

After some digging I discovered that Visual Studio had inserted a series of "Account" views even though I specified no authentication when I initiated the project. These would build OK in test mode, but would fail when publishing to my test server. Removing the Account views fixed the problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900