dcsimg
Results 1 to 3 of 3

Thread: [RESOLVED] Error 0x80131040: Could not load file or assembly 'DotNetOpenAuth.Core...'

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2014
    Posts
    464

    Resolved [RESOLVED] Error 0x80131040: Could not load file or assembly 'DotNetOpenAuth.Core...'

    Hello

    How would I overcome this server error, please?

    Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Assembly Load Trace

    The following information can be helpful to determine why the assembly 'DotNetOpenAuth.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' could not be loaded.


    WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Stack Trace:

    [FileLoadException: Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
    Microsoft.AspNet.Membership.OpenAuth.PreApplicationStartCode.Start() +0

    [InvalidOperationException: The pre-application start initialization method Start on type Microsoft.AspNet.Membership.OpenAuth.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).]
    System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +611
    System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +138
    System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +163
    System.Web.Compilation.BuildManager.ExecutePreAppStart() +156
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +692

    [HttpException (0x80004005): The pre-application start initialization method Start on type Microsoft.AspNet.Membership.OpenAuth.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +658
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188
    Do I need to make changes to the Registry to rectify this?

    I don't use any VS 2017 Community tools such as 'membership' or anything like that.

    I do have a 'DotNetOpenAuth.Core' dll fine in the Bin folder.

    Thanks.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2014
    Posts
    464

    Re: Error 0x80131040: Could not load file or assembly 'DotNetOpenAuth.Core...'

    Hello

    Just to add that I have DotNetOpenAuth.Core.dll in Bin and DotNetOpenAuth.OAuth.Core" version="4.1.4.12333" targetFramework="net40" /> in packages.config.

    Not sure if that helps.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2014
    Posts
    464

    Re: Error 0x80131040: Could not load file or assembly 'DotNetOpenAuth.Core...'

    As per this discussion https://stackoverflow.com/questions/...topenauth-core I have tried to remove

    Code:
    <package id="DotNetOpenAuth.Core" version="4.1.4.12333" targetFramework="net40" />
    but I get an error in Package Manager Console when I select: Uninstall-Package DotNetOpenAuth.core because 'DotNetOpenAuth.OAuth.Core.4.1.4.12333,
    DotNetOpenAuth.OpenId.Core.4.1.4.12333' depend on it.

    Should I simply remove 'DotNetOpenAuth.OAuth.Core.4.1.4.12333, and DotNetOpenAuth.OpenId.Core.4.1.4.12333' as well as DotNetOpenAuth.Core in order to correct the error I am getting?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width