By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,750 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,750 IT Pros & Developers. It's quick & easy.

Problem with .NET Security Settings

P: n/a
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

Jan 23 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.