Unable to add net.pipe service reference

Ranorex Spy, Recorder, and Studio.
syartsev
Posts: 13
Joined: Thu Aug 10, 2017 4:54 pm

Unable to add net.pipe service reference

Post by syartsev » Sat Jun 08, 2019 12:22 am

I'm trying to add as a service reference net.pipe://localhost/SomeService but getting an exception
WCF test client works fine.
System.UriFormatException: Invalid URI: The URI is empty.
---STACKTRACE---
System.UriFormatException: Invalid URI: The URI is empty.
System.Uri.CreateThis(String uri,Boolean dontEscape,UriKind uriKind) +0x73
ICSharpCode.SharpDevelop.Gui.ServiceReferenceHelper.GetServiceName(ServiceDescription description) +0x22
ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.Add(ServiceDescription description) +0x5
ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.FillItems(ServiceDescriptionCollection descriptions) +0x1c
ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.DiscoveredWebServices(ServiceDescriptionCollection services) +0x42
ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.ServiceReferenceDiscoveryComplete(Object sender,ServiceReferenceDiscoveryEventArgs e) +0x2a
ICSharpCode.SharpDevelop.Gui.ServiceReferenceDiscoveryClient.OnDiscoveryComplete(ServiceReferenceDiscoveryEventArgs e) +0x15
System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) +0x21
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,Object args,Int32 numArgs) +0x8e
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,Delegate callback,Object args,Int32 numArgs,Delegate catchHandler) +0x2

---ORIGINAL STACKTRACE---
System.UriFormatException: Invalid URI: The URI is empty.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at ICSharpCode.SharpDevelop.Gui.ServiceReferenceHelper.GetServiceName(ServiceDescription description)
at ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.Add(ServiceDescription description)
at ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.FillItems(ServiceDescriptionCollection descriptions)
at ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.DiscoveredWebServices(ServiceDescriptionCollection services)
at ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.AddServiceReferenceViewModel.ServiceReferenceDiscoveryComplete(Object sender, ServiceReferenceDiscoveryEventArgs e)
at ICSharpCode.SharpDevelop.Gui.ServiceReferenceDiscoveryClient.OnDiscoveryComplete(ServiceReferenceDiscoveryEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Attachments
service.png
service.png (34.46 KiB) Viewed 89 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11931
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Unable to add net.pipe service reference

Post by Support Team » Mon Jun 10, 2019 4:46 pm

Hi syartsev,

This appears to be an issue with Ranorex Studio not parsing this URI correctly. Unfortunately, I do not have the means to duplicate locally to further investigate. Are you able to provide the service (or a sample of) which duplicates this issue? Being able to duplicate the issue will greatly increase our chances of finding a solution and fixing the issue.

In the meantime, have you tried opening the solution in VS and adding the service reference this way? Once added through VS, it will hopefully reopen in Ranorex Studio with the service properly added and no errors.

Looking forward to your reply!

Regards,
Ned
.
Image