Viene visualizzato il seguente errore durante l'esecuzione dell'applicazione MVC 4 su IIS 7.5. Tuttavia, quando eseguo questa applicazione tramite Visual Studio non viene generato l'errore. Inoltre, ho provato a ospitare l'applicazione nel mio computer Uni, sembra che funzioni bene.Problema GAC per l'applicazione host su 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'
Ecco le assemblee si fa riferimento nel mio file web.config
<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>
Grazie che hanno funzionato. –
Ha funzionato anche per me. – twasbrillig
Ha funzionato anche per me. Grazie! – Sergiy