Milestone Blog

Subscribe via RSS

Installing Jekyll on Windows Subsystem for Linux - Ubuntu 16.04

Jason M Penniman
Apr 11, 2018 - Development

A quick guide on installing Jekyll on Windows Subsystem for Linux (formally Bash on Windows) Ubuntu 16.04 on Windows 10.

Continue Reading

NHibernate Releases 5.1 with support for .Net Core and .NetStandard 2.0

Jason M Penniman
Apr 8, 2018 - Development

The NHibernate Team has released 5.1 with support for .Net Core 2.0, ASP.Net Core 2.0 and .NetStandard 2.0.

Continue Reading

Building Microservices with Asp.Net WebAPI, Owin, Ninject, NHibernate, and Azure -- Part 2: Error Responses and Exception

Jason M Penniman
Mar 4, 2018 - Development

In this installment, we'll look at exception handling and error responses.

Continue Reading

C# DateTime, DateTimeOffset and the Cloud

Jason M Penniman
Feb 23, 2018 - Development

In this article, we'll take a look at the challenges that arise when deploying applications that use System.DateTime to cloud providers like Azure and AWS.

Continue Reading

Adding New Microsoft Extensions to Legacy WCF and ASMX Web Services

Jason M Penniman
Feb 17, 2018 - Development

In this article, We'll look at how to use new Microsoft.Extensions.* in a legacy WCF and ASP.Net Web Services (ASMX) applications.

Continue Reading

Building Microservices with Asp.Net WebAPI, Owin, Ninject, NHibernate, and Azure

Jason M Penniman
Dec 1, 2017 - Development

We've been building microservices here for a while, so I thought I'd share how we do it.

Continue Reading

The Async/Void Trap

Jason M Penniman
Oct 10, 2017 - Development

I'll start by saying, you should ALWAYS avoid async/void. Now, I'm sure there are edge cases, but the reality is you can get into a lot of trouble with async/void.

Continue Reading

VS 2017 dotnet publish fails in Team Foundation Services

Jason M Penniman
Sep 20, 2017 - Blog

We had an interesting problem after upgrading an ASP.Net Core project from project.json to VS 2017 csproj. The build broke. A little background...

Continue Reading

Infinite loop in ADAL and ADAL-ANGULAR

Jason M. Penniman
Oct 9, 2016 - Blog

In a recent project we came across in issue where ADAL would go into an infinite loop when renewing a token. It's a known issue with many causes/fixes, some of which were bugs fixed in the 1.11 release...

Continue Reading

OneWay vs Async in WCF

Jason M Penniman
Nov 16, 2013 - Blog

On a recent project, there was some debate about the behavior of OneWay OperationContracts, so I thought I'd put together a little example. Specifically, the debate centered around when control is returned back to the calling routine. Let's take a look at the MSDN docs...
http://msdn.microsoft.com/en-us/library/system.servicemodel.operationcontractat...

Continue Reading

Unable to Configure the Microsoft Dynamics CRM 2011 Client for Outlook against Dynamics CRM Online in a Virtual Machine

Jason M Penniman
Aug 5, 2013 - General-IT

I came across the error in this article when trying to configure the CRM client for Outlook...
Error connecting to URL: https://myogranization.crm.dynamics.com/XRMServices/2011/Discovery.svc Exception: System.ArgumentNullException: Value cannot be null.

See this kb article... http://support.microsoft.com/kb/2498892
For me, the installation was fine....

Continue Reading

Using Azure Service Bus Shared Access Signature with NetMessagingBinding in WCF

Jason M Penniman
Jul 16, 2013 - Blog

I Googled, Binged, and scoured internet and various documentation and could not find this setting.  I was able to reverse engineer the declarative markup based on the properties in the classes and code samples.
If you want to use the shared access signature authentication with the netMessagingBinding in WCF declaratively in your web.config or...

Continue Reading

Fun with SOA Security, WCF, Windows Azure Service Bus, and BizTalk

Jason M Penniman
Apr 22, 2012 - Blog

I've been having some fun lately on an integration project involving and on-premises BizTalk 2010 implementation and the Windows Azure Service Bus. We've run across some interesting challenges that aren't well documented, if at all, so I wanted to share with you all. I'll take a tutorial approach through real world scenarios as well as...

Continue Reading

Mac Dock Uses 100% of CPU

