Skip to main content

Posts

ASP.NET MVC EditorFor bug

I think I need Anger Management therapy after losing waaaaay to much time looking at a problem inside ASP.NET MVC. What was the problem? I created a nice ASP.NET MVC EditorTemplate to use the Kendo UI NumericTextBox for decimal fields. Here is the corresponding Razor file: But for an unknown reason MVC wasn’t picking up the correct EditorTemplate. Here is the original code: I had to update the code to include the EditorTemplate type to get it working: Smells like a bug to me!

Eurelia–The next generation version of Durandal

After leaving the Angular Team, Rob Eisenberg continued his effort in building the greatest next generation JavaScript client framework. Yesterday he finally shared his work with the rest of the world and announced Aurelia . Here are some of the features as mentioned on the Aurelia website : Forward thinking: Written with ES6 and ES7 but transpiles to today’s browsers Modern architecture: Multiple small replaceable components Two-Way databinding: Performant two-way binding to any object using adaptive techniques Extensible HTML: Read as ‘Angular Directives’ Routing & UI Composition: The already great Durandal router on steroids Broad Language Support: Written with TypeScript, AtScript, CoffeeScript,… in mind … And here an introduction video: Introducing Aurelia from EisenbergEffect on Vimeo . As a big fan of Durandal(and Caliburn), I’m really interested in the results. I know what to look into the upcoming weeks…

:-( Helios failed to start

For a project we are comparing multiple web server options in terms of performance. The project will be using ASP.NET Web API, but the web server will be either IIS(using the ASP.NET pipeline) IIS(using Microsoft Helios ) Selfhosting(using the OWIN selfhost) Or something else(don’t know what) I downloaded the required(pre-release) NuGet packages, configured my web project and started the application. But what I saw, was not what I expected: I was welcomed by the following error message: :( Helios failed to start. The ApplicationStart method threw an exception. Detailed exception information is below. System.TypeInitializationException: The type initializer for 'Microsoft.Owin.Host.IIS.Security.Algorithms' threw an exception. ---> System.Security.Cryptography.CryptographicException: Unknown error "-1073741275". at Microsoft.Owin.Host.IIS.Security.Algorithms.CreateSP800108AlgorithmHandle() at Microsoft.Owin.Host.IIS.S...

Azure WebJobs: Log location

A colleague asked me where he could find the logs of Azure WebJobs he configured inside an Azure Website. For every Azure Website you create a Kudu dashboard exist. To get to this website browse to https://{site name}.scm.azurewebsites.net (in other words, add .scm in front of your Azure website name). Click on the Debug console menu item and choose the CMD option. The Kudu Remote Execution Console is loaded. You can now browse to the correct log location either by using the command line or by clicking through the folders at the top. Log files for the Azure Webjobs can be found under d:\home\data\jobs More information about Azure Website logging can be found at:   http://blog.amitapple.com/post/2014/06/azure-website-logging/ http://azure.microsoft.com/en-us/documentation/articles/web-sites-enable-diagnostic-log/