A namespace does not directly contain members such as fields or methods"
-
Hello All, I am getting one error on server "A namespace does not directly contain members such as fields or methods" When i am requesting this page on server. While page is working fine on Localhost. Can any one suggest me what kind of error is this and why this error is coming. Thanks and Regards Avesh Agarwal
-
Hello All, I am getting one error on server "A namespace does not directly contain members such as fields or methods" When i am requesting this page on server. While page is working fine on Localhost. Can any one suggest me what kind of error is this and why this error is coming. Thanks and Regards Avesh Agarwal
From some google results, check to make sure your namespace declaration is in lowercase. Example: namespace myproject Bad Example: Namespace myproject Remember that C# is case-sensitive.
Just because we can; does not mean we should.