When I try to execute a certain action on in my web app, I get the error Could not load file or assembly 'WebAccounts, Version=1.0.5.0, ...' or one of its dependencies. My question is how do I figure out what's looking for version WebAccounts 1.0.5.0?

I just deployed a new version of the web app and its supporting assemblies. The app formerly used WebAccounts 1.0.5.0 but now references 1.0.6.0. It also references another assembly, ShoppingCart.dll, which itself references WebAccounts 1.0.6.0.

References:

MobileMVC.dll
--WebAccounts.dll 1.0.6.0
--ShoppingCart 1.0.2.1
  --WebAccounts.dll 1.0.6.0

In response to the error, I ensured both my MobileMVC.dll and ShoppingCart.dll Visual Studio projects had references to WebAccounts.dll 1.0.6.0, rebuilt and redeployed them. I then verified references to WebAccounts in the web.config also pointed to 1.0.6.0. I still got the error. I then deleted any copies of MobileMVC and ShoppingCart from the temporary asp.net folder, but still get the error. I've looked at the assembly binding logs and they seem to be loading the assemblies from the bin as expected. The error tells me the calling assembly is MobileMVC.dll and even gives me the line of code in the Stack Trace. But I built that assembly referencing 1.0.6.0. I know WebAccounts.dll 1.0.5.0 can't be found; it's not supposed to be. How can I find out why it's being looked for?

Edit: I've also verified there are no binding redirects in the web.config or machine.config.

Related posts

Recent Viewed