error CS0103 in ASP.NET

后端 未结 3 1289
野趣味
野趣味 2021-01-27 23:17

Hello when I compile a ASP.NET C# project using file Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe I am getting an error as \"ERROR CS0103: The name (forms name) cannot be

相关标签:
3条回答
  • 2021-01-27 23:18

    You forgot to add designer file to your code file.

    0 讨论(0)
  • 2021-01-27 23:40

    As seen in the MSDN

    An attempt was made to use a name that does not exist in the class, namespace, or scope. Check the spelling of the name and check your using statements and assembly references to make sure that the name you are trying to use is available. One common mistake is to declare a variable within a loop or a try block and then attempt to access it from an enclosing code block or another code block.

    0 讨论(0)
  • 2021-01-27 23:44

    Use compile.bat file to compile all the files and make sure that designer files are included. This error occurs only when designer file is not present in the context.

    0 讨论(0)
提交回复
热议问题