[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3086
  • Last Modified:

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: ]

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
Ast35
Asked:
Ast35
  • 5
  • 5
1 Solution
 
meko72Commented:
If this is IIS7 try this KB from Microsoft.

http://support.microsoft.com/kb/942055
0
 
Ast35Author Commented:
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
 
meko72Commented:
When you access This KB there should have been a Microsoft Fixit dialog box that came up. Run that
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
meko72Commented:
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
 
meko72Commented:


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
 
meko72Commented:
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
 
Ast35Author Commented:
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
 
Ast35Author Commented:
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
 
Ast35Author Commented:
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
 
Ast35Author Commented:
I need to close the question, so I'm going to accept that as the solution.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now