ASP.net MVC configuration issue without mod_mono - asp.net-mvc-2

We're developping an MVC .Net website supposed to run on linux.
It worked fine with mod_mono but we're forbidden to actually use mod_mono on the production server for performance matters. Also, we use mono-fastcgi-server2 and mod_fcgid.
So when disabling mod_mono, the home page still works fine but any request like /controller/action ends up with a 404 error.
I wonder if we can even run our MVC .Net website without the mod_mono ?
This is my first question on this website and I am not very familiar with apache and the modules. Thanks for any help.

Probably not.
mod-mono is the Mono project's ASP.NET module for Apache. Without it, there's nothing in Apache to interpret any ASP.NET content. So, by extension, if you're not allowed to run mod-mono on your Apache server then you're not allowed to run ASP.NET on your Apache server.

Related

Deploy MVC 4 application 4.5 Framework 1and1 hosting

I'm trying to deploy an mvc 4 project in vs2012 via FTP on 1and1.com
This is what I'm getting.
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Are there settings on 1and1 I need to set somewhere because it's an MVC proj or changes in webconfig?
#dright, Are you still encountering the problem? It appears 1and1.com has updated their hosting package to support 4/4.5 Framework with their Basic Windows hosting plans (https://www.1and1.com/windows-hosting?linkId=hd.subnav.windowshosting). I purchased a plan as a sandbox for deploying little apps that I develop.
I have successfully deployed a Asp.Net application using the WebMatrix IDE. But I have struggled using VS2013 template/default applications' Web.Config. I was curious if you have had any luck.
Thanks!
1and1 windows package doesn't support MVC. You would need to update to their server package. ~59/month

Deploying Hybrid ASP.NET webform and MVC project on iis7 - MVC Routing does not work

Hi Stackoverflow,
Im trying to deploy a hybrid ASP.Net Webform/mvc-project onto iis7 but the mvc routing does not work.
This is what i have done so far:
Added all required mvc-related dlls.(i have double checked bin-catalog to make sure that everythings there on the deployed installation)
Added MVC wildcard by adding the IsapiModule handler to iis handler mappings.
The Server has .Net-Framework 3.5 SP1 installed.
The web site Managed pipeline mode set to classic
Our project requires the app pool to be running in none-integrated pipeline, but im not sure what MVC requires of the app pool, may i run ASP.NET MVC(2) in a none-integrated managed pipeline?
The web application loads and i want to use the MVC-routing to load javascript but the mvc routing does not responde to the request and instead Webforms gives us a 404-response,
this only happens when the project has been deployed onto the server.
Does anyone has a idea of why the ASP.Net MVC routing does not fire?
Thanks and Best regards,
Mikael
I found the error, the installer did not update production web.config,
so there was some missing mvc-required references,
i used this article to find out what was missing, it describes how to setup a hybrid WebForm/Mvc project in a simple way.
And now im able to run a hybrid webform/mvc-project on iis7 classic without any problem.

Setup MVC2 Web App with IIS7

I've seen SO MANY articles that explain how to do this with IIS6, and some that offer SOME guides for IIS 7 but they are ask you to do so much setup and I've tried them all and ALWAYS get errors.
Is there a guide out there that some of you have used that just...works?
All I need is something step by step to setup my local MVC2 app using my local IIS7 server so I can test locally without using VS2010's dev server all the time (gets so annoying).
Assuming you have IIS installed locally you could go to the properties of the project and:
You may also find the following blog post useful.

IIS 5.1 shows directory listing instead of running web application

I have a mvc web application, previously it was running, I don't know what I did, but suddenly web sites in IIS stopped working and I got some kind of hexadecimal error, the problem was port 80 was being used by some other application, I changed the IIS to use port 90 for web sites, but then my mvc application has stopped working with IIS, and IIS now shows directory listing of my mvc web application
what to do?
You may check the following guide about deploying ASP.NET MVC applications on IIS. Also if you are using extensionless URLs make sure you have a wildcard mapping for the aspnet_isapi.dll.

ASP.NET MVC 2 + VS2k10 Empty Start Page

I have a problem where, on some developer machines, everything resolves correctly and the start page is as expected (/Home/Index), but on other developer machines, it will just render a directory listing of the website root. When creating a virtual directory, it works, but we would prefer to use the development server initially if possible.
It's worth mentioning the OS we are working with is XP.
Any help would be greatly appreciated!
Are you talking about running your website through IIS or through Visual Studio's built in web server (Cassini)?
It sounds like you are using IIS and it is not configured for running MVC properly but without further information it's hard to say.
I would compare the IIS configuration between a working machine and one that doesn't