'/'应用程序中的服务器错误。视窗Serrver 2012 IIS 8

问题描述:

我从开发者收到一个网页,当我尝试使用IIS 8在我的新安装的Windows Server 2012的安装它,我得到以下错误:'/'应用程序中的服务器错误。视窗Serrver 2012 IIS 8

Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 

我试图下载Windows SDK我的笔记本电脑,然后复制到gacutil.exe服务器并运行:

C:\tmp>gacutil.exe /I C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.WebPages.Razor.dll 

但我仍然得到同样的错误。任何人都熟悉这个?

我不是.NET开发人员,所以曾经。我不知道该怎么做。我需要在Windows服务器上安装其他东西吗?

您错过了Web应用程序的bin目录中的System.Web.WebPges.Razor文件。除非该版本安装在GAC中,否则请尝试将其副本放在bin目录中,以便应用程序可以访问它。

+0

谢谢!我必须粘贴dll,包括一些其他的,然后它工作! – David 2013-05-06 14:12:40