Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / January 2006

Tip: Looking for answers? Try searching our database.

Problem with Security-

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas H. - 19 Jan 2006 14:55 GMT
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 !!

If you have any ideas or hints - many, many thanks for your feedback.

thanks
Thomas
Thomas H. - 19 Jan 2006 17:23 GMT
in addition:

I 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.