解析错误MVC

时间:2014-07-02 05:46:05

标签: asp.net-mvc asp.net-mvc-3 asp.net-mvc-5

我的项目MVC3有问题。我已经为版本2.8.50313.31更新了NuGet Package Manager,并在Console中更新了Install-Package Bootstrap。我在MVC 5.1中升级项目后。

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="3.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.WebPages" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  </dependentAssembly>
</assemblyBinding>

我的项目中出现错误之后就没有了。

使用区块缺少结束&#34;}&#34;字符。 确保你有匹配的&#34;}&#34;字符 对于所有&#34; {&#34;这个区块内的字符,并没有&#34;}&#34;字符被解释为标记。

String 43: </script>
String 44: 
String 45: @using (Html.BeginForm()) {
String 46: @Html.ValidationSummary()
String 47: 

提前感谢您的所有帮助

0 个答案:

没有答案