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,800 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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