VS2005 app cannot access a call to an ODBC conection. I get a security
warning"
That assembly does not allow partially trusted callers."

I have a strong name for the project set in the project.

What do I have to do to allow this application to be called from a file
server instead of the local drive.

Is there a way to set the data tier's dll to the local drive? If so how do
I set up the base project to not look for that dll in the bin directory?

TIA

__Stephen

Re: That assembly does not allow partially trusted callers. by Alvin

Alvin
Wed Jul 04 09:42:36 CDT 2007

Turn CAS policy off temporarily and then try the application again. It
should work. That will confirm a CAS issue. If that's the case, you have a
couple of options (in no particular order):
1. Run the application with higher trust
2. Configure CAS policy to allow the access (preferred)

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


"Stephen" <Stephen@discussions.microsoft.com> wrote in message
news:14EDB90E-3CE2-4A54-A1C5-B8531ED169C7@microsoft.com...
>
> VS2005 app cannot access a call to an ODBC conection. I get a security
> warning"
> That assembly does not allow partially trusted callers."
>
> I have a strong name for the project set in the project.
>
> What do I have to do to allow this application to be called from a file
> server instead of the local drive.
>
> Is there a way to set the data tier's dll to the local drive? If so how do
> I set up the base project to not look for that dll in the bin directory?
>
> TIA
>
> __Stephen