Eduardo
2010-08-03 17:15:03 UTC
Hi,
A Batch job needs to send an email to a bunch of people, but it is not
letting me do it as I get an error saying that IteropPermission does not have
all the rights to create the CLR object.
I created the:
perm = new InteropPermission( InteropKind::CLRInterop);
perm.assert();
After I tried this code I got another error message that I'm missing the
ComInterop permissions, and I don't how to approach the situation as if I
instantiate 1, the other is missing. In addition, when I try to instatiate
both, I get an error message saying that I cannot make multiples calls to
this class ...
This code is referring the System.Net dll.
Any help will be greatly appreciated.
Thanks!
Eduardp
A Batch job needs to send an email to a bunch of people, but it is not
letting me do it as I get an error saying that IteropPermission does not have
all the rights to create the CLR object.
I created the:
perm = new InteropPermission( InteropKind::CLRInterop);
perm.assert();
After I tried this code I got another error message that I'm missing the
ComInterop permissions, and I don't how to approach the situation as if I
instantiate 1, the other is missing. In addition, when I try to instatiate
both, I get an error message saying that I cannot make multiples calls to
this class ...
This code is referring the System.Net dll.
Any help will be greatly appreciated.
Thanks!
Eduardp