This is a migrated thread and some comments may be shown as answers.

7.1.3 Version raises ToolsFile.xml not found exception

4 Answers 293 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
mayerh2
Top achievements
Rank 1
mayerh2 asked on 03 Aug 2007, 12:12 AM

I have installed the new 7.1.3 version. However when I switch to Edit Page I get the exception listed below. Everything is correctly installed, the ToolsFile.xml is in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.3.0.0__1f131a624888eeed\RadControls\Editor
RadEditor in Page Layout:
<radE:RadHtmlField ID="RadEditorTextE" FieldName="AMCTextXHTML" runat="server" AllowFonts="False" AllowHtmlSourceEditing="True" DisplayHeight="400px" DisplayWidth="430px" DisableCustomStyles="True"></radE:RadHtmlField>

Any idea what might be wrong?

Regards,
Hugo




Could not find a part of the path 'c:\windows\system32\inetsrv\~\RadControls\Editor\ToolsFile.xml'.

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.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\RadControls\Editor\ToolsFile.xml'.

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:

[DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\RadControls\Editor\ToolsFile.xml'.]
  System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014144
  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) +998
  System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +113
  System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +78
  System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +51
  System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +44
  System.Threading.CompressedStack.runTryCode(Object userData) +54
  System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
  System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +174
  System.Xml.XmlTextReaderImpl.OpenUrl() +199
  System.Xml.XmlTextReaderImpl.Read() +50
  System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +145
  System.Xml.XmlDocument.Load(XmlReader reader) +96
  System.Xml.XmlDocument.Load(String filename) +157
  Telerik.WebControls.RadEditor.LoadToolsFile() +629

[Exception: Cannot find tools file ~/RadControls/Editor/ToolsFile.xml Please make sure the file exists or that RadControls folder have been properly set.]
  Telerik.WebControls.RadEditor.LoadToolsFile() +717
  Telerik.WebControls.RadEditor.EnsureToolsFileLoaded() +279
  Telerik.WebControls.RadEditor.get_Toolbars() +10
  Telerik.SharePoint.EditorTools.RemoveTool(RadEditor contentEditor, String toolName) +28
  Telerik.SharePoint.FieldEditor.RadHtmlField.OnLoad(EventArgs e) +610
  System.Web.UI.Control.LoadRecursive() +47
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

4 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 03 Aug 2007, 10:31 AM
Hi Hugo,

There seems to be a bug in the new version of the publishing field editor. We are going to release an updated build (4.3.1) later today. The update should fix this problem.

As a workaround, you can try setting the ToolsFile property of the RadHtmlField control manually. For example:
ToolsFile="/_wpresources/RadEditorSharePoint/4.3.0.0__1f131a624888eeed/RadControls/Editor/ToolsFile.xml"

This way the field will work OK until you install an updated build of the editor. Note that if you set the ToolsFile property now, you will need to remove it or modify its value after you update, since the path to the tools file contains the editor version (4.3.0 in this case).

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
JoeC
Top achievements
Rank 1
answered on 24 Aug 2007, 02:27 PM
Hi Folks,

I just downloaded the latest version (4.3.2) and installed it using the .wsp file. The install and deployment went fine but I get the exact same exception described here when I try to put the control on a page layout.   Is this the same bug that should have been fixed?

Thanks!

Joe
0
Georgi Tunev
Telerik team
answered on 27 Aug 2007, 08:01 AM
Hello Joe,

Have you upgraded from a previous version of the control? If this is so, can you please check if you have set the ToolsFile property to point to a non-existing file - this could be the reason for such behavior. Make sure that the path points to the exact location of the ToolsFile.xml.

e.g. if your physical path of the RadEditor's ToolsFile.xml is

C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.3.0.0__1f131a624888eeed\RadControls\Editor\ToolsFile.xml

Your ToolsFile property must point to "/_wpresources/RadEditorSharePoint/4.3.0.0__1f131a624888eeed/RadControls/Editor/ToolsFile.xml"


Please note that the name of the folder 4.3.0.0__1f131a624888eeed is unique and is built like this:
/<control's version>_<Unique Token>/




Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ian
Top achievements
Rank 1
answered on 17 Sep 2014, 03:02 PM
Hi 
I'm migrating a Sharepoint 2007 32 to 64-bit and I'm having the same issue.
I don't know where to change the path.

Can you help me?
Tags
WebParts for SharePoint
Asked by
mayerh2
Top achievements
Rank 1
Answers by
Lini
Telerik team
JoeC
Top achievements
Rank 1
Georgi Tunev
Telerik team
Ian
Top achievements
Rank 1
Share this question
or