Monday, 15 September 2014

c# - The type or namespace name does not exists? (static class) -


I have just started to make my website (from the beginning of the empty project) and I am getting some errors, I'm really confused! error default.aspx

  & lt; % @ Page language = "C #" codefile = "default.aspx.cs" Inherits = "MonoLiteTech website.default"%> & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Title & gt; Monolit Technology & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt;% = Monolite Tech Website. Style. Testfield% & gt; & Lt; / Body & gt; & Lt; / Html & gt;  Style CST  Style.cs  (Build: Collect)  
  Namespace Monolite Tech. Website {public stable class style {public static string testfield = "monoilite technology"; }}  

Resolution hierarchy

solution hierarchy

Visual Studio: I also noticed that VS Style class and test-field members can view

enter image details here

I'm already a C # programmer (desktop) and I 'm sure, there is no problem with subscriber access I resume of the project, Clear solution and rebild project also what is wrong? I think it should be simple :)

Edit:

In the end I know what is wrong i output path to . << Code> to bin \ has changed back and it works. I really do not know why, but this is a solution for me, maybe someone can explain it to us later (I hope). And I think, starting from scratch is not always the best way :)


No comments:

Post a Comment