Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 922717 - Last Review: December 3, 2007 - Revision: 1.5
Error message when you run an ASP.NET-connected application that uses .NET Framework remoting on a computer that is running Internet Information Services 6.0: "XMLException: The root element is missing"
Consider the following scenario. You run a Microsoft ASP.NET-connected application on a computer that is running Microsoft Internet Information Services (IIS) 6.0. The computer is in a perimeter network. The application uses Microsoft .NET Framework remoting to connect to another computer in the trusted network. In this scenario, you may receive an error message that resembles the following:
Exception: System.Xml.XmlException - the root element is missing.
Note A perimeter network is also known as a
DMZ, a
demilitarized zone, or a
screened subnet.
This issue occurs when some .dll files on the computer that is running IIS 6.0 point to the Microsoft .NET Framework version 1.0. In the scenario that is described in the "Symptoms" section, the .dll files must point to
the .NET Framework version 1.1.
To resolve this issue, repair the application extension mappings to point to the .NET Framework 1.1. You can use the Aspnet_regiis.exe administration utility to repair the application extension mappings.
To do this, follow these steps:
- Click Start, click Run, type cmd in the Open box, and then click OK.
- At the command prompt, run the cd command to change to the following directory:
Drive:\Windows\Microsoft.Net\Framework\Version
Note Version is a placeholder for the version of the .NET Framework that is installed on the computer. - At the command prompt, run the following command to correctly configure the required application extension mappings:
aspnet_regiis -i
888226 Â
(http://kbalertz.com/Feedback.aspx?kbNumber=888226/
)
You receive an unhandled exception error message when you use the MemoryStream class in the .NET Framework 1.1 Service Pack 1
APPLIES TO
- Microsoft Internet Information Services 6.0
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate