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)
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.
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
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?
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.
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
is working on a reply...