Oct 10, 2011 06:37 AM|BarryC|LINK
I configured my website to run under IIS and that went fine, no problems locally. I also created a parameterless constructor for my WinesController but I kept getting the same error. I then started to gradually remove the dependencies required to initialize
the objects in question. First the data context for the repositories with no success. Then the WinesController for the repositories, still no success. Locally, with all changes made, everything still runs fine.
So I'm pretty sure it's not a permissions issue or a parameterless constructor problem. And seeing as my other entity model works fine on my host web server (without dependency injection) I don't think it's a versioning problem. In fact, I'm thinking that
it also doesn't have anything to do with StructureMap either. I think I must have a difference in my database/table definitions between my local MySql server and the server on my host. I haven't tried running my website locally against my hosted MySql database,
I'm going to give that a shot, hoping that I get the same error.