-
When implementing .NET Core dependency injection inside of ASP.NET Core or .NET Core. Assume you have implemented some class like 'IoTService.Config.GatewayConfig' and get following error on startup: {"message":"Unable to resolve service for type 'IoTService.Config.GatewayConfig'...
-
Most enterprise application soon or latter, have a requirement to trace out the version of a currently running application. This post shows few example, which demonstrates how to do this in .NET Core. var ver = Assembly .GetEntryAssembly().GetCustomAttribute< AssemblyInformationalVersionAttribute...
-
This time I want to share with you a short example of how to implement WebSockets in your ASP.NET 4.6 Web API / AngularJS Application by using WebSocketHandler from Microsoft.WebSockets nuget Package. Installing a Microsoft.WebSockets Nuget package First of all you need to install the Microsoft.WebSockets...
-
Maybe you know this great and informative error message "An error occurred while starting the application." from asp.net core when there was an exception during the startup. To identify and understand what happened, you must extend the Main method with the following things: UseSetting("detailedErrors"...
-
I ported an MVC WEB API project to ASP.NET Core and now the Service just returned StatusCode: 500 every time I called it. Visual Studio doesn't give me any information or Exception to indicate what happened. To find the error I disabled "Enable just my Code" in the visual studio settings...
-
When building Distributed Systems in Cloud or On-Prem, you will usually have to deal with token flow. That means, some application or user have to securely enter the system on some specific place. If you have distributed system if is not unusual that some applications in the system do not use authentication...
-
I just found out that my Azure Webjob was running 32-bit all the time without me even knowing it. As I tried to attach my debugger on the Webjob I got following error message: "Unable to attach. The 64-bit version of the Visual Studio Remote Debugger (MSVSMON.EXE) cannot be used to debug 32-bit...
-
When working with ASP.NET Core, you might get following error on start of your application: Unable to start process C:\Program Files\dotnet\dotnet.exe. The web server request failed with status code 500, Internal Server Error. The full response has been written to C:\Users\***\AppData\Local\Temp...
-
As you can see in my previous post , I am currently working on securing an ASP.NET MVC Web Application based on OWIN. Because of that is this post some sort of continuation of my previous one. So, my Web Application in pure Single Page Application that works on AngularJS and is being generated by a Gulp...
-
In this Post I will (try to) shortly explain how to Implement Web Sign on with Active Directory Federation Services under ASP.NET MVC and OWIN/Katana as Middleware. There is plenty of Resources (read Code Snippets) on the Net about this subject, but what I actually found as important as the Code Snippets...
-
For all of you using Swagger, a great tool or let's better say Framework to Document and Represent your RESTful Web API Service under ASP.NET Core, you will probably be interested in following few lines of Code that enables Swagger to use your Project XML Documentation as information source. First...
-
In an ASP.NET MVC WEB API application I implemented Windows Authentication with custom roles by using an implementation of IIdentity. In my setup the user gets authenticated by NTLM, then we have the user name. Now there is a part in the OWIN Pipeline which gets the roles for this user and caches them...
-
Do you know some of these exceptions? I’m sure you do. In last years we are becoming more and more “cool” web technologies. But I have a feeling that productivity is in some cases rolled back to the 1998-2001. 15+ years ago we deled with a term called “DLL-hell”. And we fixed the hell, but new hells...
-
Assuming that there is a function set inside of the WebJob shown on picture below, there are several options to start this job from your executable file. If you want to start the manually triggered webjob function, use following code: JobHost host = new JobHost (); Task callTask = host.CallAsync( typeof...
-
Sometimes you want to delete Azure WebJob. It is not the best way, but it is the way which always works, independent on which portal or VS tools version you use. Connect to your WebSite via FTP client and navigate to folder shown below. " style="border-left-width:0px;border-right-width:0px;background...