I'm trying to follow the examples online (https://learn.microsoft.com/en-us/azure/active-directory/develop/guidedsetups/active-directory-windesktop) but don't appear to have the correct library installed...?
Via NuGet cmdline: Install-Package Microsoft.Identity.Client -Pre
All the examples on the internet use a method that's part of the PublicClientApplication class, PublicClientApp.Users.FirstOrDefault() to get the same auth token that was received when following the SignOn dialogs. However this method does not apparently exist in my codebase!?!?!
Does anyone have any insights as to why this might be? Or insights as to the new workaround for this subject? I believe the content i'm using hasn't been modified since April 2017..
Microsoft.Identity.Client version = 1.1.2.0, runtime version v4.0.30319
Adding a reference to System.Linq resolved the issue originally stated..
Related
I have been searching through the net for the package and reference required to use MimeReader but to no avail.
I imported MimeKit but MimeReader is not available.
Is the functionality depreciated or am I looking for the wrong keyword?
Usage: MimeReader mime = new MimeReader();
Any help would be greatly appreciated.
MimeReader is part of Microsoft.Exchange.Data: https://learn.microsoft.com/en-us/previous-versions/office/exchange-server-api/aa579311(v=exchg.150)
There is no nuget package for this API.
I believe these assemblies are only available if you have the Microsoft Exchange SDK.
Update: MimeKit >= v3.0 now has a MimeReader class, but it does not have an identical API to the MimeReader in Microsoft.Exchange.Data
I am running into a strange (and hopefully very simple) issue where the .get() method does not seem to be defined in my spfx project.
This is a typescript 2.4.2 project for creating an spfx webpart for SharePoint 2016 on prem.
The project was started using yo #microsoft/sharepoint
There was a fix applied to update some typescript 2.2.2 references as per instructions here
The dependencies for PnP were loaded:
npm install #pnp/logging #pnp/common #pnp/odata #pnp/sp --save
Imports included
import { sp, Web } from '#pnp/sp';
Within a function of my render() method I am trying to make a very simple call as follows
let web = new Web(this.context.pageContext.site.absoluteUrl);
return web.lists.getByTitle(this.properties.listName).fields.filter("Title eq 'Decision Status'").get();
I am getting an error that says Property 'get' does not exist on type 'Fields'. To try and make it even simpler I tried running
let web = new Web(this.context.pageContext.site.absoluteUrl);
web.get();
And I get a similar error saying 'get' does not exist on type 'Web'. The examples they show in the documentation show very similar code, but I can't determine what about my code is incorrect here.
If this issue is still relevant,check the version of the #pnp/sp installed. The latest one as of today is 1.2.9 and should support get
I was dealing with this issue, my solution was install this others dependencies with the same version.
#pnp/common
#pnp/logging
#pnp/odata
#pnp/sp
hope that helps for anyone with this problem!
I have created a Xamarin Android project. Via NuGet, I have added a reference to the Grpc package.
In my activity, I want to create a Grpc.Core.Server instance, but it won't let me because of the following runtime error:
System.IO.FileNotFoundException: Error loading native library. Not found in any of the possible locations: /storage/emulated/0/Android/data/DecodingPoC.DecodingPoC/files/.override/libgrpc_csharp_ext.x64.so,/storage/emulated/0/Android/data/DecodingPoC.DecodingPoC/files/.override/runtimes/linux/native/libgrpc_csharp_ext.x64.so,/storage/emulated/0/Android/data/DecodingPoC.DecodingPoC/files/.override/../../runtimes/linux/native/libgrpc_csharp_ext.x64.so
I haven't been able to find any information on this for Xamarin, only iOS, so I am hoping someone here can provide a suggestion on how to proceed.
Please note that gRPC c# support for Xamarin is currently experimental. The stable packages in nuget.org don't provide the support yet (that will change with the upcoming v1.15.x release).
See HelloWorldXamarin instructions on how to obtain the correct nuget package (or use the https://www.nuget.org/packages/Grpc.Core/1.15.0-pre1 pre-release package which already supports Xamarin):
https://github.com/grpc/grpc/tree/master/examples/csharp/HelloworldXamarin#experimental-only
You might also need this workaround if you are using Xamarin.Forms: https://github.com/grpc/grpc/issues/16250
I am using HtmlAgilityPack 1.6.2 within a .NET Core 2.0 Console application. HtmlWeb.Load function works fine but LoadFromBrowser function is not available. I got a compiler error. The testing code is copied from the tutorial page so it should be correct. Please advise how to use the API.
The LoadFromBrowser method requires the WinForm WebBrowser to work.
Since there is not WebBrowser in .NET Core 2.0, this method is not available.
This method could be available in the future by replacing the WebBrowser by an open source browser but there is currently no short-term plan for it.
EDIT: Answer comment
Is there still no solution for this?
I didn't try it, but some package support web browser for .NET Standard such as : https://www.nuget.org/packages/Selenium.WebDriver
So perhaps if you use this package to retrieve the HTML and use it with HAP, that will work.
I have the same prob, installed Selenium.WebDriver, but don't know how to use it with HAP to wait until JS is loaded.
I'm trying to follow these instructions for building with ASP.NET Web API and MVC 3, but am running into a problem around Step 4 tring to add this line:
routes.Add(new ServiceRoute("api/contacts", new HttpServiceHostFactory(), typeof(ContactsApi)));
The issue seems to be around the HttpServiceHostFactory; I don't have the proper reference. The related namespace is Microsoft.ApplicationServer, which I cannot find on my machine at all. I've installed AppFabric to no avail. Any idea where I can find this, and why it wasn't installed along with Web API?
Heh. Found the answer - grabbed the wrong NuGet package. When searching through the packages, "WebApi.All" never showed, both other webApi packages did. Had more success using the Package Manager Console and typing in Install-Package WebApi.All -Version 0.6.0.
Soooo... nevermind.