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. HttpException The file '/MyControls/Web/GUI/Controls/PageHead.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)

HttpException The file '/MyControls/Web/GUI/Controls/PageHead.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)

Scheduled Pinned Locked Moved ASP.NET
csharpdotnetvisual-studiodesignsysadmin
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.
  • T Offline
    T Offline
    thomasa
    wrote on last edited by
    #1

    Hey. I get this exeption on my Vista machine, this works fine on my XP machine. On both machines I use Visual Studio 2008, and both uses .Net Framework 3.5.

    <!-- HttpException The file '/MyControls/Web/GUI/Controls/PageHead.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile)
    at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath)
    at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)
    at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive)
    at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive)
    at System.Web.UI.PageParser.ProcessDirective(String directiveName, IDictionary directive)
    at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) -->

    I have a prodject where my SomePage.aspx site is. On this page I have a refference to the usercontrol PageHead.ascx witch is located on another prodject.

    <%@ Register TagPrefix="uc1" TagName="pageHead" Src="MyControls/Web/GUI/Controls/PageHead.ascx" %>

    I've have added the web prodject to IIS and added the virtual path for the usercontrol prodjekt, and in the usercontrol prodjekt properies I've sat it to use the IIS Web server and to override the application root URL. Nothing of this has helped. Anyone know why? Thanks Thomas

    C 1 Reply Last reply
    0
    • T thomasa

      Hey. I get this exeption on my Vista machine, this works fine on my XP machine. On both machines I use Visual Studio 2008, and both uses .Net Framework 3.5.

      <!-- HttpException The file '/MyControls/Web/GUI/Controls/PageHead.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
      at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile)
      at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath)
      at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)
      at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive)
      at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive)
      at System.Web.UI.PageParser.ProcessDirective(String directiveName, IDictionary directive)
      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) -->

      I have a prodject where my SomePage.aspx site is. On this page I have a refference to the usercontrol PageHead.ascx witch is located on another prodject.

      <%@ Register TagPrefix="uc1" TagName="pageHead" Src="MyControls/Web/GUI/Controls/PageHead.ascx" %>

      I've have added the web prodject to IIS and added the virtual path for the usercontrol prodjekt, and in the usercontrol prodjekt properies I've sat it to use the IIS Web server and to override the application root URL. Nothing of this has helped. Anyone know why? Thanks Thomas

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

      use an absolute or relative path. I expect the issue is that your path is not right from the context of the page using it.

      Christian Graus Driven to the arms of OSX by Vista.

      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