Jason M Penniman
Jul 5, 2011 - General-IT

I noticed the fans in my Macbook Pro were running excessively. When looking at Activity Monitor, I noted that the Dock was using 100% of the CPU. A quick search on Google, and I found the culprit to be Parallels. The root cause is an issue with the graphics API between OS X 10.6.8 and Parallels Desktop 6. I had indeed...

Continue Reading

Handling Events on System.Diagnostics.Process

Jason M Penniman
Apr 7, 2011 - Blog

If you want to handle events when working with System.Diagnostics.Process -- for example, the Exited event -- you have to first enable the raising of events using the EnableRaisingEvents property on Process...

Continue Reading

Using PDB (Debug Symbols) When Compiling in Release Mode

Jason M Penniman
Mar 7, 2011 - Development

Bit by yet another not-so-well documented "feature" in Microsoft .Net.  We were compiling in release mode for QA, since we've seen other behavioral differences between debug and release.  We also wanted to emit the line numbers in the stack trace so the engineers would have a better idea of what caused the error. We added the...

Continue Reading

Unsigned Integers in SQL Server, Oracle, MySQL, Postgres, and DB2

Jason M Penniman
Feb 24, 2011 - Development

A recent project required the need to store an unsigned 64-bit integer in a SQL Server database table. BIGINT won't cut it because BIGINT has a max value of 9,223,372,036,854,775,807 (signed 64-bit integer), and the unsigned 64-bit integer's max value is 18,446,744,073,709,551,615. The solution...

Continue Reading

Hypervisor and Host Upgrade at Milestone

Jason M Penniman
Jan 3, 2011 - General-IT

It was time to upgrade the virtual machine host at Milestone. Since most of our critical systems are hosted, the server(s) here didn't need to be anything to extreme. The servers in house are development and test lab related. The goals for the upgrade were to:

  • Upgrade the hardware
  • Go Green
  • Experiment with various hypervisors to see which ones can be used in SOHO environments with low investment, low TCO, high ROI, and little or no headache when it comes to install and maintenance.

Continue Reading

Installing CentOS/RedHat 5.5 on Hyper-V Server 2008 R2

Jason M Penniman
Jan 3, 2011 - General-IT

CentOS/Red Hat 5.5 on Hyper-V R2 seems to work quite well. The trick is to download the Linux Integration Services from Microsoft and follow the install guide before creating the VM. The guide provides specific installation guidelines for creating/configuring the VM and installing the OS itself...

Continue Reading

Installing MySQL 5.5 on Mac OS X 10.6

Jason M Penniman
Dec 24, 2010 - Database

Or should I say "unable to install MySQL 5.5 on Mac OS X". My first attempt at installing MySQL on Mac was with MySQL 5.1 on Snow Leopard. That worked as expected and without any issues. MySQL 5.5, however, was a bit tricky...

Continue Reading

Identifying Datastores Configured in VMware Server 2.0

Jason M Penniman
Dec 5, 2010 - General-IT

I ran into the need to start a VMware Server 2.0 virtual machine from the command line. The vmrun command uses the data store name to locate the vmx file. Unfortunately, the system documentation wasn't readily available, so I needed to determine what stores were configured...

Continue Reading

Open Source from Milestone

Jason M Penniman
Nov 6, 2010 - News

Milestone Technology Group is pleased to announce two new open source projects released under the Apache2 license:

These projects mark the beginning of a larger effort to contribute to the open source community.

Continue Reading

Simulating Latency and Bandwidth Restrictions in WCF

Jason M Penniman
Oct 17, 2010 - Development

If you're developing WCF applications that will run over a WAN, VPN, or the public internet, then network bandwidth and latency is a concern. Messages take longer to transmit over these networks than over your local area network (LAN). As such, part of your development and testing needs to include testing the application over these typed of "slower" connection...

Continue Reading

Close 'Em Plug-In For Visual Studio

Jason M Penniman
Oct 17, 2010 - Products

If you're an Eclipse or Netbeans user, you'll be very familiar with this topic. These IDEs automatically close braces, parenthesis, quotes, and brackets -- ( {},[],(),"",'' ) -- for you as you type in the code editors. It may sound like laziness, but it can actually save you debug/troubleshooting time as it ensures (well, helps to ensure) that for every open you have a corresponding close.

Continue Reading

Automatically Close Braces in Visual Studio

