Solved

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

Posted on 2006-06-29
4
4,857 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
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
kcchenkd earned 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

685 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