Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

3rd level of referenced dll is not being copied to MVC bin folder

$
0
0

My question is regarding assembly references. I'm running into the following error: "Failed to find or load the registered .Net Framework Data Provider."

This error tells me that it couldn't find the Mysql.data.dll. I'm building a solution with MVC 5 project like this:

- HairSalon.Presentation.UI (MVC Project)

  -- HairSalon.Infrastructure.IoC (referenced project)

- HairSalon.Infrastructure.IoC (Project)

 -- HairSalon.Infrastructure.Data (referenced project)

- HairSalon.Infrastrucutre.Data (Project)

 -- MySql.Data (referenced dll)

So, when I compile HairSalon.Presentation.UI (the main MVC project), all projects are compiled, however, the MySql.Data is not copied into the bin folder of the web site, which causes the error I posted.

Why is that? Why, the MySql.Data is not copied? the MVC project is not referencing it (and it shouldn't), but it depends on it indirectly, because Presentation.UI depends on Infrastructure.IoC that depends on Infrastructure.Data that depends on MySql.Data.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>