Solved

New .NET application won't run in IIS

Posted on 2009-06-30
4
310 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
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
madhubk earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Sorry Tray896. I awarded the points as you posted but FYI you were dead on the nail.

Thanks anyway.

Lee
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now