Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. A namespace does not directly contain members such as fields or methods"

A namespace does not directly contain members such as fields or methods"

Scheduled Pinned Locked Moved C#
sysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aavesh Agarwal
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • A Aavesh 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

      K Offline
      K Offline
      KaptinKrunch
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups