ASP.NET MVC runtime installation requirement in "test" server - asp.net-mvc

I have an ASP.NET MVC application, and i have deployed it locally in my box. Now if i want to deploy it in a "Test" server (which is a tightly controlled environment), what do i need to install in the test server at the minimum - i.e. on top of the pre-installed ASP.NET 2.0 and .NET framework.
Do i need to isntall ASP.NET MVC runtime - obviously i won't be allowed to install any VS.NET or developer specific MVC stuff. It has to be the minimum runtime that is required to run the MVC ASP.NET app and nothing more.
Where do i get such an installer? Somewhere in MS web site?
Thanks.

Beyond having the latest version of the .NET framework (3.5 sp1), the only thing you may have to do is tweak your IIS settings depending on the version you are running.
You can read this great blog entry from Phil Haack on it as well talking about what needs to be in the BIN.
Here is a great writeup on what is required.

During the Beta, Scott Hanslemann wrote up the details on deploying an ASP.NET MVC application to a .NET 2.0 server:
Deploying ASP.NET MVC on ASP.NET 2.0
That will do the job if you can't get the server updated to .NET 3.5 SP1.

What you are probably looking for is a BIN deployment. A BIN deployment allows you to copy the required DLLs to the BIN directory on the target server, allowing them to run in a Medium Trust environment. No installation required.
For instructions on how to do this, see:
Bin Deploying ASP.NET MVC
http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

http://www.asp.net/mvc/download/
or, more directly: http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en

Related

Why do I need to switch off module inheritance to make my ASP.NET MVC site work on Windows Server 2008?

I am developing an ASP.NET MVC 5 site targeting .NET 4.5.1 and for some reason I am struggling to deploy it on a Windows Server 2008 Standard edition server.
To be clear the site runs fine on my Windows 7 development machine and my Windows Server 2012 test environment but when I deploy it to the Windows Server 2008 in question I get this error:
At this point I tried all the advice about reinstalling ASP.NET and enabling runAllManagedModulesForAllRequests that I found in threads like this one ASP.NET MVC on IIS 7.5 but nothing would make it work.
Eventually I found that I could fix the problem by switching off the "Invoke only requests to ASP.NET applications or managed handlers" option for all managed modules in the application. What this did in essence was to make the following changes to the web.config file:
So my question is two-fold. Firstly, why is this change necessary to get the site to work? Secondly, am I safe to change the web.config permanently given that it will be installed on other servers as well, not all of which will be Windows Server 2008?

Deploying ASP.NET Application on IIS7

I am developing an ASP.NET MVC 4.5 application in C#. It works flawlessly when I run it after compiling on my local IIS Express.
However, when I try to upload it to a remote server it does not seem to recognize anything in its root directory. It only displays the default welcome screen.
I have tried reconfiguring the web.config file to point to Global.asax file, without any success. I am able to load single images by modifying the URL according to the sites structure.
What is the initial "starting file" on ASP.NET MVC 4.5 and how do I configure IIS7 to load it?
Check you server configuration (if possible), first enable Web Server (IIS) role (is posible to add from Server Manager or PowerShell), then install .NET Framework, or use aspnet_regiis.exe from .net framework folder (C:\Windows\Microsoft.NET\Framework\v4.0.30319 and C:\Windows\Microsoft.NET\Framework64\v4.0.30319) if server has configured iis web role and .net framework installed but configured incorrectly. If unsure what role features to add use Web PI and add IIS Recommended Configuration (http://www.microsoft.com/web/downloads/platform.aspx)
Note: In Visual Studio 2012 project template for MVC 4 Web Application references as copy-local MVC Assemblies from NuGet and therefor you don't need to install MVC 4 on web server.
Command to register current .NET version (from folder wich you are executing this utility, execute for both, first for 32-bit and than for 64-bit on 64-bit OS) with IIS:
aspnet_regiis -i
PowerShell to add Web Server role:
PS> Import-Module ServerManager
PS> Add-WindowsFeature Web-Server
If you see the default IIS welcome screen then it's probably because of incorrect website bindings (IP:port:hostheader). Whenever IIS cannot locate a website with specific binding it falls request back to "Default Web Site" with *:80 binding which you probably observe.

Run ASP.NET MVC Application on Hosting

Is it necessary that we need to install asp.net mvc on hosting server to run application develop in asp.net mvc?
I had developed a application and i am uploading on ixwebhosting hosting.
my application is not working.
If the host supports ASP.NET 2.0 or later I think you should be able to just include the System.Web.MVC DLLs in your bin folder when you deploy to the server. The DLLs you need are:
System.Web.Mvc
System.Web.Routing
System.Web.Abstractions
See Phil Haack's article on bin-deploying with MVC.

Automatic Deployment of ASP.Net MVC using TFS2010 Beta2

i am building an Asp.NET MVC web site, and i want to make the deployment to IIS automatically as part of the build process, as indicated in the title, i am using vs2010 beta2 with tfs2010 beta2, and the dev server is running widows server 2008 service pack2, wich means IIS 7.
so can anyone provide with set-by-step way on how to do that, thanks
This doesn't cover anything specific for TFS, but it's a good start at setting up Web Deploy:
http://www.hanselman.com/blog/WebDeploymentMadeAwesomeIfYoureUsingXCopyYoureDoingItWrong.aspx

Error with server install of new MVC app and MVC Release Candidate 2

I have developed a small application using MVC RC2.
The application works fine in my development environment, but fails when I push it to my production environment with the following error:
Method not found:
'Void System.Web.Mvc.RouteCollectionExtensions.IgnoreRoute
(System.Web.Routing.RouteCollection, System.String)'.
App pool is running .NET 2.x
Recent install of .NET Framework 3.5 SP1
Recent install of MVC RC2
Has anyone run into this problem? It seems to be missing the necessary method in the set of assemblies available to the application.
Sounds like you are not referring to the same assemblies on both machines.
Check the web.config differences between system.web which is used by iis6 and localhost cassini and system.webServer which is used by IIS7.
Also try dropping MVC dlls in the bin directory of the site to see if it is not getting them from the GAC.
Did you ever have ASP.NET MVC V1 installed? I did and had a similar experience. I then downloaded the documentation located here and checked out the section "Upgrading an ASP.NET MVC 1.0 Project to ASP.NET MVC 2"
Which version of IIS you are using ?
In IIS 6.0 you have to add MVC in Application Extension mapping.
Please check this blog post.
http://haacked.com/archive/2010/12/22/asp-net-mvc-3-extensionless-urls-on-iis-6.aspx

Resources