I get the following error when I start my asp net mvc 4 application:
Could not load file or assembly \'DotNetOpenAuth.Core, Version=4.0.0.0,
Culture=neutral
I was able to resolved it on my end by removing Microsoft.AspNet.Membership.OpenAuth
By installing the following two packages I resolved this problem on VS2012 Professional Update 4 RC:
Open the Package Manager Console from the Menu:
Tools| Library Package Manage | Package Manager Console
Install-Package DotNetOpenAuth.AspNet
Hope this helps for you!!!
In case this helps anyone - I was unable to uninstall the DotNetOpenAuth components through Nuget, so I resolved this error by deleting them from the references list directly and then re-installing dotnetopenauth through nuget.
Simply remove BIN folder from wwwroot, and publish again.
Remove any Microsoft.Web.WebPages.OAuth dependencies everywhere in your projects.
In my case the MVC4 application was running fine in the VS2012 debugger, but I was getting the "Could not load file or assembly 'DotNetOpenAuth.Core'" error when I publish the application on the server.
Checking the "Delete all existing files prior to publish" checkbox on the settings tab of Publish Web window solved the issue.