Search

  • Graceful Shutdown Azure WebJobs using SDK functions

    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 there you could create a FileWatcher on the file returned by " Environment.GetEnvironmentVariable
    Posted to Holger's Blog (Weblog) by Holger Vetter on 01-31-2017
  • VSO azure deployment - Unable to retrieve connectiondetails

    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" build step. In this build step, you should have a template file for creating the App Service
    Posted to Holger's Blog (Weblog) by Holger Vetter on 12-12-2016
  • Identify ASP.Net Core startup errors

    Maybe you know this great and informative error message "An error occurred while starting the application." from asp.net core when the 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", "true") CaptureStartupErrors
    Posted to Holger's Blog (Weblog) by Holger Vetter on 11-30-2016
  • How to identify Swagger errors

    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. public void Configure( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory
    Posted to Holger's Blog (Weblog) by Holger Vetter on 11-18-2016
  • ASP.NET Core returns StatusCode:500

    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. Now the visual studio showed this exception from
    Posted to Holger's Blog (Weblog) by Holger Vetter on 11-10-2016
  • .NET Core json settings and environment variable

    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. This happens because the application looks for it on the relative path where the command
    Posted to Holger's Blog (Weblog) by Holger Vetter on 10-19-2016
  • ASP.NET MVC WEB API Impersonation Thread issue

    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. When the user sends a request to the server it
    Posted to Holger's Blog (Weblog) by Holger Vetter on 09-20-2016
  • Host plain HTML/Javascript page in Web Part (angular/bootstrap)

    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 part. To archieve this, first create or use a document library and upload your html/javascript/css
    Posted to Holger's Blog (Weblog) by Holger Vetter on 06-17-2016
  • Create InfoPath file from manifest without tool

    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 to repack the extracted .xsn file. Just open the manifest.xsf file with InfoPath Designer, click “Save
    Posted to Holger's Blog (Weblog) by Holger Vetter on 05-23-2016
  • Hyper-V another user connected to virtual machine

    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 it has no password. But then you will lose the connection with following error: "The connection
    Posted to Holger's Blog (Weblog) by Holger Vetter on 05-17-2016
Page 1 of 4 (33 items) 1 2 3 4 Next > | More Search Options
developers.de is a .Net Community Blog powered by daenet GmbH.