KTML for .NET Forum :: Error message when KTML opens

This thread was displayed: 337 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Cliff Mitchell
03-23-2006 16:57:49 GMT +2

I have installed KTML .Net  Developer and it is working fine. However I get an error message everytime the KTML Editor control opens in a web form:

Illegal request! Please contact the system administrator, as there seems to be a problem with your ktml installation.

I have obviously missed something in the setup but can't see what it is. Can you point me in the right direction please?

Thanks,

Cliff

Back | Reply | Quote | Top
Cliff Mitchell
03-24-2006 14:57:43 GMT +2

I really need urgent help with this please. I have installed KTML and if I skip over the error message (Illegal request! ) the basic functionality seems to work OK. I assume, therefore, I have installed KTML into Visual Studio 2005 correctly. But I can't stop this error message appearing. I attach my web.config below  (I have taken out the connection string) and the source code of my test page.

I intend to use the the internal .Net image processing library and HTML Tidy, but no spell checker. I have put Tidy.exe in the /bin folder of the site - is that OK or should it be somewhere else?

Can anyone please help get me sorted out?

Thanks,

Cliff

 

 

<?xml version="1.0"?>

<configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<appSettings>

<addkey="KT_prefered_tidy_path"value="~\bin" />

<sessionStatemode="StateServer">

</sessionState>

</appSettings>

<system.web>

<compilationdebug="true"strict="false"explicit="true">

<assemblies>

<addassembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>

<pagesstyleSheetTheme="default"/>

<authenticationmode="Forms

View full message
Reply | Quote | Top
Dragos GEORGITA[InterAKT]Adobe Systems Romania staff
03-24-2006 15:52:05 GMT +2

 Hello Cliff,

Please do the following:

- remove the line <add key="KT_prefered_tidy_path" value=".."  from web.config

- open /includes/ktm/ktml4.config.xml file and locate the line

<add key="KT_prefered_tidy_path" value="C:\Windows\"/>

(it should be in the root <ktmlconfig> element)

replace it with:

<add key="KT_prefered_tidy_path" value="C:\Aboslute\Path\To\TidyFolder\In\Bin\"/>

Save it and give it a test. See if you still got the Ilegal request error

 

Regards,

Dragos Georgita

 

Reply | Quote | Top
Cliff Mitchell
03-24-2006 16:14:59 GMT +2

Hi,

Yes, I still get the

Reply | Quote | Top
Dan Popa[InterAKT]Adobe Systems Romania staff
03-24-2006 17:54:25 GMT +2

Hi,

  1. open the /includes/ktm/core/ktml.js
  2. find the KtmlDevelopment=false; string and set the variable to true
  3. open the page again; this time you'll see an alert with a more detalied error message, containing the whole response from server (KTML4 makes an ajax call to find if HTMLTidy exists on server).

Press CTRL+C in the alert message and paste here.

Thanks,
Dan POPA

Reply | Quote | Top
Cliff Mitchell
03-24-2006 18:40:15 GMT +2

Here's the error message...

 ---------------------------
Microsoft Internet Explorer
---------------------------
Cannot parse server response:
=========
<html>

    <head>

        <title>Using themed css files requires a header control on the page. (e.g. &lt;head runat=&quot;server&quot; /&gt;).</title>

        <style>

         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}

         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

         pre {font-family:"Lucida Console";font-size: .9em}

         .marker {font-weight: bold; color: black;text-decoration: none;}

         .version {color: gray;}

         .error {margin-bottom: 10px;}

         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

        </style>

    </head>

 

    <body bgcolor="white">

 

            <span><H1>Server Error in '/SILDotNet' Application.<hr width=100% size=1 color=silver></H1>

 

            <h2> <i>Using themed css files requires a header control on the page. (e.g. &lt;head runat=&quot;server&quot; /&gt;).</i> </h2></span>

 

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

 

            <b> Description: </b>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.

 

            <br><br>

 

            <b> Exception Details: </b>System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. &lt;head runat=&quot;server&quot; /&gt;).<br><br>

 

            <b>Source Error:</b> <br><br>

 

            <table width=100% bgcolor="#ffffcc">

               <tr>

                  <td>

                      <code>

 

An unhandled exception was generated during the execution of the current

View full message
Reply | Quote | Top
Dragos GEORGITA[InterAKT]Adobe Systems Romania staff
03-28-2006 05:06:28 GMT +2

Hello Cliff,

It seems that the error is thrown when you have a stylesheet theme applied on all the pages of the site. However, there is one particular page that shouldn't have this theme applied on. This page is the KTML 4 service page used internally by the editor as a Service Provider.

In order to fix this isues, please replace the file in /includes/ktm/plugins/service/service.aspx with the one attached.


Hope this helps you,

Best regards,

Dragos Georgita


Reply | Quote | Top
Cliff Mitchell
03-28-2006 11:13:13 GMT +2

 Dragos,

Yes, that has fixed the problem and everything appears to be working fine now. Thanks for persevering with this problem - your help is much appreciated.

 

Cliff

Reply | Quote | Top
Gareth Davies
01-23-2008 16:35:02 GMT +2

How can I get a copy of this file as it doesn't seem to be attached to the post. I have applied a css style and hence am getting this error.

Reply | Quote | Top
KTML for .NET 4.1.0
© Adobe Systems Romania. All rights reserved.