ASP.NET strange compilation error

后端 未结 20 694
刺人心
刺人心 2020-12-04 12:50

I don\'t know what\'s wrong with my machine, but it\'s a while that I\'m getting the following strange error from ASP.NET (for all my applications).

Compilat         


        
20条回答
  •  心在旅途
    2020-12-04 13:47

    OK, after days struggling with this issue, I finally fixed it.

    • Not by clearing ASP.NET temp
    • Not by reinstalling the .NET framework!

    Simple!

    • I changed the application pool identity from "Local system" to "ApplicationPoolIdentity"

    Apparently there was a permission error with my local system that the C# compiler (csc.exe) could not access some resources and source codes.

    In order to change your AppPool identity follow steps given here: http://learn.iis.net/page.aspx/624/application-pool-identities/

提交回复
热议问题