Deploy ASP.NET MVC 2 in IIS 7.5 to target .NET 3.5

I created the ASP.NET MVC 2 application in Visual Studio 2008. I installed the release build to go through the ASP.NET compiler to precompile all the views, minimize Javascript and CSS, clear web.config, etc. Since the production deployment is going to the IIS6 server, I set up my pseudo-production deployment on my Windows 7 machine to run the application pool in classic mode, oriented to the runtime 2.0. I installed the handler without the extension in the web.config file, which is necessary, and everything worked fine.

The problem arose when I updated the solution for Visual Studio 2010. I am still configured for the 3.5 framework , but now I have been using MSBuild 4.0 since it uses Visual Studio 2010. Everything compiles correctly because it works fine under Cassini. but when I deploy it in one place (the same application pool, identifier, etc.), it now behaves differently. I still have a handler without an extension in web.config, but now when I go to the root of the application, it looks through the directories and all the routes that it previously handled now return, since 404 errors are handled by the StaticFile handler in IIS, I'm in perplexed for what has changed and causes a break.

I looked through this question , but I have already verified that all pre-set components are installed.

+5
source share
4 answers

Did you try to debug your routes using the Phil Haack route debugger on the server?

Edit:
In IIS 7.5, you donโ€™t need any special handler without extension, it is processed automatically, you do not need to change anything. As far as I know, this is only necessary for IIS 6. Could this be a problem? what if you remove this special handler? perhaps this is what stops him to start moving along the route.

Edit:
, , , IIS7, AppDomain - . , Asp.net , asp.net , , (aspx ashx axd aspnet_isapi).
UrlRoutingModule , , HttpModule, . ( , , MVC. Web.Config , node

<modules runAllManagedModulesForAllRequests ="true">
...
<add name="UrlRoutingModule" type=.../>
</modules>

, MVC ? , System.Web.Mvc, System.Web.Routing System.Web.Abstraction Copy Local, true, , ...

, , ... , .

EDIT: Oww... ... , . IIS7.5, . .

. IIS6. , MSBuild 4, ,

, Default.aspx . 404.

, URL-, , IIS6, , ... , ... , :)

+3

.

, 32 32 Asp, .

, :

CD c:\windows\microsoft.net\framework64\v4.0.30319
aspnet_regiis -i
+2

,

  • - VS2008 VS2010 ? , -.
  • web.config targetFramework,
  • , - x86 x64?

, , , web.config. /, ? , "" "" ( 1, 2).

0

, . AppPool:

alt text

HTTP Redirection Windows.

-3

All Articles