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

Using Telerik Components from Common IIS plage

1 Answer 72 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dogu
Top achievements
Rank 1
Dogu asked on 18 Feb 2015, 03:45 PM
Hello,

I'm using RichTextBox version 2013.1.220.40. Since our deployment package is too big, we're trying to use telerik dll's from common IIS place. In the clients configuration I've added
01.<runtime>
02.    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
03.<dependentAssembly>
04.        <assemblyIdentity name="Telerik.Windows.Documents.FormatProviders.Html" culture="neutral" publicKeyToken="5803cfa389c90ce7"/>
05.        <codeBase version="2013.1.220.40" href="http://1.1.1.1:20006/Telerik.Windows.Documents.FormatProviders.Html.dll"></codeBase>
06.      </dependentAssembly>
07.<dependentAssembly>
08.        <assemblyIdentity name="Telerik.Windows.Controls.RichTextBoxUI" culture="neutral" publicKeyToken="5803cfa389c90ce7"/>
09.        <codeBase version="2013.1.220.40" href=http://1.1.1.1:20006/Telerik.Windows.Controls.RichTextBoxUI.dll></codeBase>
10.      </dependentAssembly>
11.<dependentAssembly>
12.        <assemblyIdentity name="Telerik.Windows.Documents" culture="neutral" publicKeyToken="5803cfa389c90ce7"/>
13.        <codeBase version="2013.1.220.40" href="</codeBase">http://1.1.1.1:20006/Telerik.Windows.Documents.dll"></codeBase>
14.      </dependentAssembly>
15.
19.</assemblyBinding>
20.  </runtime>

Here our symptoms:
1. If we put Telerik.Windows.Documents.FormatProviders.Html in common place, binding is not working.
2. If we put Telerik.Windows.Controls.RichTextBoxUI in common place, context menu is not working
3. If we put Telerik.Windows.Documents in common place, copy/paste not working

Now I put all of those dlls in clickonce package (removed from common IIS folder). Now not copy/working sometimes. Gives the following exception:

System.InvalidOperationException: Sequence contains no
elements

   at
System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)

   at
Telerik.Windows.Documents.DocumentPositionLocationHelper.GetNearestLeafBoxByPosition(PointF
position, LayoutBox root, LayoutBox& currentSolution)

   at
Telerik.Windows.Documents.DocumentPositionLocationHelper.GetNearestLeafBoxByPosition(PointF
position, LayoutBox root, LayoutBox& currentSolution)

   at Telerik.Windows.Documents.DocumentPositionLocationHelper.GetNearestLeafBoxByPosition(PointF
position, LayoutBox root, LayoutBox& currentSolution)

   at
Telerik.Windows.Documents.DocumentPositionLocationHelper.GetLayoutBoxByPosition(PointF
position, LayoutBox root)

   at
Telerik.Windows.Documents.DocumentPosition.SetPosition(PointF position, Boolean
moveToNextIfOutOfBox)

   at
Telerik.Windows.Documents.Selection.MouseSelectionHandler.SetDocumentPosition(DocumentPosition
documentPosition, Point position, Boolean moveToNextIfOutOfBox)

   at
Telerik.Windows.Documents.Selection.MouseSelectionHandler.RegisterDocumentMouseMove(Point
position, SourceType source)

   at
Telerik.Windows.Documents.UI.DocumentPresenterBase.HandleMouseMoveOnPosition(Point
position, SourceType source)

   at
Telerik.Windows.Documents.UI.DocumentPresenterBase.Owner_MouseMove(Object
sender, MouseEventArgs e)

   at
System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at
System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs
args, Boolean reRaised)

   at
System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,
RoutedEventArgs args)

   at
System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   at
System.Windows.Input.InputManager.ProcessStagingArea()

   at
System.Windows.Input.MouseDevice.Synchronize()

   at
System.Windows.Input.MouseDevice.PostProcessInput(Object sender,
ProcessInputEventArgs e)

   at
System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler
postProcessInput, ProcessInputEventArgs processInputEventArgs)

   at
System.Windows.Input.InputManager.ProcessStagingArea()

   at
System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at
System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd,
InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y,
Int32 wheel)

   at
System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd,
WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at
System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam, Boolean& handled)

   at
MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr
lParam, Boolean& handled)

   at
MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,
Object args, Int32 numArgs)

   at
MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source,
Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

What's the problem, I cannot identify the problem. Can you please help ?

Thank you,
dogu

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 20 Feb 2015, 07:41 PM
Hello Dogu,

I'm not sure I properly understand your setup, but the symptoms you are describing - missing menus and dialogs, copy and paste not working, sound like a MEF malfunction. Please try placing the code snippet from this help article in your project just before the RadRichTextBox and its related UI are initialized.

As to the exception you are seeing, this seems related to the document you are trying to edit but I couldn't say what exactly causes it. Please provide more details on the matter and send us the document that is shown in the control when the error occurs.

Regards,
Petya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
RichTextBox
Asked by
Dogu
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or