Copied to clipboard

Flag this post as spam?

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


  • Joe Niemann 11 posts 32 karma points
    Jan 06, 2011 @ 17:45
    Joe Niemann
    0

    Could not load control

    I have installed this package and manually added the code to the dashboard.config file, but still will not work. I receive the following error.

    Could not load control '/usercontrols/binary/dashboard/UmbracoUserSessions.ascx'.
    Error message: System.Web.HttpCompileException: e:\Domains\wecreateloyalty.com\wwwroot\usercontrols\binary\dashboard\UmbracoUserSessions.ascx.cs(3): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) at System.Web.Compilation.AssemblyBuilder.Compile() 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) 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 umbraco.cms.presentation.dashboard.OnInit(EventArgs e)

     

    Can anyone help me out here?

  • Yannick Smits 321 posts 718 karma points
    Jan 06, 2011 @ 17:48
    Yannick Smits
    0

    Looks like you're still on .NET 2.0. Linq requires NET 3.5.

    Don't know this control but you might be able to remove the references to the System.Linq dll in the code files (they are added automatically for new 3.5 projects) and recompile for .NET 2.0 if there is no Linq code used.

  • Josh Townson 67 posts 162 karma points
    Jan 09, 2011 @ 20:47
    Josh Townson
    0

    Hi Joe,

    As Yannick says, this is amlost certainly caused by the reference to Linq in the cs file (delete line 3). The control doesn't need it, and that should allow you to run it in a .NET 2 environment.

    You can find the file here: /usercontrols/binary/dashboard/UmbracoUserSessions.ascx.cs

    Cheers,

    Josh

Please Sign in or register to post replies

Write your reply to:

Draft