caspol

Caspol, VMs, Mapped Drives, VS2010

こ雲淡風輕ζ 提交于 2020-01-03 03:51:04
问题 (updated this after various other attempts to crack it!) I have a VM (Win7 32 bit) with VS2010 installed. I have a drive mapped (not a vm shared folder 'cos I found a write-latency issue in other scenarios) into it from the host machine (VM 64 bit), when I have some of my VS2010 projects and to where I am building them. (I've also tried mapped from an XP 32 bit host as well, but have exactly the same problem). One of my projects is looking to load an assembly. If I copy that assembly to a

CAS not working for VS2010 mapped drive

妖精的绣舞 提交于 2019-12-30 11:06:44
问题 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 project runs without complaint on C: drive, but if I run it from G: (a mapped drive which points to a partition on the base PC), I can't run the custom tools subsonic uses (error listed below), OR run the web application ('start without debugging'

.Net 2.0 application from network share without FullTrust

笑着哭i 提交于 2019-12-22 14:17:04
问题 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. Is it possible to do this? From my limited experiments, I find that I am unable to do get any application working from a network share without FullTrust. I tried creating a new perm set, and also tried the Everything and other perm sets, but none

Legacy Security Policy in Visual Studio 2010 and COM References

半城伤御伤魂 提交于 2019-12-21 19:58:13
问题 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 design-time mode by adding <NetFx40_LegacySecurityPolicy enabled="true"/> to my devenv.exe.config. Designer works fine now, but some of the projects in the solution which have COM references no longer compile, with the exception: The

Detected DLLs that are from the internet and “blocked” by CASPOL

安稳与你 提交于 2019-12-12 06:23:54
问题 Is there a way in code to detected whether a DLL is blocked from being loaded because it was downloaded from the internet? I know the caspol.exe utility can read permissions settings, but I would like to stay in code, if possible. 回答1: Blocked content is controlled by NTFS alternative data streams and can be removed using a command line utility by sysinternals called streams. This is a quote from Wikipedia on ADS. Microsoft introduced the Attachment Execution Service that stores details on

execute caspol from within vbscript

我与影子孤独终老i 提交于 2019-12-11 15:26:33
问题 I'd like to call caspol from within a script inside a custom action in an msi (setup project). I'd prefer a standard msi to ClickOnce, because with a standard msi I can install drivers & associate filetypes with our application whereas with ClickOnce I can't. When I execute the caspol command from the command line it succeeds, but from within vbscript it always fails with the error "Fehler: Unbekannte Mitgliedschaftsbedingung - -url.." - which translates as "Error: Unknown membership

Caspol, VMs, Mapped Drives, VS2010

半世苍凉 提交于 2019-12-07 15:48:25
(updated this after various other attempts to crack it!) I have a VM (Win7 32 bit) with VS2010 installed. I have a drive mapped (not a vm shared folder 'cos I found a write-latency issue in other scenarios) into it from the host machine (VM 64 bit), when I have some of my VS2010 projects and to where I am building them. (I've also tried mapped from an XP 32 bit host as well, but have exactly the same problem). One of my projects is looking to load an assembly. If I copy that assembly to a local drive, the program ruins fine. If I leave it on the mapped drive, then I get an error Exception is:

C# - .NET 4.0 - That Assembly does not allow partially trusted callers

我的梦境 提交于 2019-12-06 13:32:23
问题 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 having problems with. AllowPartiallyTrustedCallersAttribute : Read up on it, but I do not have the source for either of the DLL files, so I'm not able to add the attribute to those DLL files. CASPOL.EXE : added my network share using a few variations

.Net 2.0 application from network share without FullTrust

拥有回忆 提交于 2019-12-06 09:29:51
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. Is it possible to do this? From my limited experiments, I find that I am unable to do get any application working from a network share without FullTrust. I tried creating a new perm set, and also tried the Everything and other perm sets, but none seem to work. Has anyone had any experience with this? You need to sign your assemblies with a strong

C# - .NET 4.0 - That Assembly does not allow partially trusted callers

两盒软妹~` 提交于 2019-12-04 19:27:25
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 having problems with. AllowPartiallyTrustedCallersAttribute : Read up on it, but I do not have the source for either of the DLL files, so I'm not able to add the attribute to those DLL files. CASPOL.EXE : added my network share using a few variations, such as caspol -machine -addgroup 1. -url \\netserver\netshare\* LocalIntranet nothing seems to