Bug 18664 - ServiceStack Client PCL & System.ServiceModel
Summary: ServiceStack Client PCL & System.ServiceModel
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.2.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
Depends on:
Reported: 2014-03-31 09:42 UTC by Josh Hogan
Modified: 2014-06-02 14:51 UTC (History)
5 users (show)

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

Failing Test Case (2.90 MB, application/zip)
2014-03-31 09:42 UTC, Josh Hogan

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:

Description Josh Hogan 2014-03-31 09:42:52 UTC
Created attachment 6437 [details]
Failing Test Case

I currently have an Indie level Xamarin subscription. I integrated the latest ServiceStack Client PCL library into our iOS app and received an error on compilation stating that I need a Business level subscription due to referencing the System.ServiceModel namespace.

After doing some digging, it doesn't appear as though the ServiceStack client lib is actually using System.ServiceModel, but perhaps it is implicitly referenced in the PCL process? PCLs are a bit of a mystery to me still. I found some bug reports and similar questions relating to Android libraries, but haven't found a workaround or fix yet.



I've attached a simple project that exhibits the problem.  Creating a reference to a ServiceStack JsonServiceClient is enough to trigger the window stating the need for a Business level subscription.

If I genuinely need a Business subscription to use the library, then so be it.  Naturally, I don't want to be forced to upgrade unnecessarily.
Comment 1 Ram Chandra 2014-03-31 13:20:32 UTC
I have checked this issue with attached project and I am able to reproduce this issue.

Steps to reproduce this issue:

1. Open the "attached project".
2. I have an Indie license.
4. Build the attached project.
5. An error will occur. 

I observed that when I build the "attached project" with "Indie level " account I am getting an error i.e. "error MT9003: Assembly `System.ServiceModel` requires Business (or higher) license". When I build the application with "trial version" I have not got any build error and my application is build successfully.

I observed that this is the problem of licensing if I upgrade my account from Indie level to higher then I am able to use the "ServiceStack Client PCL library".

Screencast: http://www.screencast.com/t/m76UyWyzmUc


Mac OS X 10.7.5
Xamarin Studio: 4.2.3 (build 60)
Xamarin.iOS : (Trial Edition)
Build Information
Release ID: 402030060
Git revision: 30c4afc300c2a39ec5300851357ce02e49dd217e
Build date: 2014-03-05 22:09:33+0000
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044
Comment 2 Sebastien Pouliot 2014-04-01 09:16:05 UTC
Here's the chain that cause this:

-> ServiceStack.Client (3rd party)
-> System.ServiceModel.Primitives (PCL)
-> System.ServiceModel (BCL)
-> 9003

I'll look if no types are being used. If not then we should be able to change the assembly-check to a type-check. It's a bit slower but it would be more accurate.

@Ram you did not get this error with the pasted environment, i.e.

> Xamarin.iOS : (Trial Edition)

Please always copy the output of XI about box when providing your version informations. It's more complete and it should be accurate (if done just before you confirm the issue).
Comment 3 Sebastien Pouliot 2014-04-01 13:03:51 UTC
Fixed in master 72c90d3eec617c54ba30365bdccb900bcde440bc

QA: the error 9003 for System.ServiceModel.dll is replaced with one (or many) 9006 errors for types in the System.ServiceModel. This will affect your existing test plan. System.ServiceModel.Web.dll is unaffected (and will still report 9003 errors).
Comment 4 Mohit Kheterpal 2014-06-02 14:51:00 UTC
Today I have checked this issue and as per comment 3, now we are getting 9006 error with Indie License as shown in screencast : http://screencast.com/t/IWqVtP1YR

Hence closing this issue.

Environment info :
=== Xamarin Studio ===

Version 5.1 (build 307)
Installation UUID: 449f40dd-b3f1-4028-9a6b-cca0d1a2307d
	Mono 3.4.0 ((no/c3fc3ba)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000204

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 5aa4bec
Build date: 2014-06-02 00:04:26-0400

=== Xamarin.Android ===

Version: 4.14.0 (Enterprise Edition)
Android SDK: /Users/360logicaxamarinmacmini/Desktop/android-sdk-macosx_Róbert_à
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.Mac ===


=== Build Information ===

Release ID: 501000307
Git revision: def1bd7785c4bc27f13d0b67d860f5e6700d0dc0
Build date: 2014-05-30 14:10:52-04
Xamarin addins: 11878769601a89ead8775b80241fd6a91ba5ad9e

=== Operating System ===

Mac OS X 10.8.4
Darwin 360Logicas-Mac-mini.local 12.4.0 Darwin Kernel Version 12.4.0
    Sun Mar 10 18:01:10 PDT 2013
    root:xnu-2050.24.6~1/RELEASE_X86_64 x86_64