Shane Bartholomeusz

Geek and lover of all things tech related

Page 7 of 12

Solved: Dynamics 365 Unable to Cast Object Error

Problem:

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

Problem

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

Fix: Unable to Uninstall CRM Profiler

Problem

While trying to debug a new custom workflow plugin in my Dynamics 365 environment I encountered the below error.CRM Profiler Error Continue reading

Fix NullReferenceException in CRM Plugin Registration Utility

Problem

If you encounter the below error when in Dynamics CRM while trying to profile a custom workflow plugin using the CRM Plugin Registration utility

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

at PluginProfiler.Library.WorkflowXamlUtility.InstrumentStep(XmlNode activityNode, XmlNamespaceManager ns, InstrumentedStepConfiguration step, String workflowAssemblyName)

at PluginProfiler.Library.WorkflowXamlUtility.InstrumentXaml(CrmServiceClient service, String xaml, IList`1 steps)

at PluginProfiler.Library.ProfilerManagementUtility.EnableWorkflow(CrmServiceClient service, String overrideKeyFileName, Guid workflowId, Boolean persistToEntity, String persistenceSessionKey, Boolean includeSecureInformation, Boolean isContextReplay, CustomActivityStep[] workflowSteps)

at Microsoft.Crm.Tools.PluginRegistration.CommonControls.ProfilerSettingsViewModel.btnOk_Click()
System.NullReferenceException CRM Plugin Registration Screenshot
Continue reading

Dynamics 365: System.NullReferenceException Plugin Error

The Problem

After a recent CRM Solution deployment to our Dynamics CRM 365 environment users started encountering the below plugin error when updating a Contacts entity record.

System.NullReferenceException: Object reference not set to an instance of an object

Continue reading

AWS Cloud Practitioner Exam Guide

Having just passed the AWS Certified Cloud Practitioner certification, I wanted to share some of my thoughts and insights for those that plan to sit the exam.

The AWS Cloud Practitioner Certification is a great entry point into the world of Amazon AWS.

AWS logo
Continue reading

.NET Network Tracing

System.Net Tracing

ASP.NET Logo

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

How To: Google Analytics In Chrome Extensions

Background

Google Analytics

Google has replaced its legacy analytics library https://ssl.google-analytics.com/ga.js with the new and improved Universal Analytics library https://www.google-analytics.com/analytics.js.

I’ve been working on a Google Chrome Browser Extension but had some trouble integrating it with Google Analytics. Google’s own tutorial hadn’t yet been updated to use the new analytics library. In this post I’ll explain how I did it.

Continue reading

Azure VM “The Server Encountered An Internal Error”

And so it begins …

The day had only just begun … I got into the office … I grabbed a coffee … sat down at my desk.

I tried connecting to one of my Azure dev VM’s but for some reason I couldn’t RDP to it. I waited a bit of time and then tried again, but still no luck.

My Azure AutomationAccount was configured to automatically start and shutdown my VM’s each working day.

I checked the logs for my AutomationAccount and found the message

“The Server encountered an internal error. Please retry the request.”.

Azure Portal Internal Error Screenshot
Continue reading

CLOC – Count Lines of Code

Overview

I recently had the requirement to count the number of lines of code for each application that we maintain.

Obviously I didn’t want to do this manually … it would have been way to time consuming … so I began searching for solutions.

While looking around I came across a fantastic command line tool called CLOC (Count Lines of Code) on github. This utility does exactly what it says on the tin – it parses your code file to counts the lines of code.

CLOC Screenshot
Continue reading
« Older posts Newer posts »

© 2025 Shane Bartholomeusz

Theme by Anders NorenUp ↑