Files has invalid value "public partial class Form1 : Form" The path is not of a legal form.

Hi

When i try to compile or run my program i got this error message.

Files has invalid value "public partial class Form1 : Form". The path is not of a legal form.

It is ok to ignore and the program runs fine. But the problem is that

i cant publish the program.

Regards Fredrik



Answer this question

Files has invalid value "public partial class Form1 : Form" The path is not of a legal form.

  • Bernie44601

    What do you meant by "i cant publish the program"

    If you are talking about a "Web Form", then it should be inherits for System.Web.UI.Page

    public partial class WebForm1 : System.Web.UI.Page
    {
    }

    If your problem is different than above, please explain it little bit more


  • Files has invalid value "public partial class Form1 : Form" The path is not of a legal form.