|
I am trying to get ClickOnce working with a small solution. As part of the solution I want to dynamically load up an assembly using a factory. I want full trust for my app, so I deploy it using the CD/DVD method and set the option to debug using the selected permissions. I use Assembly.Load and start the app in VS2005. It works and I can call a method in the loaded assembly if it returns null, but if it actual does something like use a string, I get the above exception with the message:
"The assembly does not allow partially trusted callers"
This makes sense so far as the System.dll assembly does not allow partially trusted callers, but why is my dynamically loaded assembly only partially trusted? |