Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T. March 2006 Entries
Running NUnit against multiple versions of .NET (1.1 and 2.0) from Visual Studio (VS.NET 2003 and VS2005)
This is not the prettiest solution - but is the only way I could easily get it all working - so I could click the Run button from VS to startup NUnit and run my tests project. As a primer, read James Newkirks article on this (he explains the config files a bit more than I do). Firstly to get NUnit to work with .NET 2.0 assemblies you need to have this in your nunit config file (nunit-gui.exe.config): <startup> <supportedRuntime version="v2.0.50727" /> <requiredRuntime version="v2.0.50727" ......

Posted On Thursday, March 30, 2006 8:47 AM

How to determine assembly and .NET CLR runtime versions at runtime.
This really very simple, once you know how.... To get the version of the currently running assembly: System.Reflection.Assembly assembly = System.Reflection.Assembly.... assemblyName = assembly.GetName();Version assemblyVersion = assemblyName.Version; To get the version of the CLR runtime: Version CLRVersion = Environment.Version; ......

Posted On Tuesday, March 28, 2006 3:14 PM

System.BadImageFormatException : The format of the file ‘TestLibrary’ is invalid. NUnit on VS 2005 / .NET 2.0
A thousand thank you's to James for this post:

Posted On Friday, March 24, 2006 12:37 PM

Cannot access System.Web.HttpContext.Current.Session - or web app terminates, when using
When you reference System.Web.HttpContext.Curr... within a class (that is not a page or control) and the method has the [AjaxPro.AjaxMethod] attribute it terminates the current execution and returns to the client. To solve this you simply need to provide the HttpSessionStateRequrement argument to the AjaxMethod attribute - setting it to the appropriate enumeration (None, Read or ReadWrite) eg: [AjaxPro.AjaxMethod(AjaxPro... string MyAjaxMethod(){...} ......

Posted On Wednesday, March 22, 2006 6:49 PM

How to make a transparent background/selection on an image using GIMP
Open your image. Select the area you want to make transparent. Select the appropriate selection tool from the Tool window or the Tools - Selection Tools menu on the Layer window. I usually use the magic wand/fuzzy select (Select contiguous region) tool or the Select regions by color tool. Click in the region you want selected. Use shift-click to add more regions/colors. Tip: It's easier if you zoom in (View - Zoom menu) to see finer details of exactly what you're selecting. In the Layer window (the ......

Posted On Monday, March 20, 2006 9:49 AM

VS.NET error when browsing web services: The proxy settings on this computer are not configured correctly for web discovery
The proxy settings on this computer are not configured correctly for web discovery. Click the Help button for more information. This error occurs (in VS.NET 2003) when trying to browse for web services (add a web reference) if you are behind a proxy &/or firewall. The solution for this is posted on the MS site: ......

Posted On Tuesday, March 14, 2006 2:30 PM

.NET 2.0 error: Request for the permission of type 'System.DirectoryServices.DirectoryServicesPermission, System.DirectoryServices, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
This error occurred when trying to run code that accessed the System.DirectoryServices namespace. To work around this, just open up your .NET 2.0 security: Start the .NET Framework 2.0 Configuration tool (from Administrative Tools). Expand Runtime Security Policy. Expand User - Code Groups and right-click on All_Code and select Properties. On the Membership Condition tab make sure All Code is selected in the dropdownlist. On the Permission Set tab make sure FullTrust is selected in the dropdownlist. ......

Posted On Wednesday, March 8, 2006 1:40 PM

Copyright © Tim Huffam | Powered by: