?
Solved

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

Posted on 2006-06-29
4
Medium Priority
?
4,864 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

801 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