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
  • 206
  • 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
  • 32,948
  • 13
  • 96
  • 198
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,354
  • 15
  • 67
  • 108
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,790
  • 13
  • 25
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
  • 5
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
  • 10,779
  • 14
  • 58
  • 79
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,061
  • 2
  • 16
  • 26
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
  • 9,860
  • 11
  • 50
  • 91
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,916
  • 5
  • 28
  • 52
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
  • 9,529
  • 7
  • 28
  • 38
1
vote
1 answer

What's the best way for a VPC to access files on the host machine

I am running Vista64 as the host for Win XP in Virtual PC 2007 SP1. I want to store my files on the host machine and just access them from the virtual pc. I access the files on the Host through a network share over the loopback adapter. Everyone…
jedatu
  • 3,893
  • 6
  • 43
  • 59
1
2 3