C# ASP.NET网站程序集绑定重定向已在我的计算机上停止工作
我发现了一大堆关于这个错误的问题。几乎什么都试过了,但什么都没用 我正在我的visual studio 2013更新3中创建新的web项目,但它仍然给我带来错误 当我将OWIN从2.1.0更新到3.0.0时,也会出现同样的问题 这是向导生成的Web.config文件C# ASP.NET网站程序集绑定重定向已在我的计算机上停止工作,c#,asp.net,web-config,assembly-binding-redirect,C#,Asp.net,Web Config,Assembly Binding Redirect,我发现了一大堆关于这个错误的问题。几乎什么都试过了,但什么都没用 我正在我的visual studio 2013更新3中创建新的web项目,但它仍然给我带来错误 当我将OWIN从2.1.0更新到3.0.0时,也会出现同样的问题 这是向导生成的Web.config文件 <?xml version="1.0"?> <configuration> <configSections> </configSections> <connectio
<?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个不同的项目中遇到了同样的问题。
我的意见是,网络只是忽略了我的重定向
请帮帮我 我终于解决了这个问题
我的开发路径名为#dev。
将“#dev”改为“dev”,效果良好
我认为#是.NET程序集绑定重定向系统的一个特殊字符。当同一解决方案中的一个项目安装了一个nuget软件包,该软件包的版本高于我的web应用程序中引用的版本时,我就遇到了这种情况。可能值得检查您的所有程序包是否同步,以及是否没有项目引用的程序包版本高于绑定重定向中指定的新版本。@Ben这是由ASP.NET web向导生成的具有单独身份验证的初始项目。仔细检查参考资料,一切正常。