Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm new on this. I got a sample project that runs perfectly on another pc but get an error when running on my own pc. I changed the connection string and restored the database only. I am using a SQLServer connection, but when I run the project it shows an MySQLRoleProvider error. I searched web.config for this configuration but it isn't there. How can I solve this issue?

The message:

`Parser Error Message: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=+++' or one of its dependencies.

<add name="MySQLRoleProvider" 
     type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=***" 
     connectionStringName="LocalMySqlServer" 
     applicationName="/"/>`
share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You need to install the MySQL Connector binaries first for this to work.

http://dev.mysql.com/downloads/connector/net/

If after installation you still face problems, verify that the dll's are declared in machine.config file of the framework version that you're running.

share|improve this answer
    
Simple and sweet! Thanks. –  André Muniz May 23 at 11:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.