ASP.NET strange compilation error

后端 未结 20 700
刺人心
刺人心 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:32

    I got this kind of error too, but the problem was very different explained here. So in my case I got compiler error from temp file that I was using non existing namespace like:

    using ImaginaryNamespaces;
    

    I was sure that code "using ImaginaryNamespaces;" dosn't exists in my solution so of course I doubt cache problem. Finally I figured out that the temporary file was some generated source file from configs. My Views/Web.Config had a line:

    
    

    After removing this it worked. So I recommend to make sure that there is not any data in configs that might be related to the compiler error.

提交回复
热议问题