Strange Error Editing Rich Text Options
VirtualRichard
Posted: Saturday, October 11, 2008 12:48:30 PM

Rank: Fanatic

Joined: 9/17/2007
Posts: 265
Location: London, UK.
When we try to access a content item containing a rich text field, we are seeing the following errors:

Code:
Line 223
Char 3
Error: Permission Denied
Code: 0
URL: http://www.aquaterra.org/abc%2Ddef/treeInit.aspx

AND / OR

Code:
Line: 10
Char: 24129
Error: Unspecified Error
Code: 0
URL: http://www.aquaterra.org/abc%ddef/editcontent.aspx?id=1696

(where abc & def are other characters and for some bizarre reason %2D is actually a hyphen)

This is accompanied by event viewer log:

Code:
"A worker process with process id of '5936' serving application pool 'umbracoCMSAppPool' has requested a recycle because it reached its private bytes memory limit."

(the pool is set to recycle on 200MB as we were having out of memory problems even though there was 2GB memory and plenty apparently free).

Code:

Application

Event Type:    Warning
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1309
Date:        11/10/2008
Time:        11:38:30
User:        N/A
Computer:    WEB
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 11/10/2008 11:38:30
Event time (UTC): 11/10/2008 10:38:30
Event ID: 17b68671fe314e9dbd309ba6bd181d0d
Event sequence: 194
Event occurrence: 1
Event detail code: 0

Application information:
    Application domain: /LM/W3SVC/1219674401/Root-1-128681948788633750
    Trust level: Full
    Application Virtual Path: /
    Application Path: E:\InetPub\wwwroot\
    Machine name: WEB

Process information:
    Process ID: 4904
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
    Exception type: OutOfMemoryException
    Exception message: Exception of type 'System.OutOfMemoryException' was thrown.

Request information:
    Request URL: http://www.aquaterra.org/umbraco_client/tinymce/blank.htm
    Request path: /umbraco_client/tinymce/blank.htm
    User host address: 123.456.789.123
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
    Thread ID: 8
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Reflection.Emit.ILGenerator.EnsureCapacity(Int32 size)
   at System.Reflection.Emit.ILGenerator.Emit(OpCode opcode, Label[] labels)
   at System.Text.RegularExpressions.RegexCompiler.GenerateMiddleSection()
   at System.Text.RegularExpressions.RegexCompiler.GenerateGo()
   at System.Text.RegularExpressions.RegexLWCGCompiler.FactoryInstanceFromCode(RegexCode code, RegexOptions options)
   at System.Text.RegularExpressions.RegexCompiler.Compile(RegexCode code, RegexOptions options)
   at System.Text.RegularExpressions.Regex.Compile(RegexCode code, RegexOptions roptions)
   at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
   at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options)
   at UrlRewritingNet.Web.RegExRewriteRule.CreateRegEx()
   at UrlRewritingNet.Web.RegExRewriteRule.Initialize(RewriteSettings rewriteSettings)
   at UrlRewritingNet.Web.UrlRewriteModule.Init(HttpApplication context)
   at System.Web.HttpApplication.InitModulesCommon()
   at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
   at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
   at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

At the moment, none of our editors are able to edit website content.

As an interesting addition, this is what the editors see on their computers when the page finally loads after about a minute:



(!)

Anyone come across this before? I don't know if the event logs are related to the issue described above but clearly something is wrong somewhere.

Richard

2 * 3 * 3 * 37 : The prime factorisation of The Beast.
drobar
Posted: Saturday, October 11, 2008 2:49:01 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
That last screenshot is down right freaky! It rather feels like a hacked site, but let's not jump to conclusions just yet. Is it possible the image is actually in the content for your page?

The first things to look at are the two errors.... permissions and memory.

Double- and triple-check the file permissions on all the folders (and files!) in your umbraco installation and that the owner of the 'umbracoCMSAppPool' has at least modify permissions.

The memory question is also curious, but if you've got 2GB or memory, maybe give more to your application pool?

Another thing to check would be to do a file (and maybe database) 'diff' between the current site and a recent backup of the site when you didn't have problems... just in case you have been hacked. A long shot, but worth looking into just to be sure. The image in the RTE could be a modification to the CSS that is affecting the editor, for instance.

Let us know what you find out.

cheers,
doug.

MVP 2007-2009 - Percipient Studios
VirtualRichard
Posted: Wednesday, October 15, 2008 12:17:48 PM

Rank: Fanatic

Joined: 9/17/2007
Posts: 265
Location: London, UK.
Hi, took a while to get time for this.

The permissions are all ok and inherited as we'd expect.

The memory also is ok and we definitely haven't been hacked.

We're pretty stumped here. We think it is something to do with our being in a network and the server being outside of this network (in DMZ). Although we are turning off access through the ISA Server Proxy, I think there is still something going on from a network point of view. Do you think this could be the case? I have little experience of networking.

Richard

2 * 3 * 3 * 37 : The prime factorisation of The Beast.
VirtualRichard
Posted: Thursday, October 16, 2008 7:03:42 PM

Rank: Fanatic

Joined: 9/17/2007
Posts: 265
Location: London, UK.
We're now 99% sure we know what the cause is but 0% as to the solution at the moment.

The issue is in the UrlRewriting redirects. The old site used .htm and .shtm files and obviously I wanted to make sure these were properly redirected for SEO and stuff. So I mapped .htm and .shtm through the ASP.NET engine and set up /config/UrlRewriting.config, e.g:

Code:
<add name="17" virtualUrl="/BathNES/BathSAL/Parties.shtm" destinationUrl="/bath-sports--leisure-centre/childrens-parties.aspx" rewriteUrlParameter="ExcludeFromClientQueryString" ignoreCase="true" redirectMode="Permanent"/>

BUT, requests to .htm files not handled in a redirect (even if they don't exist) are causing the timeout, exceptions, etc. as detailed above. That's what the problem is. The Rich Text editor tries to load, say, blank.htm and *bang*.

The question is why? And more importantly, how do we fix it?

Richard


2 * 3 * 3 * 37 : The prime factorisation of The Beast.
VirtualRichard
Posted: Saturday, October 18, 2008 12:41:03 PM

Rank: Fanatic

Joined: 9/17/2007
Posts: 265
Location: London, UK.
As a final comment to this thread in case it helps others in a similar situation. Removing the ability to redirect .htm requests solved our problem. As the .htm requests were deemed to be handling non-critical redirects we felt we could live without them.

Richard

2 * 3 * 3 * 37 : The prime factorisation of The Beast.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.