473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Test if current running assembly will trust a Security Zone

I need to be able to test at runtime whether or not a component is going to
load properly from the Intranet.

Is there a way to query, "Will the current running assembly trust a
component loaded from the Intranet?"
Nov 16 '05 #1
1 1280

"Clinton Pierce" <cp*****@payroll1.com> wrote in message
news:eU**************@TK2MSFTNGP10.phx.gbl...
I need to be able to test at runtime whether or not a component is going to load properly from the Intranet.

Is there a way to query, "Will the current running assembly trust a
component loaded from the Intranet?"


I'm not sure if this is what you want, but one thing you could do is to load
the assembly, obtain its evidence and then look at the permissions that CLR
grants to the assembly based on the evidence.

This is effectively what caspol -resolveperm does. You can see how caspol
does it by looking at its source code which comes with Rotor.

Regards,
Sami
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Wanderer | last post by:
Hi All, how knows what must be configured on local machine or (and better) within .net application in order to allow to start it from network share without SecurityException? Application...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
2
by: David Lindgren | last post by:
Hello! When I am trying to run my .NET application from a network drive a System.Security.SecurityException exception is thrown. Why is that? How do I prevent it? Thanks! /David.
1
by: NonDeterministic | last post by:
Hello! Everytime I recompile a program with csc, I have to go to ".NET Framework 2.0 Configuration" / Runtime Security Policy and increase the assembly trust to make it run properly. How can I...
4
by: Derek Martin | last post by:
Good morning everyone! I have FINALLY finished my crazy go nuts 80,000 line custom built app and am getting ready to do some testing and have already run into a little problem. The app needs to...
1
by: Shimon Sim | last post by:
How to specify security access for assembly running in ASP.NET? FxCop requests it always and I always ignore it. I am thinking that this is good thing to know how to do. I usually need the...
2
by: xievvv | last post by:
I used the .NET Framework 2.0 Configuration utility to create a custom code group which: Refers to the strong name of an assembly on a network drive Uses the FullTrust permission set. The...
0
by: pkellner | last post by:
I have code like: a = Assembly.LoadFrom("Mono.Security.dll"); that is part of a class library I'm using from Novell. When I run this code in my unit test, a returns a reference. When I run...
1
by: Carl Johansson | last post by:
I think I'm going nuts! I have a perfectly fine exe assembly built with Microsoft Visual C# 2008 Express Edition. When executed from my local hard drive it runs as exactly as expected. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.