每当我尝试运行我的网络表单应用程序时,我都会收到此错误消息。
无法加载文件或程序集“DotNetOpenAuth.Core,Version = 4.1.0.0, Culture = neutral,PublicKeyToken = 2780ccd10d57b246'或其中一个 依赖。系统找不到指定的文件。
我在程序集绑定日志中获得了这些细节:
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\IIS Express\iisexpress.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = DotNetOpenAuth.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
(Fully-specified)
LOG: Appbase = file:///E:/MyApplication/
LOG: Initial PrivatePath = E:\My\RE Subversion\My Application V2\MyApplication\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:\\MyApplication\web.config
LOG: Using host configuration file: C:\Users\User\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: DotNetOpenAuth.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
LOG: Attempting download of new URL file:///C:/Users/User/AppData/Local/Temp/Temporary ASP.NET Files/vs/fd2e9b7a/f0d1e515/DotNetOpenAuth.Core.DLL.
LOG: Attempting download of new URL file:///C:/Users/User/AppData/Local/Temp/Temporary ASP.NET Files/vs/fd2e9b7a/f0d1e515/DotNetOpenAuth.Core/DotNetOpenAuth.Core.DLL.
LOG: Attempting download of new URL file:///E://MyApplication/bin/DotNetOpenAuth.Core.DLL.
LOG: Attempting download of new URL file:///E://MyApplication/bin/DotNetOpenAuth.Core/DotNetOpenAuth.Core.DLL.
LOG: Attempting download of new URL file:///C:/Users/User/AppData/Local/Temp/Temporary ASP.NET Files/vs/fd2e9b7a/f0d1e515/DotNetOpenAuth.Core.EXE.
LOG: Attempting download of new URL file:///C:/Users/User/AppData/Local/Temp/Temporary ASP.NET Files/vs/fd2e9b7a/f0d1e515/DotNetOpenAuth.Core/DotNetOpenAuth.Core.EXE.
LOG: Attempting download of new URL file:///E:/MyApplication/bin/DotNetOpenAuth.Core.EXE.
LOG: Attempting download of new URL file:///E:/MyApplication/bin/DotNetOpenAuth.Core/DotNetOpenAuth.Core.EXE.
我最近更新了我的实体框架,导致我重新安装了Microsoft.ASPNET.Membership.OpenAuth,但是后来一切似乎都运行良好,不知道我做了什么导致了这个错误。
以下是我web.config
的详细信息:
<dependentAssembly>
<assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" />
<bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
答案 0 :(得分:0)
我最终从软件包管理器控制台安装了软件包。