XLANGs Object Reference Error when dynamically loading a map in BizTalk

This was one of those very frustrating errors that had a very simple solution.  I had an orchestration that was dynamically loading a map using a Fully Qualified Name (FQN) that is stored in BRE.  The exception looked like this:

{ORCHESTRATION_NAME} encountered an error: Object reference not set to an instance of an object.
at Microsoft.XLANGs.Core.Service.ApplyTransform(Type mapRef, Object[] outParams, Object[] inParams)
at {ORCHESTRATION_NAME}.segment3(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

 Many times, this is the result of not deploying your DLL to the GAC, or not having a schema available in the Management Database.  I double checked both of those, and they were there.  I removed them and manually reinstalled them using gacutil, still got the same error.  It finally occurred to me to use reflection on the assembly to see if the FQN was wrong, and that was indeed my culprit.  The class name had .Outbound appended to it, and my orchestration was trying to load a class that ended in .Maps.  I could have changed the FQL in the BRE, but that would have been inconsistent with naming conventions elsewhere in the project.

The source of the error was adding the map to a Solution subfolder in Visual Studio:

BlogPost1

This made the Namespace of the map default to Maps.Outbound:

BlogPost2

Changing the highlighted property to .Maps and rebuilding/deploying fixed the issue.

Posted in .NET Framework, BizTalk, BRE, Enterprise .NET | Tagged , , , , , | Leave a comment

Continuous Integration with TFS and Azure Cloud Services

Microsoft provides a useful tutorial (located here) for running a TFS Continuous Delivery configuration, and automatically publishing to Azure. This tutorial, while instructive, is somewhat out of date, and it may be useful to have a more personalized experience of building such a continuous deployment, while running through the instructions on the tutorial.

As may be the case for others, the TFS server used for running automated builds was already setup and configured, and the project to be built already linked to this server, so I won’t go into that here. The build server is running TFS 2013, and the ASP.NET MVC5 application being built and deployed is running on Visual Studio 2013.

After verifying the functionality of the build server, I created a package build in TFS Team Build. These configuration settings are for the most part self-explanatory, but the exact configuration in the Process page required a little more work:

Read More »

Posted in Architecture and Development, Azure, Cloud | Tagged , , , | Leave a comment

PostSharp Logging and Fundamentals with C#


Introduction
Before we start learning PostSharp we must understand the idea of Aspect Oriented Programming.

Aspect oriented programming, or “AOP”, is the programming style which allows the separation of distinct, independent functions. This inevitably increases code modularity and in turn drives towards cohesive functionality. We tend to classify these distinct functions as cross-cutting concerns due to the fact that they can “cut across” multiple abstractions in a program. These concerns classify the major parts of a whole application such as the business logic, data model or the user interface. These concerns could be broken down even further if need be. This high level of encapsulation is the central concept behind AOP.

Read More »

Posted in 0-Uncategorized | Leave a comment

Solution to Common BizTalk Deployment errors in Visual Studio

There are a few common deployment errors in Microsoft Visual Studio when redeploying a previously deployed BizTalk project.

“Failed to add resource(s). Change requests failed for some resource.  BizTalkAssemblyResourceManager failed to complete end type change request.  Failed to update binding information.  Cannot update receive port “”.  Transform “” not found”

Untitled picture Read More »

Posted in .NET Framework, BizTalk | Tagged , , , , , | Comments closed

User Impersonation with SharePoint

Recently I had to create a custom web part where all users needed the ability to fill out a text box with some feedback and then submit it to a list where it could be reviewed. This is a pretty simple control to implement if the users that will be submitting the form have “Contribute” permissions on the list that the form will be submitted to, but what happens if users with “Read” permissions should also have the ability to fill out the form?

Fortunately, SharePoint makes it super simple to write custom code that can impersonate other users.

Read More »

Posted in Lists and Libraries, SharePoint, Web Parts | Leave a comment

Could not enlist Send Port HRESULT: 0xC00CE557

A quick tip today – I came across an error while trying to enlist one of my send ports while deploying a BizTalk application using the amazing BizTalk Deployment Framework.

“Could not enlist Send Port ‘X’. Exception from HRESULT: 0xC00CE557 (Microsoft.BizTalk.SnapIn.Framework)

Untitled picture

Read More »

Posted in BizTalk | Tagged , , , , , | Leave a comment

Top 5 Free Mobile Application Testing Platforms

The testing phase of mobile development is critical to the success of  any application, and with the multitude of variations in both hardware and operating systems, this stage is arguably the most difficult to manage and execute properly.  Fortunately there are a handful of useful tools that assist with the distribution and testing of mobile applications with the majority of these being free or free try.  Each platform offers a unique set of functionality, so the best way to choose is experimenting with each one.  Here are some of the best mobile testing platforms available today:

Read More »

Posted in Android, iOS, Windows Phone | Tagged | Leave a comment

Failed to Validate BAM Portal Web Site (BAMPortal)

I have recently encountered an error while trying to reinstall BAM Tool and the BAM Portal on a Microsoft BizTalk Server 2013 installation.  I encountered the following error while attempting to configure the BAM Portal in the Microsoft BizTalk Server Configuration window.

Read More »

Posted in BAM, BizTalk | Tagged , , , , , | Leave a comment

Change SharePoint Central Admin Top Bar Text

Overview

To help make it abundantly clear which central admin site someone is logged into, I wanted to change the top bar text to something other than “SharePoint”.  Turns out you can do that using the SuiteBarBrandingElement value on the Central Administration Web Application object  from PowerShell.

Code:

Add-PSSnapin microsoft.sharepoint.powershell $ca = Get-SPWebApplication -IncludeCentralAdministration | ` ?{$_.IsAdministrationWebApplication -eq $true} $ca.SuiteBarBrandingElementHtml = "<div class='ms-core-brandingText'>SP2013 Shared Services Farm (PRODUCTION)</div>" $ca.Update()

Result:

image

Posted in SharePoint, Tips and Tricks | Leave a comment

Office 365 and SharePoint Online FAQ

Recently had to field some questions regarding Office 365 and SharePoint online. Thought it would be beneficial for others looking for similar information. Leave a comment if you have additional input on any of these or have other questions regarding this topic:

Read More »

Posted in Features, SharePoint, Tips and Tricks | Tagged , , | Leave a comment