← Tutti gli articoli

CuteEditor SyntaxHighlighter undefined (IIS 7)

06 February 2011  ·  Troubleshooting · Article  ·  333 visite

CuteEditor SyntaxHighlighter undefined Load.ashx?type=scripts&file=SyntaxHighlighter


Message Error
When you click on the Syntax Highlighter Code button IE shows the following error:
 
 
We have 2 possible solutions:
 
Modify SyntaxHighlighter.htm (located in .. CuteEditor/Dialogs)
  1. <script type= "text/javascript"  src= "Load.ashx?type=dialogscript&verfix=1003&file=DialogFoot.js" ></script>   
  2. <!--<script type= "text/javascript"  src= "Load.ashx?type=scripts&file=SyntaxHighlighter" ></script>-->   
  3.    <script type= "text/javascript"  src= "http://maragna.net/CuteSoft_Client/CuteEditor/Dialogs/Load.ashx?type=scripts&file=SyntaxHighlighter" ></script>   
  4. <script>  
and check the CuteEditor in Medium Trust environment in the CuteEditor Developer Guide:
 

If you use CuteEditor in Medium Trust environment, you need to setup temporary file location for AjaxUploader. Ajax Uploader is an easy to use, hi-performance File Upload Control which allows you to upload files to web server without refreshing the page.
Unlike standard ASP.NET HtmlInputFile control, AJAX Uploader does not read the entire uploaded file into memory. It streams the data into a temporary file while the data is received. For this reason, you must specify a temporary file location. You should ensure that the ASPNET user (NetworkService in Windows Server 2008) has read/write permission to this specified folder.

 

You can easily specify the temporary file location using the following method:


Setting temporary file location in web.config

Add the following code into the <appSettings> element of your application web.config file:

 

  1. < add   key = "CuteEditorTempPath"   value = "~/UploaderTemp" />   

 


In web farm environments, the Url that you specify must map to a central location, which is saved to by all servers in the farm. This can be done using a virtual directory that maps to a common shared folder on the network.
  1. <add key="CuteEditorTempPath" value="\\shareserver\temp"/>  

 
Si è verificato un errore imprevisto. Ricarica

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.