Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T. May 2009 Entries
How to unit test against resources (localization) values within Visual Studio 2008
When unit testing you sometimes need to test that values are being set to the correct literal/constant value - and this value is often stored in a resources file. However, for some reason the VS2008 'Create Private Accessor' feature did not work for me for resources (maybe be cause they're all static properties and the generated _Accessor classes need to be instantiated). So to make these resource available within the unit test project I simply made the Resources class public (by default it's internal). ......

Posted On Friday, May 22, 2009 4:07 PM

Error: Failed to access IIS metabase. Hosting WCF Service in IIS
This error ("Failed to access IIS metabase") can occur when you try to access your WCF when you have added for hosting within IIS. To solve this problem do this: Reregister ASP.NET for IIS: Open an Visual Studio Command Prompt (or a regular command prompt and cd into the .Net dir - usually: C:\WINNT\Microsoft.NET\Fram... then type: aspnet_regiis -i When complete, from the same command prompt run: iisreset Verify your IIS virtual/app dir is setup correctly (uses .Net 2). If you don't ......

Posted On Thursday, May 14, 2009 3:13 PM

Copyright © Tim Huffam | Powered by: