Deploying ASP.NET MVC 2 Preview 2 with Areas

We have moved from MVC 2 Preview 1 to MVC 2 Preview 2 to use multi-project areas. Everything works fine on the local dev machine (Visual Studio 2008 SP1 / IIS 7), however it does not work after publishing to the server (Windows Server 2003 / IIS 6).

Deployment is performed using the Build-> Publish option in the VS2008 menu. I also added wildcard display in IIS.

The IIS server functioned properly in the past when it was an MVC 2 Preview 1 project.

It seems that IIS needs to be configured differently to handle MVC routing with multiple zones?

Another observation: the directories views \ areas \ *. * in the main area are not copied to the IIS server during deployment.

Has anyone successfully deployed and configured a multi-project scope solution for IIS 6?

UPDATE: We needed to add an additional line in Web.config for WebResource.axd

<httpHandlers>
                <remove verb="*" path="*.asmx" />
                <add path="WebResource.axd" verb="GET" validate="True" />
</httpHandlers>

You can read here: http://forums.asp.net/t/1483430.aspx

+3
source share
1 answer

The Visual Studio deployment function does not know about hidden files copied using the Areas build task because they are not added to the VS project of the main area.

ASP.NET MVC 2 MVC Futures. , , .

ASP.NET MVC 2 Beta , "/", "/" .. VS, " ".

+3

Source: https://habr.com/ru/post/1720595/


All Articles