简体   繁体   中英

Install MVC on 2.0.NET Server with IIS6 without Admin Rights

On my local machine using IIS 5 (winxp) and visual Web Developer, I've built a beautiful and well composed website using MVC. Now to deploy to the testing server. I find out that it does not have MVC installed -

Error:-


Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 39: add assembly="System.Web.Abstractions,Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/
Line 40: add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Line 41:* *add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Source File: web.config Line: 41


Because of companies unfamiliarity with IT and programming they are reluctant to allow admin rights or install anything that they do not get suggested by their contracted guru, who just isn't an mvc fan. So I prefer a solution that is similiar to relocating some DLLs or importing another project.

HOW CAN I USE MVC on IIS6 2.0.net???

I've read install-asp-net-mvc-without-administrator-rights ~which applies to IIS 7 asp-net-mvc-on-iis6 ~ does not address installation or running the appliaction I am aware of the routing issues once installed. I will use wildcard routing.

What you are looking for is Bin Deploying ASP.NET MVC .

But you still will need to have .NET 3.5 installed on that server.

What Jason White says is right ... you have to have .NET 3.5 to use ASP.NET MVC. However, if you want to get into crazy, unsupported, hack-ish territory, it is possible to run ASP.NET MVC against .NET framework 2.0. I SERIOUSLY don't recommend it, but if you want to look into it, Scott Hanselman talks about it here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM