I would like to be able to run unit tests on the membership provider since I have wrapped it in my own classes. However I get the following error:
Failed: System.TypeLoadException : Could not load type 'Devart.Data.MySql.Web.Providers.MySqlMembershipProvider' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Can I run unit tests on the the Membership Provider?
Here is my app.config file:
This is running in a seperate dll and I am using nunit.
Membership Provider and Unit Testing
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Please try adding references to the Devart assemblies in your application. For example, you may add the following to the compilation.assemblies node of web.config:
(set the versions of assemblies that you are using instead of 5.70.120 and 5.0.81).
Please tell us if the problem persists.
Code: Select all
Please tell us if the problem persists.
I get the same error after trying this
Here is my web.config file and the error:
....
......
Error:
failed: System.TypeLoadException : Could not load type 'Devart.Data.MySql.Web.Providers.MySqlMembershipProvider' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
....
......
Error:
failed: System.TypeLoadException : Could not load type 'Devart.Data.MySql.Web.Providers.MySqlMembershipProvider' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Please check that you have proper entry for dotConnect for MySQL in the node of your machine.config. Please see this entry in the Deployment section of our documentation:
http://www.devart.com/dotconnect/mysql/ ... yment.html
Also, you may send us a test project so that we are able to investigate the problem in more details.
http://www.devart.com/dotconnect/mysql/ ... yment.html
Also, you may send us a test project so that we are able to investigate the problem in more details.