In this particular case, CAS is complaining because candle is signed, but isn't marked with the APTCA (AllowPartiallyTrustedCallersAttribute) in the assembly level attributes. As such, when it is launched from a partially trusted context (like a network share), it fails instantly.
To get around this, you would need to grant the assembly FullTrust. This is easy to do in a granular, secure way though, because WiX is signed. You can use a strong name membership condition with the WiX public key token to grant FullTrust. It might be possible to code WiX so that it could safely include APTCA and actually could run partially trusted, but I'm pretty sure it does a lot of COM interop which requires Full Trust anyway and given that it is a development tool, this is probably not worth doing. The WiX team has plenty of other stuff to work on. :) If it were a downloadable control, then that would be a different story... Joe K. ----- Original Message ----- From: Bob Arnson To: Ben Weatherman Cc: [email protected] Sent: Monday, September 11, 2006 10:43 PM Subject: Re: [WiX-users] System.Security.SecurityException when runningcandle Ben Weatherman wrote: I have WiX installed on a shared drive .NET doesn't support running assemblies from a network by default. Caspol is the only workaround I know of. -- sig://boB http://bobs.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

