I have this vb.net (framework 1.1) code:
Dim x As Xml.Xsl.XslTran sform = New Xml.Xsl.XslTran sform
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(gsX pensePath, < 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 9 1578
"Doug Stiers" <do**@nospam.co m> schrieb: x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- MessageBox.Show ("after load") 'do the transform x.Transform(gsX pensePath, < XML file_name>, xr)
And I'm getting an "invalied site" error. Any idea why?
Please post the /complete/ error message you are receiving.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Invalid site.
The last line of the call stack is:
System.Security .Util.SiteStrin g.CreateSeperat edSite(String site)
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:up******** ******@TK2MSFTN GP14.phx.gbl... "Doug Stiers" <do**@nospam.co m> schrieb: x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- MessageBox.Show ("after load") 'do the transform x.Transform(gsX pensePath, < XML file_name>, xr)
And I'm getting an "invalied site" error. Any idea why?
Please post the /complete/ error message you are receiving.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Doug,
Post the complete error message, along with the file name.
Hope this helps
Jay
"Doug Stiers" <do**@nospam.co m> wrote in message
news:ul******** ********@tk2msf tngp13.phx.gbl. .. Invalid site.
The last line of the call stack is: System.Security .Util.SiteStrin g.CreateSeperat edSite(String site)
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message news:up******** ******@TK2MSFTN GP14.phx.gbl... "Doug Stiers" <do**@nospam.co m> schrieb: > x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- > MessageBox.Show ("after load") > 'do the transform > x.Transform(gsX pensePath, < XML file_name>, xr) > > And I'm getting an "invalied site" error. Any idea why?
Please post the /complete/ error message you are receiving.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"Doug Stiers" <do**@nospam.co m> schrieb: Invalid site.
The last line of the call stack is: System.Security .Util.SiteStrin g.CreateSeperat edSite(String site)
I still doubt that this is the complete exception text shown in the
exception dialog box that is appearing.
Maybe this helps:
<URL:http://groups.google.d e/groups?selm=BC6 tb.1329%24Dw6.1 2720%40attbi_s0 2>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
The entire error is "Invalid site"
The file names are using unc's
x.Load("\\serv1 \c$\xpense\xpen se.xsl") -- THIS IS WHERE IT ERRORS --
'MessageBox.Sho w("after load")
'do the transform
x.Transform(gsX pensePath, "\\serv1\c$\xpe nse\output.xml" ,xr)
Thanks,
Doug
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:eV******** ******@tk2msftn gp13.phx.gbl... Doug, Post the complete error message, along with the file name.
Hope this helps Jay
"Doug Stiers" <do**@nospam.co m> wrote in message news:ul******** ********@tk2msf tngp13.phx.gbl. .. Invalid site.
The last line of the call stack is: System.Security .Util.SiteStrin g.CreateSeperat edSite(String site)
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message news:up******** ******@TK2MSFTN GP14.phx.gbl... "Doug Stiers" <do**@nospam.co m> schrieb: > x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- > MessageBox.Show ("after load") > 'do the transform > x.Transform(gsX pensePath, < XML file_name>, xr) > > And I'm getting an "invalied site" error. Any idea why?
Please post the /complete/ error message you are receiving.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
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
"Doug Stiers" <do**@nospam.co m> wrote in message
news:uK******** ******@TK2MSFTN GP15.phx.gbl... The entire error is "Invalid site"
The file names are using unc's
x.Load("\\serv1 \c$\xpense\xpen se.xsl") -- THIS IS WHERE IT ERRORS -- 'MessageBox.Sho w("after load") 'do the transform x.Transform(gsX pensePath, "\\serv1\c$\xpe nse\output.xml" ,xr)
Thanks,
Doug
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message news:eV******** ******@tk2msftn gp13.phx.gbl... Doug, Post the complete error message, along with the file name.
Hope this helps Jay
"Doug Stiers" <do**@nospam.co m> wrote in message news:ul******** ********@tk2msf tngp13.phx.gbl. .. > Invalid site. > > The last line of the call stack is: > System.Security .Util.SiteStrin g.CreateSeperat edSite(String site) > > > "Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message > news:up******** ******@TK2MSFTN GP14.phx.gbl... >> "Doug Stiers" <do**@nospam.co m> schrieb: >> > x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- >> > MessageBox.Show ("after load") >> > 'do the transform >> > x.Transform(gsX pensePath, < XML file_name>, xr) >> > >> > And I'm getting an "invalied site" error. Any idea why? >> >> Please post the /complete/ error message you are receiving. >> >> -- >> M S Herfried K. Wagner >> M V P <URL:http://dotnet.mvps.org/> >> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> > >
I put a messagbox in that function to display the following:
ex.Message & vbCrLf & ex.GetBaseExcep tion.StackTrace
Here is the output
Ivalid site.
at System.Security .Util.SiteStrin g.CreateSeperat edSite(String site)
at System.Xml.XmlS ecureResolver.C reateEvidenceFo rUrl(sString securityUrl)
at System.Xml.Xsl. XslTransform.Lo ad(String url, XmlResolver resolver)
at System.Xml.Xsl. XslTransform.Lo ad(String url)
at Concur.Expense. NikuXpenseTrans form()
Thanks,
Doug
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uI******** ******@tk2msftn gp13.phx.gbl... "Doug Stiers" <do**@nospam.co m> schrieb: Invalid site.
The last line of the call stack is: System.Security .Util.SiteStrin g.CreateSeperat edSite(String site) I still doubt that this is the complete exception text shown in the exception dialog box that is appearing.
Maybe this helps:
<URL:http://groups.google.d e/groups?selm=BC6 tb.1329%24Dw6.1 2720%40attbi_s0 2> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
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.SiteStrin g.CreateSeperat edSite(String site)
at System.Xml.XmlS ecureResolver.C reateEvidenceFo rUrl(sString securityUrl)
at System.Xml.Xsl. XslTransform.Lo ad(String url, XmlResolver resolver)
at System.Xml.Xsl. XslTransform.Lo ad(String url)
at Concur.Expense. NikuXpenseTrans form()
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.
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:uY******** ******@TK2MSFTN GP15.phx.gbl... 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
"Doug Stiers" <do**@nospam.co m> wrote in message news:uK******** ******@TK2MSFTN GP15.phx.gbl... The entire error is "Invalid site"
The file names are using unc's
x.Load("\\serv1 \c$\xpense\xpen se.xsl") -- THIS IS WHERE IT
ERRORS -- 'MessageBox.Sho w("after load") 'do the transform x.Transform(gsX pensePath, "\\serv1\c$\xpe nse\output.xml" ,xr)
Thanks,
Doug
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in
message news:eV******** ******@tk2msftn gp13.phx.gbl... Doug, Post the complete error message, along with the file name.
Hope this helps Jay
"Doug Stiers" <do**@nospam.co m> wrote in message news:ul******** ********@tk2msf tngp13.phx.gbl. .. > Invalid site. > > The last line of the call stack is: > System.Security .Util.SiteStrin g.CreateSeperat edSite(String site) > > > "Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in
message > news:up******** ******@TK2MSFTN GP14.phx.gbl... >> "Doug Stiers" <do**@nospam.co m> schrieb: >> > x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- >> > MessageBox.Show ("after load") >> > 'do the transform >> > x.Transform(gsX pensePath, < XML file_name>, xr) >> > >> > And I'm getting an "invalied site" error. Any idea why? >> >> Please post the /complete/ error message you are receiving. >> >> -- >> M S Herfried K. Wagner >> M V P <URL:http://dotnet.mvps.org/> >> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> > >
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
"Doug Stiers" <do**@nospam.co m> wrote in message
news:uz******** ******@tk2msftn gp13.phx.gbl... 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.SiteStrin g.CreateSeperat edSite(String site) at System.Xml.XmlS ecureResolver.C reateEvidenceFo rUrl(sString securityUrl) at System.Xml.Xsl. XslTransform.Lo ad(String url, XmlResolver resolver) at System.Xml.Xsl. XslTransform.Lo ad(String url) at Concur.Expense. NikuXpenseTrans form()
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.
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message news:uY******** ******@TK2MSFTN GP15.phx.gbl... 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
"Doug Stiers" <do**@nospam.co m> wrote in message news:uK******** ******@TK2MSFTN GP15.phx.gbl... > The entire error is "Invalid site" > > The file names are using unc's > > x.Load("\\serv1 \c$\xpense\xpen se.xsl") -- THIS IS WHERE IT ERRORS -- > 'MessageBox.Sho w("after load") > 'do the transform > x.Transform(gsX pensePath, "\\serv1\c$\xpe nse\output.xml" ,xr) > > > Thanks, > > Doug > > "Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message > news:eV******** ******@tk2msftn gp13.phx.gbl... >> Doug, >> Post the complete error message, along with the file name. >> >> Hope this helps >> Jay >> >> "Doug Stiers" <do**@nospam.co m> wrote in message >> news:ul******** ********@tk2msf tngp13.phx.gbl. .. >> > Invalid site. >> > >> > The last line of the call stack is: >> > System.Security .Util.SiteStrin g.CreateSeperat edSite(String site) >> > >> > >> > "Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message >> > news:up******** ******@TK2MSFTN GP14.phx.gbl... >> >> "Doug Stiers" <do**@nospam.co m> schrieb: >> >> > x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- >> >> > MessageBox.Show ("after load") >> >> > 'do the transform >> >> > x.Transform(gsX pensePath, < XML file_name>, xr) >> >> > >> >> > And I'm getting an "invalied site" error. Any idea why? >> >> >> >> Please post the /complete/ error message you are receiving. >> >> >> >> -- >> >> M S Herfried K. Wagner >> >> M V P <URL:http://dotnet.mvps.org/> >> >> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> >> > >> > >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alex Vinokur |
last post by:
Functor-parameters in the for_each() and transform() algorithms are passed by value.
Might it make sense to have also algorithms for_each2() and transform2()
which pass Functor-parameters by non-const reference?
Here is some program which demonstrates probable necessity
in such forms of for_each() and transform().
|
by: Xiaolei Li |
last post by:
first off, i'm a total newbie at this stuff so excuse any wrong usage of
terminology or whatever else.
i have a XSL to transform a Document such that all "text" nodes will
have a "SPAN" inserted around it. the XSL is given below:
<xsl:transform version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xhtml" omit-xml-declaration="yes"/>
<xsl:strip-space elements="*"/>
|
by: John Lehmann |
last post by:
I have an interesting problem. I am performing an XSL
transform using the System.Xml.Xsl.Transform class.
I have a database that contains the XSL style sheet
string. And it seems to work pretty well for simple
transforms. But as soon as I add Xsl variables or For each
loops to the XSL string in the db, it fails to transform
the XML. I can see that it will transform everything until
that point. ALso If I copy the XSL & XML I am trying to...
|
by: Patrick Guio |
last post by:
Dear all,
I am trying to use the std::transform algorithm to to the following
vector< vector<char> >::iterator ik = keys.begin(); // key list iterator
vector< vector<char> >::iterator is = ik; // save begin
vector<char>::const_iterator i = ik->begin();
vector<char>::const_iterator e = ik->end();
vector<char>::iterator s = is->begin();
|
by: Stephen Cook |
last post by:
Having worked through the problems around enabling the document function
using an XmlUrlResolver I started work on building a useful class to hide
the intricacies.
Trying to generalise the process I've hit a snag.
How do I resolve multiple external references?
The transform method on a stylesheet only takes one resolver, not an array
Stephen
| |
by: Jason S |
last post by:
Hello Group,
I am just about tearing my hair out with this one and thought someone may
have some insight. I have a transform that wasn't working so I grabbed the
nearest debugger (xselerator) and saw that it works just fine. Now what I
mean by not working is that it just silently fails to produce the expected
output... no exceptions are being thrown. Xselerator uses msxml 3 so it's
not really helping me see the problem in .net 1.1.
...
|
by: schneider |
last post by:
Anyone know if there is a way to dynamicly create a Xslt template/s and use
them as an
xml transform with-out use files for the Xslt?
All the methods I see use files.
I want to create a Xslt transform via code?
Any examples would be great.
|
by: Mike Hofer |
last post by:
I've got two statements in my code that are both generating weird,
weird, weird messages:
The first one was,
Dim document As System.Xml.XmlDocument
Dim navigator As System.Xml.XPath.XPathNavigator
Dim transform As System.Xml.Xsl.XslTransform
..
..
|
by: Dean Card |
last post by:
Okay, so here is the situation. I have need to do some on-the-fly image
creation. I have everything working great except for the last part of it,
applying a perspective type transform to the image. The transform will take
a rectangular 2D image and transform it to a 3D representation in 2D.
Please see the link to see what I am trying to do:
http://seanberry.com/transform.png
I have PIL v1.15 installed which has a PERSPECTIVE...
|
by: Vijai Kalyan |
last post by:
Hello,
I am trying to use std::transform to take in a collection of strings,
transform them and insert the result into an output container. So, I
wrote something like this:
std::wstring doSomething (std::wstring const& str)
{
// do something to copy of str and return new value
}
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |