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,741 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
  • 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
 
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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.
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

20 Experts available now in Live!

Get 1:1 Help Now