we have a quite complicated solution that also has one UI element tbuild no ASP.NET MVC 3. This started getting problematic because upon refactorings views are throwing errors on run time when not matching like due to a model change.
There is one item one can set in the project - MvcBuildViews. It triggers a compile of all views.and thus dhows all issseues at compile time. We did manage go get the following spree of bad errors sorted out (funny hiow many views we had without even a model left).
Sadly, TeamCity does not compile at all now ;)
This proejct compiles perfectly within visual studio.
It does not on build agents. The error message is:
D:\BuildAgent.2\work\XXX 2010 Trunk\vs\XXX\XXX.ControlCenter.UI\obj\release\csautoparameterize\original\web.config(44, 0): error ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Anyone an idea how to get this compile on the build servers?