Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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:
On the right hand side of the screen I now have an error message:
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.
[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?
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?
Upgrading the .NET framework will have not harm your Umbraco installation.
Should have said:
Upgrading the .NET framework will not harm your Umbraco installation.
Cool, thanks. I've upgraded, but still get the same error :(
Are you using the 3.5 .Net web.config file?
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.
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?
Unless you specifically downloaded the 3.5 version you will have the 2.0 version.
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.
Does the website work ok, is it just the Admin section, also do you know which version of Umbraco you are using?
The website works okay, it's just that I can't log into the Umbraco back-end. I'm using Umbraco 4.
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!?
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?
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.
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:
[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).
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!
Dan, it looks like umbraco issue, is it fixed now?
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=184.108.40.206, 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
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted