Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Terris 273 posts 715 karma points
    May 17, 2012 @ 18:27
    Richard Terris
    0

    Error creating user control

    This was working in a previous version of the site, and now the site has been updated it's stopped working.

    The previous version was on a different version of umbraco, could that be the issue?

    Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!

    Error creating usercontrol (/usercontrols/PWUrlRedirect.ascx)
    Could not load type 'PWUrlRedirect.PWUrlRedirect'.
      at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
      at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
      at System.Web.UI.TemplateParser.Parse()
      at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
      at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
      at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
      at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
      at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
      at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
      at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
      at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
      at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
      at umbraco.macro.loadUserControl(String fileName, MacroModel model, Hashtable pageElements)

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 17, 2012 @ 19:36
    Tom Fulton
    0

    Hi,

    I would guess that you are missing the .DLL file in the /bin/ folder, probably called PWUrlRedirect.dll or similar 

    -Tom

  • Richard Terris 273 posts 715 karma points
    May 18, 2012 @ 10:25
    Richard Terris
    0

    Hi Tom

    This is the issue, it's an uncompiled project so there is no .DLL associated with the control

    Richard

  • Richard Terris 273 posts 715 karma points
    May 18, 2012 @ 11:00
    Richard Terris
    0

    Tom - you ARE correct after all!

    The reason I couldn't see the user control was because it wasn't in the previous site either.

    When I went back a couple of versions it was there. it's now in place on the new site and working

    Thank you so very much!

Please Sign in or register to post replies

Write your reply to:

Draft