Page 1 of 1

Unhandled exception when running delete annotation

Posted: Mon Oct 25, 2010 8:20 am
by kris123pra
Hi

I get this error when I run delete annotation in my application.

Ranorex Studio Version : 2.3.3.8879
.NET Version : 2.0.50727.3615
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture : English (United States) (en-US)
Terminal Server Session
Working Set Memory : 85400kb
GC Heap Memory : 23799kb

Unhandled exception
Exception thrown:
System.InvalidOperationException: The stream does not support reading.
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at ICSharpCode.SharpDevelop.BuildWorker.Interprocess.PacketReceiver.OnReceive(IAsyncResult ar)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:
Installed 3rd party AddIns: [RanorexLogViewer 2.3.3.8879], [RxObjectRepository 2.3.3.8879], [RxRecorder 2.3.3.8879], [Workflow Foundation Designer 2.3.3.8879], [ElementTree 2.3.3.8879]
Workbench.ActiveContent: [TextEditorDisplayBindingWrapper E:\ABC_Auto\ABC\Annotate.cs]
ProjectService.OpenSolution: [Solution: FileName=E:\ABC_Auto\ABC.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: ABC]


I have .NET 3.5 SP1 installed.

Thanks
Kris

Re: Unhandled exception when running delete annotation

Posted: Mon Oct 25, 2010 9:45 am
by Support Team
Hi,

Thank you for posting the exception. It seems to be a Sharp Develop error. Ranorex is based on the Sharp Develop Studio. Please update to the latest version of Ranorex. We fixed some issues in Ranorex Studio, maybe this resolves this exception.

Regards,
Peter
Ranorex Team

Re: Unhandled exception when running delete annotation

Posted: Sun Oct 31, 2010 2:40 pm
by kris123pra
Hi

Thanks Peter. But this error happened only once and after that, it started working fine. So I am not sure, what caused the error.

Now that it is working fine, thanks anyways :D

Regards
Kris

Re: Unhandled exception when running delete annotation

Posted: Mon Nov 01, 2010 3:15 pm
by Support Team
Hi,

I think there was just an file, which was not readable at this moment. Therefore you got this exception. But anyway, nice to hear that is is working now. But I would recommend you to update to the latest version, because we fixed some bugs with version 2.3.4.

Regards,
Peter
Ranorex Team

Re: Unhandled exception when running delete annotation

Posted: Wed Nov 10, 2010 11:22 am
by kris123pra
Thanks Peter.. upgraded to 2.3.4 now!

Regards
Kris