Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option infer to Off triggers overload resolution
Message
From
25/06/2014 13:50:35
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
Option infer to Off triggers overload resolution
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602456
Message ID:
01602456
Views:
32
I switched the Compile option Option infer to Off.

One item is noticed:

Overload resolution failed because no accessible 'New' can be called without a narrowing conversion:
'Public Sub New(binding As System.ServiceModel.Channels.Binding, remoteAddress As System.ServiceModel.EndpointAddress)': Argument matching parameter 'binding' narrows from 'Object' to 'System.ServiceModel.Channels.Binding'.
'Public Sub New(binding As System.ServiceModel.Channels.Binding, remoteAddress As System.ServiceModel.EndpointAddress)': Argument matching parameter 'remoteAddress' narrows from 'Object' to 'System.ServiceModel.EndpointAddress'.
'Public Sub New(endpointConfigurationName As String, remoteAddress As System.ServiceModel.EndpointAddress)': Argument matching parameter 'endpointConfigurationName' narrows from 'Object' to 'String'.
'Public Sub New(endpointConfigurationName As String, remoteAddress As System.ServiceModel.EndpointAddress)': Argument matching parameter 'remoteAddress' narrows from 'Object' to 'System.ServiceModel.EndpointAddress'.
'Public Sub New(endpointConfigurationName As String, remoteAddress As String)': Argument matching parameter 'endpointConfigurationName' narrows from 'Object' to 'String'.
'Public Sub New(endpointConfigurationName As String, remoteAddress As String)': Argument matching parameter 'remoteAddress' narrows from 'Object' to 'String'.

This is from this command:
' Bind the mode and the URL
Using loClaimService As ClaimService.ClaimServiceSoapClient = New ClaimService.ClaimServiceSoapClient(loSOAPSVC.oBasicHttpBinding, loSOAPSVC.oEndpointAddress)
The parameters in the New declaration are highlighted.

It is not clear what has to be changed here. With that error, the intellisense does not kick in on that one. If I switched the option On, there is no problem.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform