0
我正在嘗試將網頁添加到已放置在IIS 7.5上的網站。我搜索了一個試圖更改.config文件的解決方案,添加了dll文件。當我將它作爲自己的網站運行時,網頁運行良好,但是當我將其自己的url設置爲已建立的網站時會產生錯誤。如何在DotNetNuke上運行.cshtml
以下是錯誤:
"The value for the 'compilerVersion' attribute in the provider options must be 'v4.0'
or later if you are compiling for version 4.0 or later of the .NET Framework. To
compile this Web application for version 3.5 or earlier of the .NET Framework,
remove the 'targetFramework' attribute from the <compilation> element of the
Web.config file. 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.Configuration.ConfigurationErrorsException: The value for
the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if
you are compiling for version 4.0 or later of the .NET Framework. To compile this
Web application for version 3.5 or earlier of the .NET Framework, remove the
'targetFramework' attribute from the <compilation> element of the Web.config file."
'.cshtml'本身不是「網頁」。這是一個MVC視圖。它不會作爲URL解析。 –