Solved

New .NET application won't run in IIS

Posted on 2009-06-30
4
311 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SMTP Relay Issue 12 100
VPN Access to company server hostname dns resolve issue. 8 65
Link SQL table to Webpage 9 51
Setup IIS website to use ADFS authentication 25 39
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
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.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

18 Experts available now in Live!

Get 1:1 Help Now