Click here to Skip to main content
14,743,899 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii,

I am using dot net framework 4.0

I am using custom providers , but when i logged in using gmail it throws me an error saying


Server Error in '/' Application.
Could not load file or assembly 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:


Line 86: // User has logged in with provider successfully
Line 87: // Check if user is already registered locally
Line 88: if (OpenAuth.Login(authResult.Provider, authResult.ProviderUserId, createPersistentCookie: false))
Line 89: {
Line 90: RedirectToReturnUrl();


Source File: e:\E-books\Torakami Technologies\AutoProvidersSparepartsTrial\AutoSpareParts\AutoSpareParts\Account\RegisterExternalLogin.aspx.cs Line: 88

Assembly Load Trace: The following information can be helpful to determine why the assembly 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///E:/E-books/Torakami Technologies/AutoProvidersSparepartsTrial/AutoSpareParts/AutoSpareParts/
LOG: Initial PrivatePath = E:\E-books\Torakami Technologies\AutoProvidersSparepartsTrial\AutoSpareParts\AutoSpareParts\bin
Calling assembly : Microsoft.AspNet.Membership.OpenAuth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\E-books\Torakami Technologies\AutoProvidersSparepartsTrial\AutoSpareParts\AutoSpareParts\web.config
LOG: Using host configuration file: C:\Users\Nilesh\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL file:///C:/Users/Nilesh/AppData/Local/Temp/Temporary ASP.NET Files/root/bdf53e2f/603a42fd/EntityFramework.DLL.
LOG: Attempting download of new URL file:///C:/Users/Nilesh/AppData/Local/Temp/Temporary ASP.NET Files/root/bdf53e2f/603a42fd/EntityFramework/EntityFramework.DLL.
LOG: Attempting download of new URL file:///E:/E-books/Torakami Technologies/AutoProvidersSparepartsTrial/AutoSpareParts/AutoSpareParts/bin/EntityFramework.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Major Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.


Stack Trace:


[FileLoadException: Could not load file or assembly 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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.EFOpenAuthMembershipDatabase.GetMembershipUserName(String providerName, String providerUserId, Boolean updateLastUsed) +0
Microsoft.AspNet.Membership.OpenAuth.OpenAuthManager.Login(HttpContextBase context, String providerName, String providerUserId, Boolean createPersistentCookie) +285
Microsoft.AspNet.Membership.OpenAuth.OpenAuth.Login(String providerName, String providerUserId, Boolean createPersistentCookie) +109
AutoSpareParts.Account.RegisterExternalLogin.ProcessProviderResult() in e:\E-books\Torakami Technologies\AutoProvidersSparepartsTrial\AutoSpareParts\AutoSpareParts\Account\RegisterExternalLogin.aspx.cs:88
AutoSpareParts.Account.RegisterExternalLogin.Page_Load() in e:\E-books\Torakami Technologies\AutoProvidersSparepartsTrial\AutoSpareParts\AutoSpareParts\Account\RegisterExternalLogin.aspx.cs:39
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9585477
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440

I tried to upgrade assembly to 6.0 but still get the same issue ..

I dongrade to 4.3.1

here is my web.config file section currently

<assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentassembly>
<assemblyidentity name="DotNetOpenAuth.Core" publickeytoken="2780ccd10d57b246">
<bindingredirect oldversion="1.0.0.0-4.0.0.0" newversion="4.1.0.0">

<dependentassembly>
<assemblyidentity name="DotNetOpenAuth.AspNet" publickeytoken="2780ccd10d57b246">
<bindingredirect oldversion="0.0.0.0-4.1.0.0" newversion="4.1.0.0">

<dependentassembly>
<assemblyidentity name="EntityFramework" publickeytoken="b77a5c561934e089" culture="neutral">
<bindingredirect oldversion="0.0.0.0-4.3.1.0" newversion="4.3.1.0">



but still getting same error .please suggest
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900