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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. HttpCompileException occurs at random times

HttpCompileException occurs at random times

Scheduled Pinned Locked Moved ASP.NET
databasedesignwindows-admintoolshelp
1 Posts 1 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_me
    wrote on last edited by
    #1

    Hi, I am getting System.Web.HttpCompileException from my application randomnly. it gets fixed randomnly too. sometimes i refresh the IIS and it starts working, other times, i change timestamp on the control mentioned in exception and my application starts working. My code looks like:

    Private utilityMethods As ASP.mywebsite_utilitymethods_ascx 'Declaration , This line is throwing error. Note this is global declaration of the reference

    after the above line i create the object and use it to call methods in the utilitymethods control. The Products page has this declaration. Sometimes when i make changes to Products page and copy it to the testbox, this exception starts happening: Please not that line 55 is the declaration line that i have copied above Message: System.Web.HttpCompileException: D:\MyWebsite\Products.ascx.vb(55): error BC30002: Type 'ASP.mywebsite_utilitymethods_ascx' is not defined. at System.Web.Compilation.BuildManager.CompileWebFile(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.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at Website.MyWebsite.RadTabStrip.RadMultiPage1_PageViewCreated(Object sender, RadMultiPageEventArgs e) in D:\Websites\RadTabStrip.ascx.vb:line 906 at Telerik.Web.UI.RadMultiPage.OnPageViewCreated(RadMultiPageEventArgs eventArgs) at Telerik.Web.UI.RadMultiPage.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at Telerik.Web.UI.RadPageViewCollection.Add(RadPageView pageView) at MyWebsite.RadTabStrip.AddPageView(RadTab tab) in website\RadTabStrip.ascx.vb:line 1074 at MyWebsite.RadTabStrip.Page_Load(Object sender, EventArgs e) in D:\Websites\RadUCTabStrip.ascx.vb:line 668 Please note that the application is working. This happens sometimes when i make changes to Products page. When this happens, i change timestamp on utility methods or radtabstip page and copy it over and it starts working. I know my statement is re

    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