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,770 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating csr file for SSL 4 48
asp.net mvc input file 2 32
Tool Box 2 35
IIS rewrite rules for subsites as subfolders but not all 1 9
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

16 Experts available now in Live!

Get 1:1 Help Now