I've started using dapper to connect to SQL database. My application works fine when I run from within my c# application. Application simply runs a select statement on a local sqlexpress 2012 database. It returns the required data. When I place my dapper code into a service and host the service on IIS7 I get an error: Could not load file or assembly 'myapplication version = 1.0.0.0, Culture=neutral, PublicKey Token=null' or one of its dependencies. The system cannot find the file specified.
Previously I used Linq to SQL for the same database query and it works fine when hosted on IIS7. I expected dapper to work as I simply changed the code in the WCFservice.cs file and built the application. IIS7 Application Pool is ASP.Net v4.0
Any help appreciated.