Ok, here it is:
----------------------------------------------------------------------------------------------------------------
Detailed Error Information
| Module |
IIS Web Core |
| Notification |
BeginRequest |
| Handler |
Not yet determined |
| Error Code |
0x800700b7 |
| Config Error |
There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler'
section defined |
| Config File |
\\?\D:\Virtual Folders\Account Application\web.config |
| Requested URL |
http://localhost:80/AccountApplication/Default.aspx |
| Physical Path |
D:\Virtual Folders\Account Application\Default.aspx |
| Logon Method |
Not yet determined |
| Logon User |
Not yet determined |
Config Source
15: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
16: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
17: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
----------------------------------------------------------------------------------------------------------------
The two web applications work perfectly in virtual folders running on IIS on Windows XP Pro. When I copy them to Win 2008 and set them up as Applications in IIS, they don't work. I also tried setting them up as Virtual Folders but that didn't work either.
The problem is the web.config file. So I created an empty web application with Visual Web Developer 2008, set it up as an Application in IIS, then copied all of the files from the original web app except for its web.config. I also tried changing the Application Pool to Classic .NET App Pool. Nothing worked.