madhu donkana
madhu donkana

Reputation: 49

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

Upvotes: 3

Views: 7817

Answers (2)

KingJinho
KingJinho

Reputation: 763

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.

Upvotes: 0

Aurelio Jaraiz
Aurelio Jaraiz

Reputation: 71

I had the VS-2015 Update 3, but the solution for me was to give permission to the IIS_IUSRS user to the folder of the Web Application in "C:\Users\Aurelio\Documents\Visual Studio 2015\WebSites"

Upvotes: 6

Related Questions