configuring website using windows server2003,IIS6.0 and MVC - model-view-controller

I have been going through http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx but so far I have not been able to configure my website. These are the steps I have done:
Downloaded and installed .net 4.0
I have built and published my website to inetpub/root on windows server2003
I have used IIS to do the cofiguration as per haacked. It seems that despite setting the asp.net 4.0(please see image) in the webservice extensions

did you install MVC on the server? So that it has the MVC DLLs
MVC install

You should change the path to aspnet_isapi.dll to the one from .NET 4:
C:\Windows\Microsoft.NET\Framework\v4.0.21006\aspnet_isapi.dll

Related

requirements to deploy the mvc 3 application to the server

I want to deploy the application in the Windows Server 2008 R2. But I am wondering if I need to install the .Net Framework 4.0 since the version available in the server is 2.0? Do I need also to install the MVC Framework?
you don't need to install MVC, only dlls can do the task
there are different ways to do it, see links
http://msdn.microsoft.com/en-us/library/dd410407(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/gg286946.aspx
http://weblogs.asp.net/scottgu/archive/2011/01/18/running-an-asp-net-mvc-3-app-on-a-web-server-that-doesn-t-have-asp-net-mvc-3-installed.aspx
You may use the ASP.NET MVC3 installer,
or simply copy the required dlls into bin directory of your web application
such as System.Web.Mvc.dll,
System.Web.Helpers.dll,
System.Web.Razor.dll,
System.Web.WebPages.dll,
System.Web.WebPages.Razor.dll,
System.Web.WebPages.Administration.dll,
System.Web.WebPages.Deployment.dll,
Microsoft.Web.Infrastructure.dll

how to configure iis7 on windows 7 home premium to run mvc 3

I have installed iis on my windows home premium but when requesting my mvc3 site I only get a blank page
I have created a new website running on port 8019
I have enabled all the checkboxes under iis but now all i get is:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
I have configured an application under the default site same error
How do I configure my windows 7 home premium to run mvc 3 apps?
Do I need to install anything?
if
I thought that pointing my website to my code directory would run
thanks
My bad
aspnet mvc 3 was not installed so framework 4.0 was not installed that is why I could not see the aspnet_regiis in my folder
You might need to execute the ASP.NET IIS Registration Tool (aspnet_regiis.exe) which configures IIS for running ASP.NET applications. This is normally necessary if you install IIS after the .NET Framework.

How to Deploy and Configure an MVC3 application using IIS6

I have created an application installer for my MVC3 project and have followed the BIN Deployment suggestions found online.
My site has been installed but I don't get any pages displayed.
This is how the VS2010 installer project looks
and this is how I have IIS setup
How do you get the Home Index page to be the default page as it is when I run the application through Visual studio?
IIS 6.0 doesn't support extensionless urls out of the box. This means that if you try to navigate to /Home/Index, IIS 6.0 doesn't know that this is an ASP.NET application and nothing happens. Extensionless urls are supported out of the box starting from IIS 7.0 when running the application in managed pipeline mode.
You will need to associate the unmanaged aspnet_isapi.dll filter with ASP.NET if you want to achieve that. Phil Haack covered how this topic in his blog post (ASP.NET 4.0) and this post (for CLR 2.0, which is not your case since you are using ASP.NET MVC 3).

Problem with deploying ASP.NET MVC3 app

This question is related to this: Problem with bin Deploying ASP.NET MVC 3 I erase the line with targetFramework="4.0" but now I have another problem. It says:
Could not load file or assembly 'EntityFramework' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I can´t get access to IIS server because it is from provider of my hosting. It´s weird because one of my website is running on this server (MVC3 too) and now I am trying add next and it is not working. Thanks for every help.
Have you made sure your provider has .NET 4.0 installed on their server?
It sounds like you are trying to run a .NET 4.0 application on a server that only has .NET 3.5 installed

Is there a web server which can embeded with an ASP.NET MVC3 application

Is there a web server I can embed with an ASP.NET MVC3 application?
The goal is to setup an installer where the user does not need to setup the web application on IIS, etc. The installer will install a web server configure it to listen to some port and host the files from there.
IIS Express could be used for that purpose, they mention in the FAQ that the MSI can be redistributed:
IIS Express FAQ
You can use HttpListener, Here's an example.
As others have mentioned - use IIS Express OR what you can do is install the version of IIS that would normally be on the system. Check out using WiX for installs and items such as this:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-td5990722.html
You may be able to find someone on the WiX mailing list that has done just this already.
Note - WiX was written by some Microsoft folks and was actually going to be the installer in VS 2010 but was changed unfortunately.

Resources