mwrock/RequestReduce — Issue #70: Can't get TinyMCE editor to work with RR
Author: cmjacques
Created: 2011-11-05 00:55:13+00:00
State: open

Hi Matt,

I'm trying to use the jQuery version of TinyMCE in my page and can't get it to work with RR.

I've added both tiny_mce.js and jquery.tinymce.js to javascriptUrlsToIgnore as mentioned in the documentation.
Using firebug I can see that the jQuery plugin it trying to load the following URL: http://localhost/site/assets/scripts/tiny_mce/tiny_mce.js?{}

This request results in a 500 error. Here's the stack trace:

[ArgumentException: Illegal characters in path.]
System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str) +12652665
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +96
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +57
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) +1957
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +229
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +102
System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length) +226
RequestReduce.Store.LocalDiskStore.SendContent(String url, HttpResponseBase response) in c:\RequestReduce\RequestReduce\Store\LocalDiskStore.cs:97
RequestReduce.Module.RequestReduceModule.HandleRRContent(HttpContextBase httpContextWrapper) in c:\RequestReduce\RequestReduce\Module\RequestReduceModule.cs:74
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

If I remove RR from the equation it works as expected. To remove it I just comment out the module in the system.webServer section of my web.config.

Thanks,
Chris