Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option infer to Off triggers overload resolution
Message
De
25/06/2014 13:50:35
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Titre:
Option infer to Off triggers overload resolution
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01602456
Message ID:
01602456
Vues:
31
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
Répondre
Fil
Voir

Click here to load this message in the networking platform