0

I have been trying to get the Entity Framework to work in my web application using MySQL. It works fine on my local pc, but doesn't work when I put it on the server.

Since the server is a shared server I can install the connector if that is the issue.

2
  • Can you please tell us what's the question? Commented Nov 14, 2009 at 4:35
  • my question is does the connector needs to be installed onthe server or i can just put MySql.Data.dll file int he bin directory Commented Nov 16, 2009 at 3:45

4 Answers 4

1

Your shared web host may restrict you to Medium Trust. There are known issues with using some db connectors like Devart in a medium trust environment. In your desktop/dev you are probably running in Full Trust.

Try setting your site to medium trust in web.config... see if you can duplicate the error.

How To: Is there a way to simulate medium trust in VS2010

I am currently looking into solutions... but may have to simply change hosts.

Sign up to request clarification or add additional context in comments.

Comments

0

You should be able to put the MySQL.Data.Dll file in your BIN file.

Comments

0

place mysql.data.dll inside you Bin folder of the application.

this should rn on a medium trusted server even. if you do not know about it and still have the problem please contact your hosting provider and ask him to install mySqlConnector on server.

Comments

0

You must add provider library to bin directory in your web application and register provider in your web.config.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.