Odd Things of ASP.NET MVC Deployment on IIS 6
2011-01-29 17:32
399 查看
Recently, I am a bit interested in the deployment of ASP.NET MVC application on IIS6 because Phil Haack just posted an easier way to deploy ASP.NET MVC application on ASP.NET 4. So I decided to see how different version of ASP.NET MVC works on different version of ASP.NET.
First off, I created an ASP.NET MVC 2 project in Visual Studio 2010 and deploy it to IIS 6 on Windows Server 2003 (only .NET framework 3.5 installed). I set the application to run in ASP.NET 2.0 and no extra stuff. Because I just wanted to see what sort of error would occur. And as expected, some error was reported as following.
Then, I set the Copy Local attribute of System.Web.Mvc assembly to true as following and deploy again.
As a result, the application ran smoothly.
I had read tons of materials talked about the mess of deploying MVC application on IIS 6. And I did fight to tackle the deploying issues in my previous project. At least, if had used Extensionless Url in your application, you should have configured wildcard mapping in IIS. But in this case, I even didn’t have chance to do so.
What the heck was going on exactly? Did I discover a new continent?
First off, I created an ASP.NET MVC 2 project in Visual Studio 2010 and deploy it to IIS 6 on Windows Server 2003 (only .NET framework 3.5 installed). I set the application to run in ASP.NET 2.0 and no extra stuff. Because I just wanted to see what sort of error would occur. And as expected, some error was reported as following.
Then, I set the Copy Local attribute of System.Web.Mvc assembly to true as following and deploy again.
As a result, the application ran smoothly.
I had read tons of materials talked about the mess of deploying MVC application on IIS 6. And I did fight to tackle the deploying issues in my previous project. At least, if had used Extensionless Url in your application, you should have configured wildcard mapping in IIS. But in this case, I even didn’t have chance to do so.
What the heck was going on exactly? Did I discover a new continent?
相关文章推荐
- ASP.NET MVC on IIS 6 Walkthrough
- 如何让mvc运行在IIS6.0上? (ASP.NET MVC on IIS 6 Walkthrough)
- Latest preview of the ASP.Net MVC available on CodePlex
- Test your ASP.NET MVC or WebForms Application on IIS 7 in 30 seconds
- Using ASP.NET MVC with Different Versions of IIS
- ASP.NET MVC on IIS 6 Walkthrough
- asp.net mvc app deployment on II7.5
- 【asp.net】Using ASP.NET MVC on IIS 5
- Four Ways Of Handling Multiple Submit Buttons In ASP.NET MVC
- Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(六)View
- Front-line of Front-end, Rational Front-end Performance Tuning in ASP.NET MVC, III
- Asp.net MVC在IIS中的部署问题
- IIS部署asp.net mvc网站的方法
- 使用JavaScript展开/折叠TreeView中所有节点(Expand and Collapse All Nodes of asp.net Treeview on the client with javascript)
- 一起谈.NET技术,重构TekPub——从ASP.NET MVC框架迁移到Ruby on Rails
- ASP.NET Webform或者ASP.NET MVC站点部署到IIS下,默认情况下.json文件是不能被访问的,如果请求访问.json文件,则会出现找不到文件的404错误提示
- ASP.NET MVC another entity of the same type already has the same primary key value
- 如何把ASP.NET MVC项目部署到本地IIS上
- 在IIS上部署ASP.NET MVC项目
- IIS安全工具UrlScan介绍 ASP.NET 两种超强SQL 注入免费解决方案( 基于IIS,使用免费工具) 批改或隐藏IIS7.5的Server头信息 移除X-Powered-By,MVC,ASP.NET_SessionId 的 HTTP头或者cookie名称