Bug 44712 - SBNotificationHub Path Not Resolved : Error CS0433
Summary: SBNotificationHub Path Not Resolved : Error CS0433
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-24 10:18 UTC by mwg@thoughts.net
Modified: 2017-02-27 00:34 UTC (History)
3 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 FIXED

Description mwg@thoughts.net 2016-09-24 10:18:21 UTC
The error message is "The type 'SBNotificationHub' exists in both 'Microsoft.WindowsAzure.Messaging.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Xamarin.Azure.NotificationHubs.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Sentry.iOS".

The code itself has not been changed; this is a new issue caused by external changes; Wednesday I upgraded both iOS and xCode on the development Mac to the latest versions.

WindowsAzure.Messaging is referenced in the code but 'Xamarin.Azure.NotificationHubs.iOS is not. If I remove the WindowsAsure.Messaging reference to reduce the references, the error changes to "The type or namespace name 'SBNotificationHub' could not be found (are you missing a using directive or an assembly reference?). Why is 'Xamarin.Azure.NotificationHubs.iOS not still referenced?
Comment 1 mwg@thoughts.net 2016-09-26 13:59:53 UTC
By removing the reference to Microsoft.WindowsAzure.Messaging.iOS, but retaining the 'using WindowsAzure.Messaging;' I got past the issue. 

Is 'SBNotificationHub' now in the Xamarin.Azure.NotificationHubs.iOS but still reference by the above 'using'? Do we program it the same way?
Comment 2 mwg@thoughts.net 2017-02-10 13:26:43 UTC
Problem solved using comment above. Question not answered.
Comment 3 Alexandre Baumeige 2017-02-27 00:34:20 UTC
Unable to get past the issue:
The name 'SBConnectionString' does not exist in the current context

using WindowsAzure.Messaging;
and / or
using Microsoft.WindowsAzure.MobileServices;

Any ideas?