+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Can't edit event on page after upgrade to 6.0.4210.0

Can't edit event on page after upgrade to 6.0.4210.0

5 posts, 0 answered
  1. Chris
    Chris avatar
    4 posts
    Registered:
    14 Jan 2014
    26 Jan 2014
    Link to this post
    Hi,

    We have upgraded our website from 5.1 to  6.0.4210.0. Everything is working fine. Except when we drag & drop the events widget on a page, we can not edit it.

    The following error is shown:
    Server Error in '/' Application.
     
    Assembly 'Telerik.Sitefinity.ContentModules, Version=6.0.4210.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' does not contain a Web resource with name 'Telerik.Sitefinity.Web.UI.ControlDesign.Scripts.IDesignerViewControl.js'.
     
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
     
    Exception Details: System.InvalidOperationException: Assembly 'Telerik.Sitefinity.ContentModules, Version=6.0.4210.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' does not contain a Web resource with name 'Telerik.Sitefinity.Web.UI.ControlDesign.Scripts.IDesignerViewControl.js'.
     
    Source Error:
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
     
    Stack Trace:
     
     
    [InvalidOperationException: Assembly 'Telerik.Sitefinity.ContentModules, Version=6.0.4210.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' does not contain a Web resource with name 'Telerik.Sitefinity.Web.UI.ControlDesign.Scripts.IDesignerViewControl.js'.]
       System.Web.UI.WebResourceUtil.VerifyAssemblyContainsReleaseWebResource(Assembly assembly, String releaseResourceName, Assembly currentAjaxAssembly) +458
       System.Web.UI.ScriptReference.ShouldUseDebugScript(String releaseName, Assembly assembly, Boolean isDebuggingEnabled, Assembly currentAjaxAssembly) +178
       System.Web.UI.ScriptReference.DetermineResourceNameAndAssembly(ScriptManager scriptManager, Boolean isDebuggingEnabled, String& resourceName, Assembly& assembly) +311
       System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip, Boolean useCdnPath) +111
       System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip, Boolean useCdnPath) +467
       System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +348
       System.Web.UI.ScriptManager.RegisterScripts() +655
       System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +281
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4628
     
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056

  2. Bonny
    Bonny avatar
    58 posts
    Registered:
    11 Nov 2016
    27 Jan 2014
    Link to this post
    Hi,

    There is a bug for this and it will be fixed in some of the next releases. To workaround it, just register a new widget, using this code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web.UI;
    using Telerik.Sitefinity.Modules.Events;
    using Telerik.Sitefinity.Modules.Events.UI.Designers;
    using Telerik.Sitefinity.Modules.Events.Web.UI;
    using Telerik.Sitefinity.Modules.Events.Web.UI.Designers;
    using Telerik.Sitefinity.Modules.Pages.Web.UI;
    using Telerik.Sitefinity.Web.UI.ControlDesign;
     
    namespace SitefinityWebApp
    {
        [RequireScriptManager]
        [ControlDesigner(typeof(MyEventsDesigner))]
        [PropertyEditorTitle(typeof(EventsResources), "EventsViewPropertyEditorTitle")]
        public class MyEventView : EventsView
        {
        }
         
        public class MyEventsDesigner : EventsDesigner
        {
            protected override void AddViews(Dictionary<string, ControlDesignerView> views)
            {
                var settingsView = new MyEventsSettingsDesignerView();
                views.Add(settingsView.ViewName, settingsView);
            }
        }
     
        public class MyEventsSettingsDesignerView : EventsSettingsDesignerView
        {
            public override IEnumerable<ScriptReference> GetScriptReferences()
            {
                var scripts = new List<ScriptReference>();
                var assemblyName = typeof(EventsSettingsDesignerView).Assembly.FullName;
                scripts.Add(new ScriptReference("Telerik.Sitefinity.Web.UI.ControlDesign.Scripts.IDesignerViewControl.js", "Telerik.Sitefinity"));
                scripts.Add(new ScriptReference("Telerik.Sitefinity.Modules.Events.Web.Scripts.EventsSettingsDesignerView.js", assemblyName));
                return scripts;
     
            }
        }
     
    }

    This will replace the default events wdget with a working one.
    Please get back to us if you need further assistance.

    Regards,
    Bonny
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Chris
    Chris avatar
    4 posts
    Registered:
    14 Jan 2014
    29 Jan 2014
    Link to this post
    Hi Bonny,

    Thank you for your reply. We have used the provided code and created a widget. Compiled the project an registered the widget with Sitefinity Thunder. The same error occurs. Is there something we need to configure in the toolbox settings? I also have tried first deleting the default Events widget and registering the custom widget.


  4. Bonny
    Bonny avatar
    58 posts
    Registered:
    11 Nov 2016
    31 Jan 2014
    Link to this post
    Hi,

    Can you please open regular support ticket so we can get your project and find a solution for your problem?

    Regards,
    Bonny
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
  5. Chris
    Chris avatar
    4 posts
    Registered:
    14 Jan 2014
    01 Feb 2014 in reply to Bonny
    Link to this post
    Hi Bonny,

    We have found the solution to fix it. This apparently occurs when script combining for the backend script resources is turned off. We have fixed it by setting it to true in Settings - Advanced - Pages.

5 posts, 0 answered