Skip to content

Category Archives: .NET

Disable/turn off ‘Attach Security Warning’ in Visual Studio 2008/2005

20-Jan-10

If you are fed up with continually having to press “Attach” to attach to the IIS w3wp.exe to enable debugging in Visual Studio for IIS as seen in this screenshot: Then never fear, this is a way around it. All you need to do is adjust the registry setting (via regedit.exe) as Visual Studio wasn’t [...]

This SQL Server Version (10.0) Is Not Supported

21-Nov-09

You may receive an error: Running transformation: Microsoft.SqlServer.Management.Smo.FailedOperationException: SetParent failed for Database ‘XXXX’.  —> Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server XXXX. —> Microsoft.SqlServer.Management.Common.ConnectionFailureException: This SQL Server version (10.0) is not supported. When attempting to connect to a SQL Server 2008 database when working with T4 templates or simply accessing an SQL Server directly using the [...]

Crystal Report Blank / Empty / Not Displaying. No On-Screen Error, But Event Log ‘ConfigurationErrorsException’ Received

02-Nov-09

Nice juicy one today, of course in my unfortunate true style, that being where I couldn’t find one darn person who is suffering the same error as me on the Interwebs. I’ve had a few of these lately, so I thought maybe I might be able to at least help others. I had wired up [...]

Our New Startup! Early-bird Registrations Have Now Opened At Fotochimp.com – And You’re Invited!

31-Oct-09

Hi guys, well I have some very exciting news to report today, my fiancée and I have just opened a “registrations of interest“ form for our new online start-up hitting the waves real soon — entitled Fotochimp. We’ve gone bananas, we’ve gone playful, fun, web 2.0 (we all sick of hearing that term yet?) with [...]

Download Microsoft Visual Studio 2010 Beta 2 Today!

22-Oct-09

Get it now! This is a public release, not just for MSDN subscribers! For more information check the Official Microsoft, Scott Gu & Hanselman links: “Microsoft Visual Studio 2010 & .NET Framework Beta 2″ – http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx “Visual Studio 2010 Beta 2″ – http://hanselman.com/blog/VisualStudio2010Beta2.aspx “VS 2010 and .NET 4 Series” – http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx I’m excited because apart [...]

WCF: The HTTP request is unauthorized with client authentication scheme ‘Anonymous’.

22-Oct-09

WCF and security gets me again! Guys, if you are attempting to connect to a WCF service from a WCF endpoint and receiving this exception: System.ServiceModel.Security.MessageSecurityException was caught Message=”The HTTP request is unauthorized with client authentication scheme ‘Anonymous’. The authentication header received from the server was ”.” Allow me to help you perhaps, so you [...]

MonoTouch 1.1 Released: Develop iPhone Applications with C#!

02-Oct-09

Awesome. Very awesome. The MonoTouch Novell guys have released an update to their fantastic framework, version 1.1 which includes some great updates including iPhone 3.1 APIs, WebServices (WCF) support, 30% less disk space for generated code and halved startup time. A few of you who follow me on twitter will know I’ve posted on this [...]

Rolling Out a Custom WCF Software Updater for Win Forms / WPF

22-Sep-09

Alright, a big one today peoples.  I’ve recently had the opportunity of writing a commercial custom self-updating software package after more than merrily ditching ClickOnceAndHope to the kerb due to exhaustive problems and restrictions, and I would like to share with you today a version I have made for you guys componentised and ready to [...]

‘Windows XP Or Lower’ Message Box Fallback for TaskDialog in Windows API Code Pack

22-Sep-09

I have made a helper class to the TaskDialog method that is featured in the Windows API Code Pack (available for a couple of months now), which gracefully downgrades the TaskDialog to a standard System.Windows.Forms.MessageBox if the client operating system is not supported, ie. if the client is not using Windows Vista or higher. As [...]

How to Add a Collection of a Derived Type/Subclass with Generic List AddRange()

20-Sep-09

Another gem today, when attempting to add a subclass collection to a base type list using the AddRange() method you may encounter the following error using this code: List<BaseClassA> baseList = new List<BaseClassA>(); baseList.AddRange((IEnumerable<SubClassB>) subList); // Where ‘SubClassB’ is a class deriving from ‘BaseClassA’ System.InvalidCastException was unhandled: Message=”Unable to cast object of type ‘System.Collections.Generic.List`1[MyNamespace.BaseClassA]‘ to [...]

My name is Graham O'Neale and I'm a software architect from Gold Coast, Australia. I am an overtime thinker, full time coder and awake part time in the real world. I have a keen interest in software development, particularly in the realm of programming (C#, ASP.NET, ASP.NET MVC, LINQ (2 SQL), Entity Framework, Silverlight, Blend, WCF, WPF) and a keen interest in the cutting edge and innovation. I have a new found love for design patterns, ALT.NET practices and well crafted software architecture. The purpose of this blog is to express any thoughts, findings, tips and gripes along my travels in the wonderful world of coding and technology...