|
|
|||||||
| Windows Web Hosting Discussion Forum Discussion Forum on Windows Web Hosting Related Support Issues. Discuss your Issues related to ASP.NET, MS SQL, ASP, DLL, Components, etc... |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
What is the best way for me to connect to mySql connect from my .Net application?
I am using MySql.Data.dll. When I try and make a database connection I get this warning: System.Security.SecurityException: That assembly does not allow partially trusted callers. I would appreciate any recommendations and other Best Practices. Thanks, |
|
|||
|
Check various mysql connection strings at http://www.connectionstrings.com/?carrier=mysql
__________________
Jason --------- Technical Support Group AccuWebHosting.Com Windows Website Hosting Linux Website Hosting |
|
|||
|
Ralph,
It seems that your hosting provider has partial trust enabled on the server for ASP.NET, which is good as far security is concerned. So, i would recommend you to write down your code acceptable in partial trust environment. Make sure that the MySQL provider is not strongly signed (which would give an implicit LinkDemand for FullTrust on every public and protected method of every publicly visible class), as it refuses to be called by partially trusted code. In this case, you should recompile the MySql.Data.dll without strongly signing it. Let me know if that works for you. Thanks,
__________________
Nici @ AccuWebHosting.Com ---------------------- Technical Leader // Forum Admin AccuWebHosting.com |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Upgrade MySQL to Version 5 | qingsong | Windows Web Hosting Discussion Forum | 1 | 08-23-2006 05:48 AM |
| Website admin newbie/dummy with questions | wrinehart | Windows Web Hosting Discussion Forum | 3 | 07-18-2006 01:09 AM |
| How to backup your Mysql database with phpMyAdmin | Manuel_ | TroubleShooting | 0 | 06-02-2006 06:31 AM |
| .NET 2.0 availability | Vaughn | Windows Web Hosting Discussion Forum | 1 | 01-06-2006 10:25 PM |
| MySQL | ahmedvb | Windows Web Hosting Discussion Forum | 1 | 06-25-2005 02:29 PM |