gpt4 book ai didi

iis - 无法在 IIS7 上找到 CodeDom Provider

转载 作者:行者123 更新时间:2023-12-03 00:24:21 49 4
gpt4 key购买 nike

我已在 IIS 上添加了一个站点,但当我尝试访问默认页面时,出现以下错误:

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.

Source Error:


Line 12: <system.codedom>
Line 13: <compilers>
Line 14: <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
Line 15: <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
Line 16: </compilers>

我是否需要使用 nuget 安装“Microsoft.CodeDom.Providers.DotNetCompilerPlatform”包才能使其正常工作,还是有什么不同?

最佳答案

您可以从 web.config 注释掉整个 System.CodeDom 部分。WebApplication 项目将具有 CodeDom 部分,而 WebSite 项目则不会。将其注释掉,它应该开始工作。

来源: http://www.codeproject.com/Questions/1034471/Unable-to-run-ASP-net-pages-on-web-server

关于iis - 无法在 IIS7 上找到 CodeDom Provider,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36196096/

49 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com