This program is blocked by weblog group policy. For more information, contact your system administrator. “Wrong.


Today, after publishing a test website to Alibaba cloud virtual machine, visit the website post“Group policy blocked this program. For more information, contact your system administrator.“Mistake. As follows:

But this error is not available when debugging locally.

After investigation, the original culprit wasMicrosoft.CodeDom.Providers.DotNetCompilerPlatform This package.

terms of settlement:

Open nuget package management tool.

To be installedDotNetCompilerPlatform Unload.

Generate the compilation and republish it.

More content can be found on my blog: