-2
이 오류에 대해 많은 질문을 발견했습니다. 거의 모든 것을 시도했지만, 아무 것도 도움이되지 않습니다.ASP.NET 웹 사이트 어셈블리 바인딩 리디렉션이 내 컴퓨터에서 작동하지 않습니다.
나는 시각 스튜디오 2013 업데이트 3에서 새로운 웹 프로젝트를 만들고 있는데 여전히 오류가 발생합니다.
동일한 유형의 문제는 OWIN을 2.1.0에서 3.0.0으로 업데이트 할 때 발생합니다.
이것은 마법사에서 생성 한 내 Web.config 파일입니다.
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-WebApplication1-20140829051636.mdf;Initial Catalog=aspnet-WebApplication1-20140829051636;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="3.0.0.0"/>
<add key="webpages:Enabled" value="false"/>
<add key="ClientValidationEnabled" value="true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
</appSettings>
<system.web>
<authentication mode="None"/>
<compilation debug="true" targetFramework="4.5.1"/>
<httpRuntime targetFramework="4.5.1"/>
</system.web>
<system.webServer>
<modules>
<remove name="FormsAuthentication"/>
</modules>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-5.2.0.0" newVersion="5.2.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
3 가지 프로젝트에서 같은 문제가 발생했습니다. 내 생각에 NET은 리디렉션을 무시합니다.
도와주세요.
동일한 솔루션의 프로젝트에 내 웹 앱에서 참조 된 것보다 높은 버전의 누젠트 패키지가 설치되어있는 경우이 작업을 수행했습니다. 모든 패키지가 동기화되어 있는지 확인하고 바인딩 리디렉션에 지정된 newVersion보다 높은 버전의 패키지를 참조하는 프로젝트가 없는지 확인하는 것이 좋습니다. –
@Ben 개인 인증을 사용하여 ASP.NET 웹 마법사에서 생성 한 초기 프로젝트입니다. 두 번 확인 된 참조, 모든게 맞습니다. –