That assembly does not allow partially trusted callers.

G

Guest

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
 
A

Alvin Bruney [MVP]

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
 

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

Top