Active Contributor
Posts: 36
Registered: ‎06-23-2004
Message 1 of 1 (47 Views)

SQL connection problem

47 Views, 0 Replies
01-02-2006 11:25 PM
I have compiled a stand alone application that connects to our sql server and reads data from the tables, providing searches. I have also compiled the same code as a dll to be used as a command in AutoCAD. But the dll exits at the sql connection string.

The error message is:
Request for permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The connection string includes the following info:

Initial Catalog
Data Source
Packet Size
User Id

Any ideas? Have I missed something? Why doesnt the dll connect but the exe does?


Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.