Bug 18581 - Web Service Client Constructor Throws InvalidOperationException
Summary: Web Service Client Constructor Throws InvalidOperationException
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-03-26 06:14 UTC by Xuebo
Modified: 2017-08-29 18:12 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Xuebo 2014-03-26 06:14:14 UTC
Description of Problem:

I have a Web Service created in VS2012 that runs on IIS. It works fine with Delphi client or C# client, but Xamarin.iOS project  throws InvalidOperation Exception:
Member AbcAuthHeaderValueField not found in class GrandFeast.MenuTouch.iOS.DataAsyncServiceReference.DataSyncService.

Codes here:

	var url = String.Format(URL_DATASYNC_SERVICE, WEB_SERVICE_IP);
	var dataAsyncService = new DataSyncService(url);  // Exception throws.........................

Reference.cs:
        public DataSyncService()
        {
            this.Url = "http://192.168.1.200:2014/WebServices/DataSyncService.asmx";
        }
        
        public DataSyncService(string url)  // Exception throws.......................................
        {
            this.Url = url;
        }
        
        public AbcAuthHeader AbcAuthHeaderValue
        {
            get {
                return this.AbcAuthHeaderValueField;
            }
            set {
                this.AbcAuthHeaderValueField = value;
            }
        }

#


Steps to reproduce the problem:
1. 
2. 


Actual Results:


Expected Results:


How often does this happen? 


Additional Information:
Comment 2 Jon Goldberger [MSFT] 2017-07-24 21:37:39 UTC
Thanks so much for taking the time to submit this report! I’m unable to reproduce this issue using the latest Xamarin.iOS 10.12.0.14. Please attach the following to help us reproduce this issue: 
- Detailed reproduction steps 
- Visual Studio Version information (About Visual Studio menu) 
- project to reproduce your issue
- Full exception message and stack trace.
Comment 3 Vincent Dondain [MSFT] 2017-08-29 18:12:02 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!