Copied to clipboard

Flag this post as spam?

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


  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 16:32
    Dan
    0

    Hi,

    I'm using this package for the first time to present a scrolling pane of information on my site homepage (each pane contains header text, body copy and an image, and scrolls at intervals to from pane to pane using jQuery).  So far I've installed the package via local zip and done the following:

    1. Gone to Developer > Data types > Repeatable Custom Content v2.
    2. Changed the Name field to 'Promo area' and added three items to the 'Settings' area (Header, Copy and Image) then clicked 'save'.
    3. Gone to Settings > Document Types > Runway Homepage > Tabs and added a new tab called 'Promo area' then saved.
    4. Gone to Settings > Document Types > Runway Homepage > Generic properties then clicked to Add a New Property with the following fields:
      • Name: Promo area
      • Alias: promoArea
      • Type: Repeatable Custom Content v2
      • Tab: Promo area
      Then saved
    5. Gone to Content > Home

    On the right hand side of the screen I now have an error message:

    Server Error in '/' Application.

    Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

    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.InvalidCastException: Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

    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:

    [InvalidCastException: Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.]
    System.Web.Configuration.ApplicationSettings.EnsureSectionLoaded() +72
    System.Web.Handlers.ScriptResourceHandler.IsCompressionEnabled(HttpContext context) +10
    System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip, Boolean notifyScriptLoaded) +53
    System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +152
    System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +37
    System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) +172
    System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +196
    System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +121
    System.Web.UI.ScriptManager.RegisterScripts() +386
    System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +113
    System.EventHandler.Invoke(Object sender, EventArgs e) +0
    System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8698462
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029

     

    I must have done something wrong, but does anyone know what?

    Thanks

     

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 17:00
    Dan
    0

    I've just spotted that this package requires .NET 3.5, but I only have 2.0.5.  Will it bugger my Umbraco installation up if I upgrade to v3.5 on the server?

  • Rich Green 2246 posts 4008 karma points
    Oct 06, 2009 @ 17:15
    Rich Green
    0

    Upgrading the .NET framework will have not harm your Umbraco installation.

     

  • Rich Green 2246 posts 4008 karma points
    Oct 06, 2009 @ 17:15
    Rich Green
    0

    Should have said:

    Upgrading the .NET framework will not harm your Umbraco installation.

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 17:54
    Dan
    0

    Cool, thanks.  I've upgraded, but still get the same error :(

  • Rich Green 2246 posts 4008 karma points
    Oct 06, 2009 @ 18:01
    Rich Green
    0

    Are you using the 3.5 .Net web.config file?

     http://umbraco.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23321

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 18:13
    Dan
    0

    Possibly a silly question, but how do I find out?  I only downloaded Umbraco for this project a couple of months ago, so it should be a pretty recent version.

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 18:18
    Dan
    0

    Actually, I've downloaded that and compared, and I do seem to be running the web.config file for .NET v1!

    I'm assuming there's no easy way to change this and it's going to involve manually going through all of the settings now and changing them to match the v3.5 config file?

  • Rich Green 2246 posts 4008 karma points
    Oct 06, 2009 @ 18:22
    Rich Green
    1

    No problem.

    Unless you specifically downloaded the 3.5 version you will have the 2.0 version.

    • Download the 3.5 web.config from the link above.
    • Copy your database connection string (and anything else you've changed) from the old web.config to the new 'aspnet35.config' file (which is the name of the file in the download) 
    • Remove the existing web.config file and rename the  'aspnet35.config' file 'web.config' and place it where the existing web.config file was (in the root of the web site) .

    Make sense?

     

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 18:39
    Dan
    0

    I downloaded the .net 3.5 config file, overwrote the database connection line and uploaded to the web space.  I then logged out of Umbraco admin on the site.  However, now, I can't log-in - it doesn't error or anything - it just doesn't go anywhere when I enter the admin username and password.

  • Rich Green 2246 posts 4008 karma points
    Oct 06, 2009 @ 18:45
    Rich Green
    0

    Does the website work ok, is it just the Admin section, also do you know which version of Umbraco you are using?

     

     

     

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 18:50
    Dan
    0

    The website works okay, it's just that I can't log into the Umbraco back-end.  I'm using Umbraco 4.

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 18:57
    Dan
    0

    Actually, my mistake Rich, I'd copied the config status line too.  Reverting that back means I'm now able to log in.  Same error with the project though!?

  • Dan 1270 posts 3861 karma points c-trib
    Oct 06, 2009 @ 19:01
    Dan
    0

    Okay, getting slightly closer now.  I find that it works when I put the data type into the 'Properties' tab, but if I put it in any other tab, I get the error.

    I guess I can live with it for now, but it's a bit confusing the for the editor because it really shouldn't belong in the properties tab.

    Has anyone else been able to install it into a different tab?

  • Masood Afzal 176 posts 522 karma points
    Oct 07, 2009 @ 00:23
    Masood Afzal
    0

    This works on any tab, i am using it on other tabs as well. I have uploaded a new file, please give it a go and let me know if any issues.

    As mentioned by Rich, please make it sure your site runs under .NET 3.5.

    TA,

    Masood

  • Dan 1270 posts 3861 karma points c-trib
    Oct 09, 2009 @ 11:56
    Dan
    0

    Ah, problem!

    I uninstalled the package but didn't delete the data type from the document type before doing so.  I then re-installed the package, created a new data type based on the 'Repeatable Custom Content v2' data type.  I then went to add this to my homepage document type, but get the following error:

     

    Server Error in '/' Application.

    No node exists with id '1421'

    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.ArgumentException: No node exists with id '1421'

    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:

    [ArgumentException: No node exists with id '1421']
    umbraco.cms.businesslogic.CMSNode.setupNode() +459
    umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) +25
    umbraco.cms.businesslogic.datatype.DataTypeDefinition.GetDataTypeDefinition(Int32 id) +88
    umbraco.cms.businesslogic.propertytype.PropertyType.get_DataTypeDefinition() +9
    umbraco.controls.GenericProperties.GenericProperty.UpdateInterface() +176
    umbraco.controls.GenericProperties.GenericProperty.Page_Load(Object sender, EventArgs e) +24
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

     

    I can only think it's still looking for the old document type, and is breaking as a result.

    Does anyone know how to resolve this?  I'm a bit concerned as I definitely don't want to lose any data here in trying to fix this (i.e. I can't just wipe everything and rebuild because there's a lot of data in there at the moment).

    Thanks

  • Dan 1270 posts 3861 karma points c-trib
    Oct 09, 2009 @ 13:15
    Dan
    0

    Presumably I need to get my hands dirty in the database to resolve this, to delete the association of this document type with the deleted data type.  Does anyone know how to do this, or if it's even safe to do so?  If not, then I could be in trouble!

  • Masood Afzal 176 posts 522 karma points
    Oct 22, 2009 @ 00:23
    Masood Afzal
    0

    Dan, it looks like umbraco issue, is it fixed now?

  • Frank Alvarez 9 posts 30 karma points
    Oct 22, 2009 @ 19:52
    Frank Alvarez
    1

    Dan,

     

    Make sure that you are using the correct web.config file for framework 3.5.  This will use the correct version of the scriptResourceHandler.

    A good way to tell is to go into web.config and under configSections make sure you see this:

    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

    Notice the version number, if you see the below node then you are still using version 2.0 of the .NET Framework

    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />

     

    Here is the link to the 3.5 web.config version:  http://umbraco.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23321#DownloadId=70203

     

    Regards,

    Frank

  • Dan 1270 posts 3861 karma points c-trib
    Nov 20, 2009 @ 14:44
    Dan
    0

    This is now solved.  It was indeed the web.config settings still using .NET V1.  I replaced the whole config file with the one posted in Frank's post and was a little alarmed that I had to go through the umbraco set-up process (thinking it would overwrite everything with a blank installation) but it worked this time.  Thanks all.  Solution marked as first person who posted this solution, but thumbs up to those who followed it through.

Please Sign in or register to post replies

Write your reply to:

Draft