NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening .xml TestStand Reports with Internet Explorer

Hi,
 
I'm trying to open a TestStand .xml report with XP Internet Explorer and get the following error:
 

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


Access is denied. Error processing resource 'file:///C:/Program Files/National Instruments/TestStand 3.5/Components/NI/Mode...

I have checked StyleSheets ...

C:\Program Files\National Instruments\TestStand 3.5\Components\NI\Models\TestStandModels\StyleSheets

 
and have: expand.xsl, horizontal.xsl and report.xsl plus numerous .gif's
 
Have I got a security issue?
How do I fix this so IE opens the TestStand .xml reports?
 
Any help appreciated, many thanks in advance.
 
Andy
 
0 Kudos
Message 1 of 7
(7,688 Views)
Andy,

There are several ways to get this message.  The one we typically see is if the operator moves the report to another machine without also moving the style sheet information.  I think that this is way to typical and I have taken to always explaining the problem during intital training, including it in the manual (even if it is only a single sheet "quick start"), and moving the style sheet directory into the report directory and re-doing the paths to the local one.  In your case it looks like the this is not the problem. 

Your problem seems to be IE related.  I believe that you have some security setting turned on that does not allow you to access the style sheet correctly.  Try looking that the Internet Explorer security settings.  Also, double check that the style sheet files are the correct ones for yout version fo TestStand and located in the right directory.

Hope that some of this helps,
Bob Young

0 Kudos
Message 2 of 7
(7,675 Views)
Thanks Bob,
Yes I think your right, it is an IE security problem. I also forgot to mention it was across a network, although we have another in the office that has the problem localy.
 
I've tried turning off various IE protection with no luck also tried turning off the fire wall.
 
Regards
Andy
0 Kudos
Message 3 of 7
(7,636 Views)
Andy

Here is the some things that you can try
1. If you want to move an XML report to a different computer, you can use XMLPack.exe to package all dependencies for the report (this includes stylesheet and supporting files) and then move the packaged report to the other computer.

2. Regarding the IE error you can try to reset all your IE options. There are 2 places you need to reset the options - Under tools->options->Security - Click on "Reset all zones to default level" and under advanced - "Restore advanced settings".

Regards
Anand Jain
National Instruments
0 Kudos
Message 4 of 7
(7,620 Views)

So I've also been working this type of problem.  But I've found that even if I have style sheet in the correct location, IE will only find it properly with the xml file residing locally.  Same xml file located on the network doesn't work.  Almost like the absolute path referenced in the XML doesn't work because of the local vs. network drive security settings.  And yes, the error doesn't really give enough details.

 

Firefox won't open the file correctly at all.

 

I'd like to reference the stylesheet as a relative path, and store the style sheet with the xml file.  But that's so simple I'm sure it can't work..

0 Kudos
Message 5 of 7
(6,650 Views)

Hi, in order for Firefox (or most browsers) to know that the xml file should be processed you must set the MIME type correctly (I use 'text/xml'), otherwise it will just be opened as plain text. This is also true for the xsl file.

 

Another thing to check is that the xsl file resides on the same server as the xml file.

I don't believe that Firefox will allow you to link to a xsl-file on a different server due to security reasons.

 

Having the stylesheet loaded with relative path should be OK.

 

/J

Fixa så att man kan checka ut och editera ett dokument direkt från RH GUI:t, t.ex. för att fixa till dokument huvud innan release

0 Kudos
Message 6 of 7
(6,567 Views)

Try to enable in IE settings InternetOptions/Security/Local Intranet/ click on custom level and then enable at point Miscellaneous the option "Access data sources across domains"

0 Kudos
Message 7 of 7
(6,394 Views)