.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SQL connection problem

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
140 Views, 0 Replies

SQL connection problem

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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The connection string includes the following info:

Initial Catalog
Data Source
Packet Size
User Id
Password

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

Thanks,

Kevin.
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost