XSL transform

  • Thread starter Thread starter Doug Stiers
  • Start date Start date
D

Doug Stiers

I have this vb.net (framework 1.1) code:

Dim x As Xml.Xsl.XslTransform = New Xml.Xsl.XslTransform
Dim xr As XmlResolver

MessageBox.Show("before load")
x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS --
MessageBox.Show("after load")
'do the transform
x.Transform(gsXpensePath, < XML file_name>, xr)

And I'm getting an "invalied site" error. Any idea why? When I run this from
the development box it works fine, but from the machine that it is supposed
to run on I get the error. It used to work fine but all of a sudden it
starts bombing this morning.


Any help is appreciated.
Doug
 
Doug Stiers said:
x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS --
MessageBox.Show("after load")
'do the transform
x.Transform(gsXpensePath, < XML file_name>, xr)

And I'm getting an "invalied site" error. Any idea why?

Please post the /complete/ error message you are receiving.
 
Invalid site.

The last line of the call stack is:
System.Security.Util.SiteString.CreateSeperatedSite(String site)
 
Doug,
Post the complete error message, along with the file name.

Hope this helps
Jay

Doug Stiers said:
Invalid site.

The last line of the call stack is:
System.Security.Util.SiteString.CreateSeperatedSite(String site)
 
The entire error is "Invalid site"

The file names are using unc's

x.Load("\\serv1\c$\xpense\xpense.xsl") -- THIS IS WHERE IT ERRORS --
'MessageBox.Show("after load")
'do the transform
x.Transform(gsXpensePath, "\\serv1\c$\xpense\output.xml",xr)


Thanks,

Doug

Jay B. Harlow said:
Doug,
Post the complete error message, along with the file name.

Hope this helps
Jay
 
Doug,
Is this running on \\serv1 or a different computer?

Does the account the program running under have the necessary authority to
access the \\serv1\c$ share?

Remember \\serv1\c$ is a special share that is used for administrative
purposes, normally not for accessing files.

Did you per haps mean:
x.Load("\\serv1\xpense\xpense.xsl") -- THIS IS WHERE IT ERRORS --

Hope this helps
Jay
 
I put a messagbox in that function to display the following:
ex.Message & vbCrLf & ex.GetBaseException.StackTrace
Here is the output

Ivalid site.
at System.Security.Util.SiteString.CreateSeperatedSite(String site)
at System.Xml.XmlSecureResolver.CreateEvidenceForUrl(sString securityUrl)
at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)
at System.Xml.Xsl.XslTransform.Load(String url)
at Concur.Expense.NikuXpenseTransform()

Thanks,
Doug
 
It has been running for a couple of years without any problems until today.

Here is the error info and call stack:
Ivalid site.
at System.Security.Util.SiteString.CreateSeperatedSite(String site)
at System.Xml.XmlSecureResolver.CreateEvidenceForUrl(sString securityUrl)
at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)
at System.Xml.Xsl.XslTransform.Load(String url)
at Concur.Expense.NikuXpenseTransform()

If I log onto that machine and paste those unc's into the Start|Run I dont
get any errors. I can get to those files fine. It errors when I'm logged in
as myself or as the machine admin which is how it runs normally.
 
Doug,
It has been running for a couple of years without any problems until
today.

It is extremely rare for things to spontaneously stop working, there is
almost always an outside cause. What was that outside cause?


So what changed today?

What service packs were installed (OS, .NET, other)?
What configuration changes did your system admins do?
What changes were made to the program?


As far as I can tell "Site" in this case is referring to the machine name
(serv1).

Not sure what else to offer.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top