Cannot access a disposed object in ASP.NET Core when injecting DbContext

Find the root cause of what really happened to you disposable object.

Advertisements

Working with ASP.NET core I have seen this error multiple times and can be hard to debug. The error can have multiple root causes. It can be a real pain to find the cause and it is sometimes fixed by only taking care of the symptoms. By finding the root cause, you can take the appropriate action in your code.

Continue reading “Cannot access a disposed object in ASP.NET Core when injecting DbContext”

Let your build work for you, shorten the feedback loop

Tips and tricks Inline Powershell task VSTS

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Let your build work for you Continue reading “Let your build work for you, shorten the feedback loop”

VSTS Rest API from Inline Powershell

Tips and tricks Inline Powershell task VSTS

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: VSTS Rest API Continue reading “VSTS Rest API from Inline Powershell”

Navigate VSTS project as filesystem from Inline Powershell

Tips and tricks Inline Powershell task VSTS

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Navigate VSTS as filesystem Continue reading “Navigate VSTS project as filesystem from Inline Powershell”

Install a Powershell Module Inline Powershell VSTS

Tips and tricks Inline Powershell task VSTS

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Install Powershell Module Continue reading “Install a Powershell Module Inline Powershell VSTS”

Download a file from Inline Powershell

Tips and tricks Inline Powershell task VSTS

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Download a file Continue reading “Download a file from Inline Powershell”

Call a WebHook from Inline Powershell

Tips and tricks Inline Powershell task VSTS

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Call WebHooks from your build pipeline Continue reading “Call a WebHook from Inline Powershell”