?
Solved

ASPX error in IE: Cannot view XML input using XSL style sheet

Posted on 2006-06-29
4
Medium Priority
?
4,870 Views
Last Modified: 2012-05-05
Hi,

I recently created aspx pages in Visual Web Developer 2005 Express and everything works fine in my VWD enviroment but when I try to open the pages outside the development area, in IE, I get the following error: Cannot view XML input using XSL style sheet...

I have put copies of my files into the wwwroot folder, so that I can test on my local PC and accross our intranet,
but I end up with above error.

How can I solve this?
This is my first attempt at this so I'm totally a newby... Please help.

Thank you in advance.
0
Comment
Question by:NDeMeyer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
kcchenkd earned 2000 total points
ID: 17013085

1.install Internet Information Service from component install from window xp professional, if you doens't have one on your machine.

2.  create vitual directory name[yourapplicationname] mapped to  [yourapplicationfolder] (c:\inetpub\wwwroot \yourApplicationFolder)  in iis, set asp.net version to 2.0, and add Default.aspx to Default Documents,  and then copy your files to [yourapplicationfolder](c:\inetpub\wwwroot \yourApplicationFolder)

3.test on your localmachine by typing in url: localhost/[yourapplicationname] on internet explore
0
 

Author Comment

by:NDeMeyer
ID: 17015994
I followed the above steps but it gave the following:

Server Error in '/K' Application.
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[HostingEnvironmentException: Failed to access IIS metabase.]
   System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3492186
   System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
   System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
   System.Web.CachedPathData.GetConfigPathData(String configPath) +382
   System.Web.CachedPathData.GetConfigPathData(String configPath) +243
   System.Web.CachedPathData.GetApplicationPathData() +68
   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3385695
   System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
0
 
LVL 2

Expert Comment

by:kcchenkd
ID: 17052988

Sorry for late reply

Try this, in iis, view property of Default Web Site,
and Under Directory Security Tab

Click Edit button for anonyous access, Check button for anonyous access should be checked, and User Name should be current account you are using, or create a account that have rights to read and write vitual diretory folder.

Hope it will help

0
 

Expert Comment

by:Shayju_kasim
ID: 22282585
Hi i am getting the error message when accessig a remote web service using .net window application:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

XML document must have a top level element. Error processing resource 'https://in.sagecrm.com/sagesoftwareindiapvtltd863djc...

 
What could be the issue
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

650 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