ASP.NET IIS WIndows 2008 Configuration Problem

Posted on 2009-05-23
Medium Priority
Last Modified: 2012-05-07
I have just moved to a dedicated server and cannot get any of my applications to work.
I was initially getting the error;  

"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level",

because of the line "<authentication mode="Forms">" in web.config.

I then went into IIS and used the "Convert to Application" command on the folder.

I now get a Error 500 Internal Server Error.

Looking through the Application log I see the following error:
Log Name:      Application
Source:        Microsoft-Windows-IIS-W3SVC-WP
Date:          23/05/2009 18:00:34
Event ID:      2268
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      MYSERVER
Could not load all ISAPI filters for site 'MYDOMAIN.COM'.  Therefore site startup aborted.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{xxxx-xxx-xxxx-xxxx-xxxxxxxxxxxxx}" EventSourceName="W3SVC-WP" />
    <EventID Qualifiers="49152">2268</EventID>
    <TimeCreated SystemTime="2009-05-23T17:38:34.000Z" />
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Security />
    <Data Name="SiteName">MYDOMAIN.COM</Data>

Is this a permissions issue or configuration, I'm lost? I'll provide further information if necessary.
Thanks in advance.
Question by:kirkheaton25

Accepted Solution

TimSledge earned 1500 total points
ID: 24459219
Is your application written in ASP.Net 1, 2, or 3.5.  

I believe Windows Server 2008 automatically sets up with 3.5.  3.5 should probably run ASP.Net 2 okay, but ASP.Net version matching is one thing to check.

Suggestion:  Try setting up a new website using the IIS control panel.  Point it to one of your domain names that is already pointed to the new server.  Create a default.aspx page and see if it will run.  If it does, work your way up from what you know works to what you have in your existing site.  Some of the settings for some plug ins in the web.config file are different if you are running ASP.Net 3.5.  Simply using Forms Authentication should not cause a problem.

Also, check the permissions on the folder containing the files for the site.  After you've used IIS to create a new site, you could compare the permissions on the folder created for the new site to the permissions on your exisitng folders.

I just moved to a new dedicated server for some of my clients sites usng ThePlanet.com.  I'm using Server 2008 and ASP.Net 3.5.  It's working well.

I don't know if any of this will help.  If you have any follow-up questions, I would be glad to share what I know.

Author Closing Comment

ID: 31584718
Thanks for your suggestions. I setup another default.aspx page and checked the asp.net version (it was 2) and immediately hit the same problem. I turned on  tracing failed requests, but nothing turned up in the logs. Eventually got the error "IIS7  Cannot read configuration file due to insufficient permissions". After researching this message, it turns out this problem was indeed a permissions one, as I needed  to grant read permission to IIS_IUSRS on the folders! I had a list of more than a dozen different error messages, now all fixed.
Many Thanks.

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…

624 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