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. Web Development
  3. ASP.NET
  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 ASP.NET
sysadminhelp
4 Posts 4 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

    M W 2 Replies 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

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      I think that the path of one of assemblies that are using in your site is wrong.. For example: you are referencing the dll from C:\Program Files\AA\. but this path might not be available at your server.

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      S 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

        W Offline
        W Offline
        www Developerof NET
        wrote on last edited by
        #3

        you might have left some opening or closing brackets.Just check!!!! This is the only reason you r getting this error

        When you fail to plan, you are planning to fail.

        1 Reply Last reply
        0
        • M Michael Sync

          I think that the path of one of assemblies that are using in your site is wrong.. For example: you are referencing the dll from C:\Program Files\AA\. but this path might not be available at your server.

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          S Offline
          S Offline
          Sun Rays
          wrote on last edited by
          #4

          Hi,

          Michael Sync wrote:

          I think that the path of one of assemblies that are using in your site is wrong.. For example: you are referencing the dll from C:\Program Files\AA\. but this path might not be available at your server.

          He is right. So you can do one thing. Just make one folder in your application and name it as "DllFiles" and put all Dll's in this folder and give reference from this folder only. Its really a good idea to set Dll's. Hope it will help you.

          Thanks, Sun Rays To get something you must have to try once. My Articles

          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