I’m helping building a ecommerce web site for a friend, he would like to use asp.net with mysql back end to store products and be able to update,delete, and insert data.
My question is are you able to build a asp.net 4.0 medium trust web site with mysql database?
If so how would you do it?
any help would be great thank you :).
Accessing the mysql database is no problem – just add it as a connection in visual studio and you can start accessing it just like any other database. However if you want to use a lot of the built in membership controls (Login/membership creation/url security via roles etc) then:
You need to download the mysql adodb.net connector. This will then allow you to use the membership/role providers (it also will create the database schema for you when first accessed if there is not one present)
MySql ADODB connector
If you want to test whether your application will run in medium trust you can add a web.config variable during development
MSDN Docs
i.e.