I get a null response for me.Manager when I run the following code:
var me = await graphServiceClient.Me.Request().Expand("Manager").GetAsync();
But using the Graph Explorer, the following does give me my manager:
HTTP GET: https://graph.microsoft.com/v1.0/me/manager
How do I get my manager using the MS Graph .Net Core SDK?
I found out I have to use the Beta version of Microsoft Graph since only that allows the expansion of managers in both the SDK and in the graph explorer. I used this instead and it worked:
https://www.nuget.org/packages/Microsoft.Graph.Beta/
Related
I am trying to do a xamarin.android application to use ML Kit, and I am folloing this steps:
1.- I create my android application in visual studio, using the template for that.
2.- In the nuget manager, I add the Xamarin.GooglePlayService.MLKit.BarcodeScanning
According with google documentation, one step it is configure the scanner, for example with this code:
val options = BarcodeScannerOptions.Builder()
.setBarcodeFormats(
Barcode.FORMAT_QR_CODE,
Barcode.FORMAT_AZTEC)
.build()
Then problem is that I can't have access to BarcodeScannerOptions.Builder.
I have tried to add the using Xamarin.GooglePlayService.MLKit.BarcodeScanning, but I don't have this namespace available.
So I wondering how I could use the bardcode sacnner of ML Kit.
Thanks.
I don't have any experience on xamarin.android. By google searching, looks the namespace is Xamarin.Google.MLKit.BarcodeScanning.
https://www.nuget.org/packages/Xamarin.Google.MLKit.BarcodeScanning/
I have requirement to resolve dependencies from xml file and have used unity dependency injection.
Everythins is working fine in console and ASP.net core applications.
However in .net core functions below piece of code is returning null.
var unitySection = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
I have added app.config and unity.config and marked the properties to be copied to bin on build.
Default output type Function app is Class library, changed to console as well but no luck.
Any help is appreciated.
From v2, azure function doesn't support ConfigurationManager and you can refer to environment variables, you need to use System.Environment.GetEnvironmentVariable.
Please have a look of this reply of azure teams:
https://github.com/Azure/azure-functions-core-tools/issues/328#issuecomment-355697529
ConfigurationManager is only be used in azure function v1. From v2, it has been moved to a new configuration model:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?tabs=basicconfiguration&view=aspnetcore-3.1
And not based on ConfigurationManager or its APIs any more.:)
I'm beginner in asp.net mvc and want to write simple web application for practice,show map and on the map show road map,for that purpose use the this tutorial and tools:
this line
but in this line:
.Polylines(pf => pf.Add()
i get this error:
Map Builder does not contain Polylines are you missing assembly?
how can i solve that ?thanks.
As stated in this tutorial, you need to create your LatitudeLongitude values as a List to create polyline using asp.net.
var points = new List<GLatLng> { new GLatLng(59.6919, 17.8582),new GLatLng(59.3030, 18.0395),new GLatLng(58.9789, 17.5341) };
var polyline = new GPolyline(points,"#ff0000",1);
Check this related SO questions:
Trying To Draw polyline Resulting in Error C# Web App
MVC Google Map Polylines
Had exactly the same problem.
If you follow the official instructions and if you execute
Install-Package Jmelosegui.Mvc.Googlemap
in PM Console, you will get version 0.8.0 installed which does not contain Polyline yet.
See: http://www.jmelosegui.com/map/
The author told on his GitHub page that you might need to install the newest beta version to get all new features. It is indeed confusing that he promotes already features there which are not officially released yet. A beta version is not a release version for me. ;-)
Therefore execute
Install-Package Jmelosegui.Mvc.Googlemap -Version 0.8.16-beta-gd2b2689432
in PM Console, that new beta version contains Polyline.
More information: https://libraries.io/nuget/Jmelosegui.Mvc.Googlemap
Let me give you some background what I'm trying to achieve before I call out the problem.
Use TFS API to Get Services Work Item.
Get all the Open Bugs.
Write in excel all the Open Bugs (from step2).
Send step3 Excel as Attachment through SMTP.
Schedule a Windows Task on Windows Server 2012 and X64 to perform above steps on daily basis.
Problem:
While running step5 I'm not able to write into Excel using OLEDB because of exception"The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine". To resolve this issue, I have build my project Platform Target=X64.
The excel issue is resolved but I'm not able to access TFS API because it is not able to load DLL Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader.
Kaleem.
If you get the following error message: "Could not load file or assembly ‘Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader’ or one of its dependencies. An attempt was made to load a program with an incorrect format". Please take the solution described in this blog: http://www.tonicodes.net/blog/installing-and-configuring-odata-service-for-tfs-11/
You may crucify me for this, but the link for "Support - Drive API" on the Google drive SDK website itself took me here - on the SO forum to put up a new question, so thats exactly what I'm gonna do as I didnt find any other useful info elsewhere.
Is there any way at all, and if so, where could I get any documentation/help/examples for accessing Google Drive from my delphi application? The online SDK seems to only allow use for iOS, Web and Android devices... no Desktop api available?
I know about TAdvGDrive component that comes with Tms Cloud Pack, but am looking into a solution that wouldn't cost me 100$ to get it done.
I've done this using REST (unfortunately I can't post the code here because was a private work for a customer). Anyway you can check for the Google Drive API REST documentation here. Starting with Delphi XE5 you can use the REST Client Library (If you are using an older version of Delphi you can use Indy or another library to build a basic REST library). I'm not aware of any sample about using The Google Drive SDK REST and Delphi, but you can start reading the RESTDemo Sample App, and check the Google documentation.
UPDATE (01/03/2018) - LINK RESTORED
I just found an article to access the Google Drive SDK using REST and Delphi here.