Partially Trusted Callers Exception

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've just deployed my application which I ported from VS.Net 2003 to VS.Net
2005 and also from SQLServer to Teradata.

When I put the executable on the network it won't run.
The error is as follows:
System.InvalidOperationException
{"An error occurred creating the form. See Exception.InnerException for
details. The error is: That assembly does not allow partially trusted
callers."}

Does anyone know how I can change the security settings for the application
on the network. It runs fine from a desktop.
 
Ignore this, I just remembered it needed a caspol config for .net framework 2
as follows in a batch file which worked. Thanks.

C:
CD\
CD C:\WINNT\Microsoft.NET\Framework\v2.0.50727\
CLS
caspol -machine -chggroup LocalIntranet_Zone FullTrust
 
Is this the ONLY way to do it, or is there something that can be changed
in the program so it doesn't have to be full trust?

Darin
 
Is this the ONLY way to do it, or is there something that can be changed
in the program so it doesn't have to be full trust?

Darin

*** Sent via Developersdexhttp://www.developersdex.com***

Darin,

It cannot be done in code because a malicious programmer could exploit
that to do whatever they liked.

Brian
 
I understand that - it was just so easy w/ 1.1 .NET to change the
security settings - I can't seem to find the security settings for 2.0
anywhere.

Is there something specific in the program that says this has to be full
trust. I have done the oneclick setup and had it calculate what level
and my app says full trust - it would be very helpful if it explained
why it came to that conclusion.

Darin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top