Solved

New .NET application won't run in IIS

Posted on 2009-06-30
4
315 Views
Last Modified: 2012-05-07
Hi,

I have a C# web application. It runs perfectly on the dev system. I published it and copied it to the live server. I manually created a new virtual directory. I set the .NET version to be .NET 2.0. I pointed it to the location of my web app and it gives me a 404 error despite being able to see the files in IIS. If I right mouse click and do Browse I get a 404. I manually created an html file in there called index.html and in there I did a redirect to default.aspx which is in the same folder. I set index.html to be the first file name to look for when no file name is given in the request. The html file loads and after 5 seconds redirects but gives me a 404 error. It is as if IIS can't see the .NET application in the folder. Any ideas welcome. Please ask for more info if needed.

Cheers,

Lee
0
Comment
Question by:Lee Savidge
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
madhubk earned 500 total points
ID: 24747617
Greetings,

Are you able to access the IIS Help pages? Normally these start with a IISStart.aspx or so... Not sure of the exact file name.

Under the applications that you have, are you permitting ASP to be executed? similarly is there a ASP.Net execute permission?

Post your findings...

~m at your service
0
 
LVL 15

Expert Comment

by:Tray896
ID: 24747780
You'll get a 404 if the ASP.NET web extension isn't allowed.  To fix this, open up IIS and click on the Web Service Extensions in the left panel.  Verify that ASP.NET is set to Allowed.  Once that is allowed you should be able to browse .net content with no issues.
0
 
LVL 25

Author Closing Comment

by:Lee Savidge
ID: 31598311
LOL. I don't know how many times I've deployed .NET applications... I forgot to change ASP.NET from Prohibited to Allowed in the IIS Web Service Extensions.

I amaze myself sometimes... Thanks for pointing it out :)

Lee
0
 
LVL 25

Author Comment

by:Lee Savidge
ID: 24747797
Sorry Tray896. I awarded the points as you posted but FYI you were dead on the nail.

Thanks anyway.

Lee
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question