Skip to content

Category Archives: .NET

The null value cannot be assigned to a member with type System.Int64 which is a non-nullable value type

03-Sep-10

Are you getting this? System.InvalidOperationException The null value cannot be assigned to a member with type System.Int64 which is a non-nullable value type. On something like this? var totalSize = query.Sum(x => x.Size); This occurs because your LINQ property (in my case “Size”) is not nullable, and needs to be nullable because your Sum() operation [...]

Automatically Infer MVC Validation Rules Based on LINQ to SQL Schema – Sweet!

27-Aug-10

Hey gang, just a quickie today. I have been working recently on setting up server side and client side model validation “by the book” in ASP.NET MVC 2 complete with data annotations and the first question that hit me when I was declaring attributes on my LINQ to SQL partial classes to determine model validation [...]

New VS Theme Site + Desert Nights 2008 Theme Updated – ReSharper + VS 2010 Support!

30-Apr-10

Just heard news of a sweet new website dedicated to Theming and Styling Visual Studio, called “StudioStyles” now that’s my kinda site.  Go check it out, tons of themes to choose from if your VS IDE is looking kinda drab or you’re sick of looking at that same old blue and white… I also just [...]

View Contents of HTTP WCF Message with Message Logging & Service Trace Viewer

15-Apr-10

If you would like to see the contents of your WCF message body packet as understood by the server, you can enable WCF message logging via a few adjustments in your WCF Service Web.config file and by then by using the Microsoft Service Trace Viewer application to view it. I found best results by creating [...]

.Net Enum Values As Bit Flags

13-Apr-10

Every now and then I find myself needing to set multiple values to an enum object and test this later on, synonymously I usually find myself also scouring the net on the best practice on how to set, access and test these enum flags So today I thought I would post a definitive reference I [...]

Error connecting to WAS-enabled Net Tcp WCF Service Hosted Through IIS

01-Apr-10

As you may be aware, setting up a TCP-based full duplex WCF service can have some pretty awesome advantages over regular HTTP-based WCF services, such as the ability for a true client/server persistent connection and the ability for the server to call back to the client at any time and there are a few good [...]

.NET Framework/ASP.NET/C# Development Ultimate Learning Resources (Tutorials for Beginners to Advanced)

15-Mar-10

Howdy everyone, firstly I would like to apologise for the lack of blog updates, I have seriously been flat out on development with our new online start-up, Fotochimp and have not had much time for blogging. However today I am taking a few minutes time-out to share some links with you I found for a [...]

IntelliTrace debugging is available only for x86 applications

15-Feb-10

It appears the new IntelliTrace feature of Visual Studio 2010 is only available for x86 applications?! Don’t ask me, there is an article with more info, but Habib Heydarian shed some light on the workaround here. It appears to get around this problem, you must set your project to a configuration platform of x86, enabling [...]

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 [...]

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...