Tôi nhận được lỗi sau khi chạy ứng dụng MVC 4 của tôi trên IIS 7.5. Tuy nhiên, khi tôi chạy ứng dụng này thông qua studio trực quan nó không ném lỗi. Ngoài ra, tôi đã cố gắng lưu trữ các ứng dụng trong máy tính Uni của tôi có vẻ như nó hoạt động tốt.Vấn đề GAC không thể lưu trữ ứng dụng trên IIS
Compiler Error Message: CS0433: The type 'System.Web.Mvc.WebViewPage<TModel>' exists in both 'c:\windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll' and 'c:\windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\v4.0_3.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll'
Dưới đây là các hội đồng tham chiếu trong tập tin web.config của tôi
<system.web>
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
</compilation>
</system.web>
Cảm ơn mà làm việc. –
Làm việc cho tôi. – twasbrillig
Làm việc cho tôi. Cảm ơn! – Sergiy