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. Error: The virtual path '/includes/utils/StateDropDown.ascx' maps to another application, which is not allowed. [modified]

Error: The virtual path '/includes/utils/StateDropDown.ascx' maps to another application, which is not allowed. [modified]

Scheduled Pinned Locked Moved ASP.NET
helpquestionvisual-studio
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.
  • M Offline
    M Offline
    Mark J Miller
    wrote on last edited by
    #1

    I have an aspx page in a project that was recently converted from VS 2003 to VS 2005. The page contains a UserControl which is located w/in the same application. Here's the file structure: /includes/parent1/parent2/EditProfile.aspx /includes/utils/StateDropDown.ascx And I am getting the following error message from the VS compiler (not from the web because I can't compile the site): The virtual path '/includes/utils/StateDropDown.ascx' maps to another application, which is not allowed. The project is file based, not http or ftp and there are no virtual directories in the project, so all directories w/in the project are in the same application. Why am I getting this error, and how can I fix it? Please help! I've looked all over the web and all the related topics seem to relate to dynamically loading UserControls. The UserControl in question is added to the ASPX page using: <%@ Register TagPrefix="uc1" TagName="StateDropDown" Src="/includes/utils/StateDropDown.ascs" %> Thanks, Mark -- modified at 17:37 Thursday 21st June, 2007

    C 1 Reply Last reply
    0
    • M Mark J Miller

      I have an aspx page in a project that was recently converted from VS 2003 to VS 2005. The page contains a UserControl which is located w/in the same application. Here's the file structure: /includes/parent1/parent2/EditProfile.aspx /includes/utils/StateDropDown.ascx And I am getting the following error message from the VS compiler (not from the web because I can't compile the site): The virtual path '/includes/utils/StateDropDown.ascx' maps to another application, which is not allowed. The project is file based, not http or ftp and there are no virtual directories in the project, so all directories w/in the project are in the same application. Why am I getting this error, and how can I fix it? Please help! I've looked all over the web and all the related topics seem to relate to dynamically loading UserControls. The UserControl in question is added to the ASPX page using: <%@ Register TagPrefix="uc1" TagName="StateDropDown" Src="/includes/utils/StateDropDown.ascs" %> Thanks, Mark -- modified at 17:37 Thursday 21st June, 2007

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Put a ~ at the front of the path, this maps to your application root. Or, use a relative path.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      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