无法访问Composite C1 Admin

时间:2014-04-04 03:29:44

标签: c# .net asp.net-mvc razor c1-cms

我在“复合c1”中完成了我的第一个生产网站,并尝试将其发布到Windows主机上的生产网站上,我无法进入管理面板。首先弹出一个带有类型I“alert”消息的弹出窗口,其中javascript与源代码html文本非常相似。加载然后冻结并且不会前进。

查看它出现的日志。

 System.IO.FileLoadException: Could not load file or assembly
 'System.Web.Razor, Version=3.0.0.0, Culture=neutral,
 PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The
 located assembly's manifest definition does not match the assembly
 reference. (Exception from HRESULT: 0x80131040) File name:
 'System.Web.Razor, Version=3.0.0.0, Culture=neutral,
 PublicKeyToken=31bf3856ad364e35'


 === Pre-bind state information === LOG: DisplayName = System.Web.Razor, Version=3.0.0.0, Culture=neutral,
 PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase =
 file:///C:/WebSiteProduction/Website/ LOG: Initial PrivatePath =
 C:\WebSiteProduction\Website\bin Calling assembly : RazorEngine,
 Version=3.4.1.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a.
 === LOG: This bind starts in default load context. LOG: Using application configuration file:
 C:\WebSiteProduction\Website\web.config LOG: Using host configuration
 file: C:\Users\Parallax\Documents\IISExpress\config\aspnet.config LOG:
 Using machine configuration file from
 C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
 LOG: Post-policy reference: System.Web.Razor, Version=3.0.0.0,
 Culture=neutral, PublicKeyToken=31bf3856ad364e35 LOG: Attempting
 download of new URL
 file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary
 ASP.NET Files/root/6da1f297/5f8c113e/System.Web.Razor.DLL. LOG:
 Attempting download of new URL
 file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary
 ASP.NET
 Files/root/6da1f297/5f8c113e/System.Web.Razor/System.Web.Razor.DLL.
 LOG: Attempting download of new URL
 file:///C:/WebSiteProduction/Website/bin/System.Web.Razor.DLL. WRN:
 Comparing the assembly name resulted in the mismatch: Major Version
 ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing
 terminated. AttributeBasedApplicationStartupHandler | INNER    Error 
    2014-04-04 00:11:52.28   System.Exception: Failed to load assebmly
 'RazorEngine, Version=3.4.1.0, Culture=neutral,
 PublicKeyToken=9ee697374c7e744a' ---> System.IO.FileLoadException:
 Could not load file or assembly 'System.Web.Razor, Version=3.0.0.0,
 Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
 dependencies. The located assembly's manifest definition does not
 match the assembly reference. (Exception from HRESULT: 0x80131040)   
 --- End of inner exception stack trace ---

更新时间:2014年4月4日

现在出现此错误。

ss

1 个答案:

答案 0 :(得分:0)

机器上是否安装了asp.net 4.5.1?

您需要安装它以使Razor的元素正常工作。