|
|
Rank: Newbie
Joined: 4/11/2008 Posts: 9
|
The other day Bwakkie was so kind as to help me with a way to put an iframe on my pages. The RTE editor wouldnt allow it, so he cobbled together a macro, which is as follows:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/> <xsl:param name="url" select="/macro/url" />
<xsl:template match="/">
<!-- start writing XSLT --> <iframe name="float1" width="650" height="398" align="left" id="float1"> <xsl:attribute name="src"> <xsl:value-of select="$currentPage/data[@alias = $url]"/> </xsl:attribute> </iframe> </xsl:template>
</xsl:stylesheet>
Problem is, when trying to publish the page I got the following message:
Server Error in '/' Application. Length cannot be less than zero. Parameter name: length 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.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
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:
[ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2916097 umbraco.editorControls.tinymce.TinyMCE.replaceMacroTags(String text) +191 umbraco.editorControls.tinymce.TinyMCE.Save() +67 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +80 umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +20 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Any help would be greatly appreciated!
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 492 Location: Göteborg, Sweden
|
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 492 Location: Göteborg, Sweden
|
That looks alot like an error I've had... If you look at the HTML source from within the RTE, and searches for the macro. Is macroAlias all lowercase or with an uppercase A in alias? Are you using Firefox or IE? // ;) Kalle
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
Rank: Newbie
Joined: 4/11/2008 Posts: 9
|
kalpa wrote:That looks alot like an error I've had... If you look at the HTML source from within the RTE, and searches for the macro. Is macroAlias all lowercase or with an uppercase A in alias? Are you using Firefox or IE?
// ;) Kalle
It was lowercase, but I tried the capital A as well. If I'm not mistaken, capital/non-capital doesn't make a difference. I'm using Firefox.
|
|
Rank: Newbie
Joined: 6/6/2008 Posts: 9 Location: Australia
|
Hi there,
I'm having major issues with TinyMce and saving pages containing macros. I'm not even able to drop a macro in and save the page, I keep getting this error, very similar to feivi18 :
Server Error in '/' Application.
Length cannot be less than zero. Parameter name: length 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.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
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:
[ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2916097 umbraco.editorControls.tinymce.TinyMCE.replaceMacroTags(String text) +191 umbraco.editorControls.tinymce.TinyMCE.Save() +67 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +80 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
--------------------------------------------------------------------------------
I recently made some changes to the TinyMCE files: tiny_mce; tiny_mce_popup; tiny_mce_src but i had restored them and still to no avail. I can't work out what the else it could be.
any help will be greatly appreciated! Thanks Kim
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,698 Location: KY, USA
|
The "obvious" thing to triple-check is the file permissions. Since you restored some of the tiny_mce* files they may not now be owned by the application pool owner. Be sure that the NETWORK SERVICE (on all but WinXP) has permissions to those files. While you're at it, reset the permissions on all folders and files according to the installation instructions for your platform using the guides at http://www.umbraco.org/documentation/books#Installandsetup. It may be something else but in my experience file permissions cause the weirdest errors and when I see something strange I've to come anticipate permission problems. It's often the case. Let us know what you find out. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
Rank: Newbie
Joined: 6/6/2008 Posts: 9 Location: Australia
|
Hi Doug
Thanks for your quick reponse.
I've applied the NETWORK SERVICE permission to the folder and files which I reverted but still getting the same error.
I also forgot to mention that I have it installed on localhost and that instance works fine. I had initially tried copying over the Umbraco Client folder from there to production in an attempt to fix it but it still didn't work.
Thanks, Kim
|
|
|
Guest |