Solved

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. [Config Source     -1:      0: ]

Posted on 2011-03-23
10
2,907 Views
Last Modified: 2012-06-27
This is the second question related to this matter, but I am now using a different machine (Windows 7 rather than Vista). I asked this question in another thread, but I think it really counts as a new question so I have closed the other question.

I have been given the files for an ASP.NET website and I need to get it running locally on IIS. I was having trouble getting any site to run locally on the Vista machine I was using, but I have set up IIS on Windows 7 and have managed to get a site I had written myself using Visual Web Developer to run correctly on it.

However, I am still having problems with the other site.


When I load a web page, I get the error -

Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module      IIS Web Core
Notification      BeginRequest
Handler      Not yet determined
Error Code      0x8007000d
Config Error      
Config File      \\?\C:\inetpub\wwwroot\REA\web.config
Requested URL      http://localhost:80/REA/default.aspx
Physical Path      C:\inetpub\wwwroot\REA\default.aspx
Logon Method      Not yet determined
Logon User      Not yet determined
Config Source

   -1:
    0:

Links and More Information This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

View more information »


The web.config file is not empty. Any idea what the problem could be?

Thanks.
0
Comment
Question by:Ast35
[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
  • 5
  • 5
10 Comments
 
LVL 9

Expert Comment

by:meko72
ID: 35200049
If this is IIS7 try this KB from Microsoft.

http://support.microsoft.com/kb/942055
0
 

Author Comment

by:Ast35
ID: 35200694
It is IIS7.5, I believe.

In that KB,

Cause of error message 1
This problem occurs because the ApplicationHost.config file or the Web.config file contains a malformed XML element. To resolve this problem, see Resolution 1.

Resolution 1
Delete the malformed XML element from the ApplicationHost.config file or from the Web.config file.


The thing is, I can't see any malformed XML element in the web.config file, and this is from a website which is in fact running correctly on a web server. It kind of looks like it's looking at a blank line and seeing a malformed XML element.

Here is the error message display. cap
0
 
LVL 9

Expert Comment

by:meko72
ID: 35200974
When you access This KB there should have been a Microsoft Fixit dialog box that came up. Run that
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 9

Expert Comment

by:meko72
ID: 35200997
Here is the link to the Fixit Download. Its called Mats_Run.winfilefolder.exe


http://www.microsoft.com/downloads/en/details.aspx?FamilyID=3db356d3-527e-433f-8c41-5295789ec8fe
0
 
LVL 9

Expert Comment

by:meko72
ID: 35201107


As the error suggests, the error is because IIS7 configuration system only supports per-attribute encryption; it does not support per-section encryption.
http://blogs.iis.net/wonyoo/archive/2008/01/09/section-level-encryption-of-asp-net-in-iis-7.aspx
0
 
LVL 9

Expert Comment

by:meko72
ID: 35201155
Also If you cannot see elements look for a backup copy at c:\Inetpub\History

Im sending you another link that might help ya  

http://www.jj54.com/156755-Error-Message-When-You-Visit-A-Web-Site-That-Is-Hosted-On-IIS-7-0-58-34-HTTP-Error-500-19-8211-Internal-Server-Error-34-/
0
 

Author Comment

by:Ast35
ID: 35205239
I ran the Mats_Run.winfilefolder.exe, but it didn't seem to have any effect on the problem. Do you know any way I should be using the tool?

Are you saying that I should run the tool linked to in the above jj54.com page? What does it do? The 'for experts only' bit on the page repeats the advice about removing malformed XML.

Regarding per-section encryption, I was sent the files as a zip file, and unzipped them into a directory. I have not encrypted them myself.
0
 

Author Comment

by:Ast35
ID: 35205275
I tried running aspnet_regiis.exe on the various sections of the web.config file, but it had no effect on the problem. I'm not clear if any encryption would have persisted from the previous location of the files.
0
 

Accepted Solution

by:
Ast35 earned 0 total points
ID: 35205545
OK, progress, I found this thread :

http://stackoverflow.com/questions/1808680/web-application-problems-web-config-errors-http-500-19-with-iis7-5-and-asp-net

One of the replies is -
I had these exact symptoms and my issue was similar to Peter's. Was setting up an existing project on a new server. My project referenced the IIS7 URL Rewriting module, but that hadn't been installed yet on the new server. Installing it fixed my issue.

I installed IIS7 URL Rewriting from -

http://www.microsoft.com/web/gallery/install.aspx?appid=urlrewrite2

I'm now no longer getting that message!

I'm now getting a compilation error relating to an undefined VB object type, but that is something I can work with for now!

Thanks meko72 (and Ramone_Hamilton in my previous related question) for trying to help me.
0
 

Author Closing Comment

by:Ast35
ID: 35239004
I need to close the question, so I'm going to accept that as the solution.
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

690 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