简体   繁体   中英

Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform or one of its dependencies. Access is denied

I have following error:

Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=xyz' or one of its dependencies. Access is denied

Already i am having latest version of Microsoft.CodeDom.Providers.DotNetCompilerPlatform

How to resolve it? i am having error as access denied not as could not be located

我有 VS-2015 Update 3,但我的解决方案是授予 IIS_IUSRS 用户访问“C:\\Users\\Aurelio\\Documents\\Visual Studio 2015\\WebSites”中 Web 应用程序文件夹的权限

I recently faced issue and the problem was this: DotNetCompilerPlatform's authorization property setting was changed somehow,

so I opened bin folder, right click to open property -> go to security -> allow all permission and apply.

I also did the same thing for Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll and Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml, restarted IIS and issue was resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM