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. namespace problem????

namespace problem????

Scheduled Pinned Locked Moved ASP.NET
questionhelpannouncement
3 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.
  • R Offline
    R Offline
    RSArockiam
    wrote on last edited by
    #1

    i just converted a project from 1.1 to 2.0 version and i try to compile its having problem... i have one cs file in subdirectory and the root directory i am using this class file into an aspx file, but both file have same namespace. But the compiler says, "the type or namespace name ... could not be found(are you missing a using directive or an assembly reference?)" Why? what is the problem here..? Thanks in Advance Regards R.Arockiapathinathan

    M 1 Reply Last reply
    0
    • R RSArockiam

      i just converted a project from 1.1 to 2.0 version and i try to compile its having problem... i have one cs file in subdirectory and the root directory i am using this class file into an aspx file, but both file have same namespace. But the compiler says, "the type or namespace name ... could not be found(are you missing a using directive or an assembly reference?)" Why? what is the problem here..? Thanks in Advance Regards R.Arockiapathinathan

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      That's because of the new compilation model in the ASP.NET 2.0. In this case, you simply put the source code file in the subfolder to the shared folder App_Code. For more information, see ASP.NET Compilation Overview [^]

      R 1 Reply Last reply
      0
      • M minhpc_bk

        That's because of the new compilation model in the ASP.NET 2.0. In this case, you simply put the source code file in the subfolder to the shared folder App_Code. For more information, see ASP.NET Compilation Overview [^]

        R Offline
        R Offline
        RSArockiam
        wrote on last edited by
        #3

        thanks for the reply. After moving the cs file into app_code folder, its working fine. Regards R.Arockiapathinathan

        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