Docker Compose ASP.NET Core to Nano Image with Windows Container

In this article, I would like to demonstrate how to deploy an ASP.NET Core application with SQL Server dependency to nano server by docker. To support .NET Core in docker, Microsoft has published both of linux and windows server 2016 nano images in docker hub, you can reach them in dotnet repository. If this is…

0

How to Fix “Access to OData is disabled” when Calling Graph API

Microsoft Graph and Office 365 Unified API are widely used to make development based on Office 365, while when calling calendar related API, you may experience “Access to OData is disabled” failure shown below. client-request-id: 4812d5c0-7a5d-4416-ae8b-5f9cefa873a5 content-type: application/json cache-control: private request-id: 4812d5c0-7a5d-4416-ae8b-5f9cefa873a5 Status Code: 403 { “error”: { “code”: “ErrorAccessDenied”, “message”: “Access to OData is…

0

Debug ASP.NET Core via LLDB on Ubuntu

I have been using Windbg and SOS for several years and they are really good tools to perform .Net deep debugging. With the newly released cross platform .NET Core, is there a similar way to make the same? Surely Windbg and SOS don’t apply to this scenario. Fortunately, the .NET Core team has been porting the…

1

A Look at Cookie Authentication in Katana

Katana provides cookie middleware to serialize user principal into an encrypted cookie and the cookie is used to validate the authenticated user in subsequent request. This post will take a look at Katana’s cookie authentication implementation and see the machine key’s role in this procedure. The sample used in this post is one ASP.NET MVC5…

1

Figure Out the Line of Code When PowerShell Hangs

When executing Powershell script, there could be slowness or hang issue. In order to solve this kind of problems, what can we do? Ideally, we can just add more log and run the script again to reproduce the problem. While, in some condition, the script is just running in production environment and the log is…

0

Kerberos Constrained Delegation with ASP.NET

Some security issue may involve kerberos delegation, I have to capture network monitor to check the trace. Therefore, I am going to document the step to configure constrained kerberos delegation with ASP.NET application. The demo environment is in a single contoso.com domain. There are four computers(2012R2): dc: the domain controller for contoso.com dev: the development…

0

TFS and Jenkins Integration

As soon as there is a new code submit to TFS, TFS can notify Jenkins to perform continuous integration build or test. This is effective for unit test as we always would like to trigger unit test to check whether there is any code regression. This blog will cover: How to create the project in TFS….

3

Use SQL Server as DSC Pull Server Backend?

Recently, I am working on a request to check the possibility to use SQL Server as Powershell DSC Pull Server’s backend. As DSC server supports both of ESENT DB and MDB which is connected by OleDB provider, I plan to use OleDB to connect my SQL Server as well. While, after everything configured, I got…

1

Tips to handle live tile update in background task

When implementing a UWP application, a separate background task could be used to update live tile. In this post, I am going to cover some scenarios that tile update doesn’t work or doesn’t work as expected, hope this can save your troubleshooting time. If any template with image in TileTemplateType such as TileSquare150x150PeekImageAndText01, is used…

1

Resource Owner Password Credentials Grant in Azure AD OAuth

Azure AD supports varies grant flows for different scenarios, such as Authorization Code Grant for Web server application, Implicit Grant for native application, and Client Credentials Grant for service application. Furthermore, the Resource Owner Password Credentials Grant is also supported for the case that the resource owner has a trust to the target application, such…

8

Access Exchange Online by PowerShell in C#

For exchange online management, the most convenient and powerful approach is Exchange Online PowerShell Cmdlet. Before calling each management cmdlet, we need establish a remote session firstly and Connect to Exchange Online PowerShell is a good start for this.   In the meantime, probably you would like to access exchange online from C#, such as…

3

The difference between the tokens used by Microsoft Graph API and Azure AD Graph API

Microsoft Graph API and Azure AD Graph API are two sets of Restful services to query office 365 user or organization’s information. The obvious difference for these two services are the endpoints that Microsoft Graph API is https://graph.microsoft.com and Azure AD Graph API is https://graph.windows.net. On authorization part, both of the two Graph APIs are…

2

Keep Node.js update to install wdio

When install Visual Studio 2015, you might select Node.js in the wizard. It will work smoothly to install gulp, angular etc.   However, when you are going to install wdio utility of webdriverio by “npm install wdio”, you might experience the following error.   Apparently, wdio is dependent on fibers; there is error when node-gyp…

0

Debug protractor script in Visual Studio Code

Selenium is a popular open source project to support web end-to-end automation, especially it supports multiple programming languages, such as C#, Java and Python etc. Protractor is based on selenium webdriverjs and provides progamming support from JavaScript approach. Protractor has handy element location support for angularjs, this has made it very popular. As protractor is based…

11

Use Procdump to troubleshoot white screen issue of Bonobo git server

Bonobo git server is a handy open source project to setup self hosted git server easily in IIS for Windows platform, while in some machines, the home page could be white screen without displaying correctly. This is a common situation when we are working on 3rd or open source project because not familiar with the…

0