Accu Web Hosting Accu Web Hosting Accuweb Hosting
Accu Web Hosting Accu Web Hosting Window Hosting Home Accu Web Hosting Window Hosting Accu Web Hosting PHP Hosting Accu Web Hosting Reseller Accu Web Hosting SQL Hosting Accu Web Hosting   accu web hosting
 

Go Back   Web Hosting Technical Support Discussion Forum > General Web Hosting Discussion Forum and Support > Windows Web Hosting Discussion Forum

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...

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 12-26-2006
Junior Member
 
Join Date: Dec 2006
Posts: 1
Rep Power: 0
ralph eddy is on a distinguished road
Default

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,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-28-2006
Administrator
 
Join Date: Sep 2004
Age: 31
Posts: 124
Rep Power: 10
Jason is on a distinguished road
Send a message via MSN to Jason Send a message via Yahoo to Jason
Default

Check various mysql connection strings at http://www.connectionstrings.com/?carrier=mysql
__________________
Jason
---------
Technical Support Group
AccuWebHosting.Com
Windows Website Hosting
Linux Website Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-02-2007
Administrator
 
Join Date: Sep 2004
Posts: 30
Rep Power: 10
Nici has disabled reputation
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -5. The time now is 07:29 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5
http://www.accuwebhosting.com/terms.htm

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29