Shane Bartholomeusz

Geek and lover of all things tech related

Tag: .Net (page 1 of 2)

Solved: Azure Functions Can’t Bind Parameter ‘data’ to Type Error


Recently I came across an unusual error whilst working with C# Azure Functions. When the Function was executed, the console window showed the following error.

The ‘XXXXXX’ function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method ‘XXXXXX ‘. Microsoft.Azure.WebJobs.Host: Can’t bind parameter ‘data’ to type ‘XXXXXX’.

I checked the Activity function parameter bindings however couldn’t see any obvious issue. However after some head scratching I eventually figured out the source of the issue …

In this post I’ll show you how to resolve this issue.

Azure Functions Logo
Continue reading

How to: Implement Azure Web App Authentication – The Easy Way


Let’s face it … security is HARD. Implementing authentication and authorization into applications has always been a challenge and a chore for developers. Building a secure application requires strong knowledge across a number of areas.

Thanks to the power of Easy Auth on Microsoft Azure it’s easier than ever to setup secure authentication for your web application with the click of a few buttons… Yep, I’m not kidding!

Ok let’s get started …

Azure App Service Logo
Continue reading

Fixed: WCF Test Client Max Size Error


When querying a web service using the WCF Test Client you might encounter the below error message. In this article I’ll show you how to resolve this issue.

The maximum message size quota for incoming messages (65536) has been exceeded.

Error message screenshot
Continue reading

Solved: Dynamics 365 Unable to Cast Object Error


While testing an existing C# app that connected to our Dynamics 365 environment, we encountered an unusual error after updating the CRM SDK Nuget package used by the app.

System.InvalidCastException: ‘Unable to cast object of type ‘Microsoft.Xrm.Sdk.Entity’ to type ‘XXXX.Xrm.Model.XXXX.’

Dynamics 365 logo
Continue reading

Dynamics 365: The underlying connection was closed


While upgrading a .NET customisation that interfaced with our client Dynamics 365 online environment (Version 9). I encountered the following error while attempting to fetch some records from our Dynamics 365 instance. Continue reading

.NET Network Tracing

System.Net Tracing


I recently had to troubleshoot a network communication. My app was unable to call an external service endpoint. Troubleshooting network issues can sometimes be as fun as pulling out your own teeth.

In this post I wanted to share a nifty way to perform low-level troubleshooting, which ultimately saved my bacon.

Continue reading

Topshelf – Windows Services Done Right

What is Topshelf?

Many of you probably have experienced the pain of debugging Windows Service applications. A nice alternative is Topshelf Windows Services.

Topshelf allows developers to write Windows Services which can operate as regular Console applications. This is a great open source product that deserves more recognition in the community and that’s why I decided to write a quick post about it. It makes the overall development experience a much, much better one!

Continue reading

ASP.NET App Suspend

What is it?


The .NET Framework 4.5.1 introduces a nice new feature called App Suspend to improve web application performance, and most importantly improve the end-user experience with virtually zero setup required.

MSDN claim that this feature can improve web application startup performance by 90%!!!


Continue reading

Register .Net Framework version with IIS web server

Visual Studio Error

When trying to open a Visual Studio solution, I encountered the following error.

C:\myFilePath\myService.Service.csproj : error  : The Web Application Project XXXXXX.Service is configured to use IIS. IIS is not installed on this computer. To access local IIS Web sites, you must install the following IIS components:       Internet Information Services       IIS 6 Metabase and IIS 6 Configuration Compatibility       ASP.NET In addition, you must run Visual Studio in the context of an administrator account. For more information, press F1.

Dot Net Logo

Continue reading

Capture program exceptions using Sysinternals Process Dump

So what is ProcDump?

I just thought I’d write a quick post showing you how to use the ProcDump utility, yet another great Sysinternals tool. This tool helps you capture unhandled exceptions in real-time from a running program.

Sysinternals Logo

Continue reading

Older posts

© 2022 Shane Bartholomeusz

Theme by Anders NorenUp ↑