Hi, I downloaded the DotNetOpenAuth libs from nuget but get this error:
Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.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)
Description:An
unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:System.IO.FileLoadException: Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.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)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace:The following information can be helpful to determine why the assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' could not be loaded.
=== Pre-bind state information ===
LOG: User = me
LOG: DisplayName = DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
(Fully-specified)
From your error message, please make sure that the reference are in the same Version of the assimbly in the application. You could refernce on below thread which is similar to your issue, Exception from HRESULT: 0x80131040, it will help you to solve your
problem.
Your version is not same, This assembly does not match what was requested and therefore you get this error. Please reference on below thread, it will help you.
GorillaMann
Member
117 Points
332 Posts
Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 12, 2013 12:50 PM|LINK
Hi, I downloaded the DotNetOpenAuth libs from nuget but get this error:
Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.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)
Source Error:
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' could not be loaded.
Chen Yu - MS...
All-Star
21600 Points
2493 Posts
Microsoft
Re: Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 14, 2013 09:19 AM|LINK
Hi,
From your error message, please make sure that the reference are in the same Version of the assimbly in the application. You could refernce on below thread which is similar to your issue, Exception from HRESULT: 0x80131040, it will help you to solve your problem.
Please see: http://social.msdn.microsoft.com/Forums/eu/csharpgeneral/thread/0e82b5d2-e777-4c24-9e4d-9bc3f74cbaf7
Best Regards,
Feedback to us
Develop and promote your apps in Windows Store
GorillaMann
Member
117 Points
332 Posts
Re: Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 15, 2013 11:05 AM|LINK
In the app I'm referencing
packages\DotNetOpenAuth.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.Core.dll
, I installed via neget.
I don't know why the code is expecting 4.0.0 :(
GorillaMann
Member
117 Points
332 Posts
Re: Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 15, 2013 11:11 AM|LINK
The properties for the reference to DotNetOpenAuth.Core state:
Runtime Version v4.0.30319
Version 4.1.0.0
confusing :(
Chen Yu - MS...
All-Star
21600 Points
2493 Posts
Microsoft
Re: Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 16, 2013 02:42 AM|LINK
Hi,
Your version is not same, This assembly does not match what was requested and therefore you get this error. Please reference on below thread, it will help you.
Please see: http://stackoverflow.com/questions/215026/the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference
Thanks.
Feedback to us
Develop and promote your apps in Windows Store
GorillaMann
Member
117 Points
332 Posts
Re: Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 16, 2013 03:56 PM|LINK
thanks mate, looks pretty complex to fing the root cause :(
GorillaMann
Member
117 Points
332 Posts
Re: Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 17, 2013 04:44 PM|LINK
so I've read that link and found the 4.0.0 version here:
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Packages\DotNetOpenAuth.Core.4.0.0.12084\lib\net40-full
do I just delete it?
molly_c
Participant
1590 Points
401 Posts
Re: Could not load file or assembly DotNetOpenAuth.Core, Version=4.0.0.0
Jan 18, 2013 01:56 AM|LINK
Just follow what @Jon Skeet said, Find out where that file is and replace it with the right version.
http://stackoverflow.com/questions/215026/the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference
Molly
It's time to start living the life you are imagined.