Hey, this week I saw this exception in Visual Studio 2017 (15.3.5): I was wondering when VS got the feature to display the property(getter) which caused the exception. Think the feature is new to VS. If anybody knows when this feature was added to VS...

We migrated a project to ASP.NET Core 2 (preview) and needed to configure swagger. In ASP.NET Core v1 we used this code to load the auto generated xml file into swagger: services.ConfigureSwaggerGen(options => { //Determine base path for the application...

I am using the auto generated XML file in Swagger. On my dev machine everything worked fine, but after publish the file was gone. This can result in an application crash on startup if you are not checking if the file exists before handing the filepath...

When writing Microsoft Azure WebJobs maybe you ask yourself how to detect that the App Service hosting your webjob is shutting down. Earlier you would do something like this: http://blog.amitapple.com/post/2014/05/webjobs-graceful-shutdown/ As stated...

When deploying your application via visual studio online build process and using the "Azure App Service Deploy" build step, make sure the App Service you want to deploy to exists. Otherwise create it with the "Azure Resource Group Deployment"...

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...

Last week I had the problem that Swagger wasn't working. It just showed an HttpStatusCode 500 and in Visual Studio there wasn't any exception. To identify the error I had to activate the 'DeveloperExceptionPage' in the Configure method...

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...

Today we deployed .NET Core application on a test machine and then configured the application as environmental variable in the system. When we started the command line application, it couldn't find 'settings.json' file for reading the configuration...

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...

Today I implemented an example web application using bootstrap/angular which should perform basic CRUD operations on Sharepoint 2010 Lists with rest api. You can host your complete bootstrap/angular web application in sharepoint and display it in a web...

Hello, last year I blogged about building an InfoPath files from before extracted manifest file ( http://developers.de/blogs/holger_vetter/archive/2015/07/16/cabfilepacker-for-creating-infopath-cab-files.aspx ). But there is a different and easier way...

Hello, I created a new Hyper-V machine and installed Windows 10 Pro on it. After installation I created a default user with no password, for faster login. When you start the machine and connect to it, windows will automatically login with this user, because...

Hello, in my case I had a svg element which scales with window size and I needed that the displayed numbers on the image are changing depending on the window of the svg element. To archieve this I had to subscribe to the window resize event with angular...