IIS 5.1 shows directory listing instead of running web application - asp.net-mvc-2

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.

Related

Hosting Asp .Net MVC3 Web Application in IIS 7.5

We have developed an application using Asp .Net MVC3 for our Organization.we want to host that Application to Access the Same using a Link from other systems.I did publish the web Application by right clicking on its properties and used web deploy option.Now i can see that Application in IIS under Default website and when i give browse i can view the Application running Properly.but when i try to access the same from another computer using the same link with my system's Ip Address i couldn't Access the Same.It would be great if we get any assistence on this issue.we r struggling on this for past 2 days

ASP.net MVC configuration issue without mod_mono

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.

Deploy the asp.net MVC 2 web application to the IIS 7.5 getting issues

I have developed the asp.net mvc web application. whereas my macine is configured with IIS 7.5. I want to deploy my web application with source code to the IIS so that i can attache the process and debug it run time. I choose this way because few functionality , like file copy and file create not performing after simple publish.
I tried by ,
Create the web application in IIS 7.5 manager. installed ASP.NET utility. As i browsed , I got asked by to enable directory browsing.
Which i enabled. where as in IE I found file structure which definitely did not want. I expected direct my LogOn page which is configured in globle.asax after deployment.
What else i need to check. or is any step i have missing?
I am using Visul web developer 2010 express edition to develop the application.
Please guide me.

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.

Why is my ASP.net MVC site not serving pages on Windows Server 2008?

Why is my ASP.net MVC site not serving pages on Windows Server 2008? The website is running under an application pool that has the .net framework 4.0 in integrated mode. It serves .htm files with no problem. However, when I try to view any of the MVC pages I get a page saying "Internet Explorer cannot display the webpage." How can I troubleshoot this?
Server 2008 with IIS 7 you need to look at the website in question and go to the HandlerMappings settings. You need to make sure that the .Net mappings are set to enabled.
I found out what the problem was. This was a pain to track down. The server hosts 2 websites. The HTTPS bindings were not associated with the IP address for the website. Instead, the IP binding was set to "All unassigned".
The solution was to associate the HTTPS binding with the website's IP address.