UCMA 4.0 - using Microsoft.Rtc.Collaboration.Sample.Common not existed - lync-2013

I am a newbie in Lync and currently developing an application by Lync UCMA 4.0. But when I add reference Microsoft.Rtc.Collaboration and using Microsoft.Rtc.Collaboration.Sample.Common; occured error:
The type of namespace 'Sample' does not exist in the namespace 'Microsoft.Rtc.Collaboration' (Are you missing an assembly reference?)
I had added
Microsoft.Rtc.Collaboration
into my project.

I guess you are following an example as Sample.Common is not a member of the Microsoft.Rtc.common namespace.
The Sample.Common namespace appears in a number of Microsoft example and is usually created as part of the tutorial.
Have a look at the following for a code listing for UCMAHelper class in the Sample.Common namespace https://msdn.microsoft.com/en-us/library/office/hh527753(v=office.14).aspx

Related

Unity script error message namespace MonoBehaviour not found

I've been trying to write a script for my unity project, but the console gives the following error messages.
The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?
The type or namespace name 'Transform' could not be found (are you missing a using directive or an assembly reference?
Anyone got a clue?
https://i.stack.imgur.com/Ddy7J.png
https://i.stack.imgur.com/524pb.png
It's using.UnityEngine; small caps, the u in using is written in lowercase.

Mapbox not opening in unity?

I have the 2020.3.32f1 version of Unity and have tried to open Mapbox version 2.1.1 - the current one I am being told by the Mapbox website to download. It says I need Unity 2017 and higher so everything should be right, correct? Then why does it not load properly and I get the following errors:
Assets\GoogleARCore\SDK\Scripts\ARCoreBackgroundRenderer.cs(43,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
Assets\GoogleARCore\SDK\InstantPreview\Scripts\InstantPreviewManager.cs(32,23): error CS0234: The type or namespace name 'SpatialTracking' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
Assets\UnityARInterface\ARRemote\Scripts\ARRemoteEditorInterface.cs(40,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
Assets\UnityARInterface\Scripts\ARCoreInterface.cs(51,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
Assets\UnityARInterface\Scripts\ARKitInterface.cs(26,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
A polygon of Mesh 'cone' in Assets/Mapbox/Examples/2_AstronautGame/AstronautGame/Park/cone.FBX is self-intersecting and has been discarded.
Problem detected while importing the Prefab file: 'Assets/MapboxAR/Prefabs/AR.prefab'.
The file might be corrupt or have missing nested Prefabs. See details below.
Warnings:
Component at index 2 could not be loaded when loading game object 'ARCamera'. Removing it.
So yeah, no matter what I do, it won't load/open properly - the examples window from Mapbox doesn't open, nor does the Ampbox tab appear at the top of the Unity UI. It's really, really annoying, I can't even open the thing!!! I just need to get into it so I can start learning with the PocketDroid Go example if anyone knows that one... Please help it's been days and I am getting nowhere and it's literally step one: "open the package!" :(
Problem solved - Unity changed the name of ARBackgroundRenderer to ARCamera in like 2019 or something but Mapbox have never updated their SDK, hence the errors. If you use the April 2018 version of Unity, it works.
Have you tried using unity Unity 2017.1.0 instead of 2020.3.32f1? Their examples seem to be using that version of the editor.

The type or namespace name 'OpenIdConnectOptions' could not be found while upgrading my ASP.NET Core 2.2 to 3.1

I am trying to upgrade my ASP.NET Core 2.2 to 3.1 but getting below error.
Not Sure how to resolve it.
I am getting below error
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'OpenIdConnect' does not exist
in the namespace 'Microsoft.AspNetCore.Authentication' (are you
missing an assembly reference?)
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'OpenIdConnectOptions' could
not be found (are you missing a using directive or an assembly
reference?)
Severity Code Description Project File Line Suppression State
Error CS1061 'AuthenticationBuilder' does not contain a definition for
'AddOpenIdConnect' and no accessible extension method
'AddOpenIdConnect' accepting a first argument of type
'AuthenticationBuilder' could be found (are you missing a using
directive or an assembly reference?)
Error CS0006 Metadata file 'C:....\bin\Debug\netcoreapp3.1\aa.dll' could not be found
I have this using directive in my solution.
using Microsoft.AspNetCore.Authentication.OpenIdConnect
run the following in your Package manager console
Install-Package Microsoft.AspNetCore.Authentication.OpenIdConnect -Version 6.0.4
For .Net 6

Facing Issue When I build the MixedRealityToolkit-Unity (V2) sample project

I am facing issue when I build the MixedRealityToolkit-Unity(V2) sample project,I faced the following error :
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(418,73): error CS0246: The type or namespace name 'HandJointKind' could not be found (are you missing a using directive or an assembly reference?)
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(111,17): error CS0246: The type or namespace name 'HandMeshObserver' could not be found (are you missing a using directive or an assembly reference?)
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(382,33): error CS0246: The type or namespace name 'HandJointKind' could not be found (are you missing a using directive or an assembly reference?)
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(412,26): error CS0246: The type or namespace name 'JointPose' could not be found (are you missing a using directive or an assembly reference?)
I am running on Windows 10 Insider preview with
OS build : 18362.30
Version : 1903
Also I double checked with build setting
Minimum SDK is 10.0.10240.0
Target SDK version is “Latest installed”
I am using mrtk_development branch for the MixedRealityToolkit-Unity.
Can any one help me or guide me if I am missing any steps here for the set-up.
Thanks.
These errors look like Unity is actually not using the latest installed SDK. Have you tried the following:
Restart your computer (not kidding).
Delete your old Build/UWP folder.
Delete Unity's Library folder (under YourProject/Library).
Re-open Unity, and try to build again.
Finally I am able to build MRTK-V2 into HoloLens :-) Just give it a try by adding Windows SDK 18362+ which is mention on Toolkit home page.
I thought I am running under insider build 18362.30 so I don't need to install this SDK, But seem like it is required anyway.

Hangfire.Mongo cannot be referenced in Visual Studio 2013

I did this:
Created new WebAPI project in Visual Studio 2013
Package Manager Console: Install-Package HangFire
Package Manager Console: Install-Package HangFire.Mongo
Put the example code in Global and created the example Startup class described here https://github.com/sergun/Hangfire.Mongo
When I compile I get the error The type or namespace name 'Mongo' does not exist in the namespace 'Hangfire' for Hangfire.Mongo namespace, but I clearly have the reference.
You probably are using an old target framework. It happened the same thing to me a while back.
Check your project properties -> Application -> Target framework and make sure it's at least .NET Framework 4.5.1