Questions tagged [caspol]
38 questions
5
votes
5 answers
.Net Security Exception when trying to render a reCaptcha control
I've downloaded the recaptcha.dll in both 1.0.1.0 and 1.0.4.0.
When trying to render the control, I get the following exception:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.…

Andrew Arnott
- 216
- 3
- 8
5
votes
1 answer
Run c# .NET Program from network share
got a interesting problem. I placed a c# .net .exe file on a network share. If i try to
Start->Run: \\hostname\test.exe
my software starts properly and everything is working.
We also have a DNS Alias set for this computer, so if I try to run my…

Hans99
- 51
- 1
- 2
4
votes
1 answer
Legacy Security Policy in Visual Studio 2010 and COM References
I have a project using DevExpress 8.3 (2008.3) which I just recently upgraded to use VS 2010. After doing so, everything compiled fine but I got errors trying to use the designer. I resolved this as described here:
NetFx40_LegacySecurityPolicy in…

Jeff
- 35,755
- 15
- 108
- 220
3
votes
1 answer
Is there a CASPOL.exe GUI command line generator?
Is there a simple utility/GUI application for generating CASPOL commands?

Brandon
- 13,956
- 16
- 72
- 114
2
votes
2 answers
CAS not working for VS2010 mapped drive
I have a project using subsonic that I developed in Visual Studio 2008 on C: drive. No problem there.
I've just upgraded to Visual Studio 2010 (and as my computer coincidentally died, I'm now running Windows XP virtualised with VirtualBox).
The…

Ben McIntyre
- 1,972
- 17
- 28
2
votes
0 answers
How can I see what zone or site of origin caspol considers a piece of code to belong to?
I am trying to get used to caspol because the downloaded projects for software books I use invariably won't run because "the project location is not trusted". I understand I need to use caspol to resolve this by creating a membership condition. MSDN…
user334911
2
votes
3 answers
.Net 2.0 application from network share without FullTrust
I am trying to run a .Net 2.0 application from a network share without using the FullTrust permission set. I want to create a new permission set that has just the permissions my assemblies require, and then assign that to the exe on the shared path.…

MegaWhiz
- 21
- 2
2
votes
1 answer
How do I validate .NET Code Access Security on a client computer
Is there a tool that lets me validate effective code access security rather than just the list specifications like caspol does? A review tool, if you like.
We have a problem where a 3rd party application fails to load .NET assemblies on a network…

thniels
- 45
- 1
- 5
2
votes
4 answers
Exists a replacement for the command-line-tool CASPOL.exe?
When trying to execute a .NET-App, it throws a "PolicyException", because "only one group is allowed".
The tool should list existing settings, and allow to delete selected settings.
Using caspol to list is not helpful, it is cruel.
I've seen there…

tantran
- 91
- 6
2
votes
1 answer
A CASPOL command to completely trust all code
We have a a couple of old framework 1.1 applications at my workplace, and we have run up against security exception problems. At this stage, I don't have the option of upgrading the apps to use ClickOnce security.
What I am after is a CASPOL command…

Craig Schwarze
- 11,367
- 15
- 60
- 80
2
votes
0 answers
(caspol -security off) does not work
I am running a batch file which compiles hundreds of DLL's and programs written in C#.
Unfortunately, I get error:
Web deployment task failed. (Dynamic operations can only be performed in homogenous AppDomain.)
Googling sent me to CAS problems.…

Jacek Wojcik
- 1,223
- 2
- 19
- 33
1
vote
1 answer
Security exception when passing .net 3.5 to 4.0
We have some issues while migrating our Asp.Net Web Application .Net 3.5 to .Net 4.0.
It seemed that we had a Caspol Security Exception, so we added this to our web.config :
and…

Cédric Boivin
- 10,854
- 13
- 57
- 98
1
vote
1 answer
Conditional Access Policy does not affect MSAL app - user not asked to reauthenticate
Azure AD Premium has the concept of Conditional Access Policies. When you change the sign-in frequency it doesn't affect the access token or refresh token lifetime.
Since the access token has a default lifetime of 1 hour, no matter what you set the…

k29
- 641
- 6
- 26
1
vote
0 answers
Caspol update previous network share
We have a .Net framework 2 application.
The IIS server points to another server where the code is located (code is network shared).
Already my previous team has used Caspol to FullTrust the network share.
When we moved our code to a new server, and…

user804401
- 1,990
- 9
- 38
- 71
1
vote
1 answer
C# - .NET 4.0 - That Assembly does not allow partially trusted callers
When running from a network share, my application throws the following exception:
That assembly does not allow partially trusted callers.
My application references two DLL files:
BitFactory.Logging.dll
FileHelpers.dll
I'm not sure which one it is…

Nasir
- 10,935
- 8
- 31
- 39