The newest release is as BETA 1 when writing this blog an it contains some new and nice features. One of my favorite is that as a programmer we no longer need to configure a proxy. It was always a little confusing knowing which one to choose, I.e. looking in the Required_For_LazyLoading directory and deciding […]
Read More →Author: Benjamin Perkins
Could not load type “Namespace.Class” from assembly “Namespace”
I have been working hard learning the new features of ASP.NET 4.5, specifically using the following methods: HttpResponse.BeginFlush HttpResponse.EndFlush Stream.ReadAsync HttpRequest.GetBufferedInputStream HttpRequest.GetBefferlessInputStream Stream.BeginRead Stream.EndRead All of which need to be implemented using either a handler or module, if you want to use them in IIS. Can’t say that I did this a lot in the […]
Read More →Validating time using a masked textbox within a WPF window using C#
This is unfortunately more of a hack than a solution, but I thought I would share it any way. I had the situation where I needed to validate the entered time into a masked textbox. The masked textbox is a Windows Form control, but I hosted it within a WPF window using the WIndowsFormsHost element. […]
Read More →Using LIKE with LINQ to NHibernate in C#
The equivalent to LIKE via the LINQ to NHibernate provider is Contains. An example of a LINQ to NHibernate that will return a result set matching a search like parameter is below. IQueryable<Classname> linqLIKE = (from m in session.Query<Classname>() where m.Code.Contains(“%dex%”) orderby m.CreateDate select m); IList<Classname> ListLIKE = linqLIKE.ToList(); The above […]
Read More →Upgrade from Oracle 10g to Oracle 11g with ODP.net and NHibernate ORA-12514
Firstly, let me say that there is nothing special about this upgrade. The instructions which I wrote here will still work with an 11g database. The issue I had was more with, what is the difference between a SID and a SERVICE_NAME which is used to identify the data instance to connection to. The SID […]
Read More →Attempted overcomplicated solution for a complicated system
I was working on a system which had implemented NHibernate, primarily for its ability to support multiple DBMS, such as Oracle and MS SQL Server. The problem came up when trying to insert, specifically in regards to the ID data type. On Oracle the ID data type was NHUMBER, while on MS SQL Server the […]
Read More →How to clear the data from a DataGrid using WPF in C#
I implemented some filtering into one of my DataGrids which required that a reset the initial result set. With a single line of code you can empty out the contents of the DataGrid. datagridResults.ItemsSource = null; Once I reset the contents to empty, I could then add the filtered content back into the DataGrid using […]
Read More →New ProcDump version 5.0 released, using the –f parameter
I really like to use ProcDump for troubleshooting crashes, memory/cpu utilization issues and hangs. I have written a number of other blogs that discuss how to use it here, here and here. The tool is small and unobtrusive, yet very powerful. The new version of the tool has recently been released and can be downloaded […]
Read More →My Windows Phone App – Hitman Website Monitor
This is a blog I wrote some years ago. I am moving all my posts to this site and have added it for historical references only. I was surprised at how easy it was to create and deploy a Windows Phone app. If you are a developer then you will have no problems creating an […]
Read More →Application Request Routing (ARR) – HTTP Error 400.0 – Bad Request
I was working on setting up an ARR solution the other day and I ran into this error, and shown in Figure 1. The request cannot be routed because it has reached the Max-Forwards limit. The server may be self-referencing itself in request routing topology. Figure 1, HTTP Error 400.0 – Bad Request The message […]
Read More →