Could not load file or assembly 'DotNetOpenAuth.Core

前端 未结 19 803
太阳男子
太阳男子 2020-12-04 17:22

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         


        
相关标签:
19条回答
  • 2020-12-04 17:59

    I was able to resolved it on my end by removing Microsoft.AspNet.Membership.OpenAuth

    0 讨论(0)
  • 2020-12-04 18:00

    By installing the following two packages I resolved this problem on VS2012 Professional Update 4 RC:

    1. Open the Package Manager Console from the Menu:

      Tools| Library Package Manage | Package Manager Console

    2. Install-Package DotNetOpenAuth.AspNet

    3. Install-Package Microsoft.AspNet.WebHelpers

    Hope this helps for you!!!

    0 讨论(0)
  • 2020-12-04 18:01

    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.

    0 讨论(0)
  • 2020-12-04 18:01

    Simply remove BIN folder from wwwroot, and publish again.

    0 讨论(0)
  • 2020-12-04 18:05

    Remove any Microsoft.Web.WebPages.OAuth dependencies everywhere in your projects.

    0 讨论(0)
  • 2020-12-04 18:06

    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.

    File System Publishing Settings

    0 讨论(0)
提交回复
热议问题