Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法访问复合C1管理员_C#_.net_Asp.net Mvc_Razor_C1 Cms - Fatal编程技术网

C# 无法访问复合C1管理员

C# 无法访问复合C1管理员,c#,.net,asp.net-mvc,razor,c1-cms,C#,.net,Asp.net Mvc,Razor,C1 Cms,我在“CompositeC1”中完成了我的第一个生产站点,并试图将其发布到windows主机上的生产站点上,我无法进入管理面板。首先,会出现一个弹出窗口,其中包含一条与源代码html文本非常相似的javascript类型I“警报”消息。装载然后冻结,无法前进 查看显示的日志 System.IO.FileLoadException: Could not load file or assembly 'System.Web.Razor, Version=3.0.0.0, Culture=neutr

我在“CompositeC1”中完成了我的第一个生产站点,并试图将其发布到windows主机上的生产站点上,我无法进入管理面板。首先,会出现一个弹出窗口,其中包含一条与源代码html文本非常相似的javascript类型I“警报”消息。装载然后冻结,无法前进

查看显示的日志

 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年5月4日

现在出现这个错误


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


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

没有人知道这个问题?您有其他asp.net站点在服务器上工作吗?它是否安装了MVC?服务器上有什么版本的.net?不,第一个托管站点,真的,不知道。好问题…-.NET 4.00框架集成模式。机器上是否安装了asp.NET 4.5.1?我不知道。。。我将要求托管提供商支持人员查看上传的图片。确保安装了asp.net 4.5.1并返回。是否需要asp.net 4.5.1才能运行Composite?:|我的主机提供商不提供4.5.1。前端怎么可能工作而不是管理?