gpt4 book ai didi

azure - 发布 Azure Web 应用程序 - 编译错误

转载 作者:行者123 更新时间:2023-12-03 03:12:07 27 4
gpt4 key购买 nike

我已将我的网站作为 Web 应用程序发布到 Azure。如果我在浏览器中调用该 url,则会出现以下异常:

Compiler Error Message: The compiler failed with error code -532462766.

Details >> D:\Windows\system32>D:\home\site\wwwroot\bin\roslyn\csc.exe ..

事件查看器提供了更多详细信息:

Event code: 3007
Event message: A compilation error has occurred.
Event time: 3/8/2016 1:35:14 PM
Event time (UTC): 3/8/2016 1:35:14 PM
Event ID: 477178e2e625406e9be094df085f6bc9
Event sequence: 3
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/540489099/ROOT-1-131019177071229326
Trust level: Full
Application Virtual Path: /
Application Path: D:\home\site\wwwroot\
Machine name: RD000D3AB25B42

Process information:
Process ID: 14752
Process name: w3wp.exe
Account name: IIS APPPOOL\mySite

Exception information:
Exception type: HttpCompileException
Exception message: External component has thrown an exception. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) at System.Web.Compilation.BuildManager.CompileGlobalAsax() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Compilation.BuildManager.CallAppInitializeMethod() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)


Request information:
Request URL: http://mySite.azurewebsites.net/
Request path: /
User host address: ...
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\mySite

Thread information:
Thread ID: 9
Thread account name: IIS APPPOOL\mySite
Is impersonating: False
Stack trace: at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) at System.Web.Compilation.BuildManager.CompileGlobalAsax() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Compilation.BuildManager.CallAppInitializeMethod() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Custom event details:

我尝试过

  • 重建项目并重新发布
  • 通过 Azure 门户重新启动网站
  • 对网站进行了缩放,以确保真正的“新鲜”状态

如何解决这个问题?

最佳答案

在“设置”>“文件发布”选项中选择删除目标位置的其他文件。因为一些旧的 dll 可能会阻止应用程序启动(版本控制问题等)。

关于azure - 发布 Azure Web 应用程序 - 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35869225/

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