Hello,
I have a problem with security-settings in a .NET Application.
The application has a strong name and is full trusted ("Trust an
assembly" - Full Trust),
..NET Security is set "Local Intranet - medium trust".
The application ist installed on a network-drive.
Working-Directory and Configuration-Files are also on different
network-shares.
The application uses intensively XSLT and XML.
The following XSL-Transformation-process fails (without errors !):
Base-Document XML X is stored on network-folder A.
Transformation-Stylesheet XSL Z is stored on Networkfolder B
Additional datas comes from Lookupfiles XML A and XML B.
There is a special Stylesheet XSL A for deriving of values from XML A,
and special Stylesheet XSL B for deriving of values from XML B.
Both XSL A and XSL B will be imported from Stylesheet XSL Z.
The stylesheet XSL Z gets also 2 Parameter (Path and File of additional
XML A and XML B).
The Path and name of these XML-Files will be stored in variables for
further use in the imported Stylesheets XSL A and XSL B.
The imported stylesheets are in the same folder like Stylesheet Z.
XML A and XML B are stored in Network-Directory A.
If the transformation runs, the deriving of values in XSL B fails.
No values will be found in XML B.
If I set the .NET-Security to "Local Intranet" - Full Trust,
the transformation works fine.
After spending some time for error-detecting and reading documentation,
I wrote
a little Test-Application only with the functionality, desribed above.
I installed this on a Network-Folder and put all Stylesheets and XML on
a subfolder under the installation Folder.
It works fine !!!
But if I move the stylesheet XSL Z to a other Networkfolder (origin
Network-Folder B) - it fails.
If I set the "Local Intranet" to "Full trust" - it works fine !!
It seems, that it works only, if all XML and XSLT are located in one
folder.
(XSL Z , XSL A and XSL B must be in one folder, but the LookUp-XML are
normally in a other folder).
If I set to "Local Intranet - Full Trust" it works also, if XML A and
B are in a other folder.
If you have any ideas or hints - many, many thanks for your feedback.
many thanks
Thomas