Jason M Penniman
Oct 17, 2010 - Development

If you're an Eclipse or Netbeans user, you'll be very familiar with this topic. These IDEs automatically close braces, parenthesis, quotes, and brackets -- ( {},[],(),"",'' ) -- for you as you type in the code editors. It may sound like laziness, but it can actually save you debug/troubleshooting time as it ensures (well, helps to ensure) that for every open you have a corresponding close.

Continue Reading

Open Source Efforts at Milestone

Jason M Penniman
Oct 17, 2010 - News

Even before I founded Milestone Technology Group, LLC, I was, and still am, a proponent of open source software, and often looked there first when architecting business solutions. Because of this, open source is very much part of the Milestone's culture...

Continue Reading

Setting Up a Reporting Database

Jason M Penniman
Jul 28, 2010 - Database

Using a live OLTP database for complex reporting has a significant performance impact on the OLTP application. A common architectural design is to have a separate reporting database from your application's OLTP database...

Continue Reading

Singleton vs. Static Class

Jason M Penniman
May 16, 2010 - Development

I'm often asked “Why create a Singleton when a Static Class does the same thing?”. Well, while using a Singleton vs a Static Class may seem to be the “same thing”, they are quite different. There are pros and cons to both, and each has it's place in an application. To understand the difference, let's first take a look at memory allocation. Then we'll look at memory implications, state and synchronization, and some caveats as to the use and behavior of the two.

Continue Reading

Breaking the Row Size Limit in SQL Server

Jason M Penniman
Dec 10, 2009 - Blog

Microsoft SQL Server, as of version 9.0 (2005), allows you to cheat the max row size limit of 8K. If we have a row of variable length data types (ie. varchar), the total byte count can be more than 8K. SQL Server will magically spill the data over to the next page. Cool right? Well...

Continue Reading

Reflecting on Reflection

Jason M Penniman
Dec 10, 2009 - Blog

I was approached by a developer suggesting a reflection routine for taking values from a data transfer object and populating a business entity and vice versa. He argued that writing a TransferObjectAssembler for each DTO was too time consuming, and would be better suited with a reflection routine. My response...

Continue Reading

Blue Cod Signs with Milestone

Jason M Penniman
Nov 2, 2009 - News

Blue Cod Technologies, Inc., in Marlborough, MA, has signed a 14 month services contract with Milestone Technology Group. Milestone is providing Blue Cod with Software Architecture and Software Engineering services.

Continue Reading

JBoss SOAP error with Java 6

Jason M Penniman
Oct 19, 2009 - Development

Error message "setProperty must be overridden by all subclasses of SOAPMessage". After reading this Jira issue...

Continue Reading

Installing Any Executable as a Windows Service

Jason M Penniman
Aug 21, 2009 - General-IT

I'll clean this up later, but in short...

Continue Reading

Disaster Recovery

Blog
Aug 12, 2009 - General-IT

During a severe thunderstorm one night, your building loses power. The once thought to be defunct generator mounted to the roof just above your data center detects the outage and make its attempt to start up...

Continue Reading

Java Dates: java.util.Date, java.sql.Date, java.util.Calendar

Jason M Penniman
Jun 12, 2009 - Development

Working with dates in Java (though not limited to Java) has always been a nightmare. There are lots of good articles out there in Google Land on the topic, but after some very good questions from my class, I thought I'd add my two-cents and code samples to the mix...

Continue Reading

WCF InstanceContextMode and ConcurrencyMode

Jason M Penniman
Apr 9, 2009 - Development

I recently ran into a concurrency issue with WCF on a customer's system. I'll get into the details later (though not too much detail... NDA ;) ), but it involved some testing of the various combinations of InstanceContextMode and ConcurrencyMode settings for a WCF service...

Continue Reading

Using Multiple Active Result Sets (MARS) in SQL Server

Jason M Penniman
Sep 27, 2008 - Development

A lot of ground was covered in connecting our TellerUI to the database. We implemented FinderMethods in our Customer class that return an IList back to the UI to be bound to the results grid. We also implemented an App.config file to store our connection string...

Continue Reading

Installing TimeTTracker MX2 on a Smartphone

Jason M Penniman
Feb 8, 2008 - General-IT

Installing TimeTTracker MX2 on a UT Starcom X5800 smartphone... Here's some background...

Continue Reading