I've just today learned of asp.net mvc, and I'm wondering what is needed from the server-side to host this.
I suppose IIS 6 (and newer) and the开发者_StackOverflow .NET 3.5, is there anything else you need?
From MSDN: How to: Deploy an ASP.NET MVC Application
Basically you need:
- .NET 3.5
- System.Web.Mvc (the ASP.NET MVC assembly)
- System.Web.Routing (a .NET Framework assembly that is required by ASP.NET MVC)
- System.Web.Abstractions (a .NET Framework assembly that is required by ASP.NET MVC)
Routing and Abstractions dlls are only needed if you don't have SP1.
As long as your IIS Server is serving .NET 3.5 SP1 projects fine, you shouldn't have to do anything special for MVC because it is essentially just a library.
Also, if you
.NET 3.5 + IIS 5.1 or greater.
Nope, thats it ;-) I would stick to IIS7 if at all possible though
IIS 5.1 is fine also.
No other needs.
Depending on your hosting environment you may find that MVC is not already installed on the server, fortunately the framework is bin-deployable.
Simply placing System.Web.Mvc.dll, System.Web.Routing.dll, and System.Web.Abstractions.dll in your application's bin directory should solve most deployment issues.
精彩评论