Jeremiah Clark's Blog

A place to collect my ramblings about Microsoft and the .NET Framework.

Browse by Tags

Tagged Content List
  • Blog Post: ServiceLocator and Unity – Be Careful

    Chris Tavarez has provided a handy adapter ( UnityServiceLocator ) for using ServiceLocator to resolve types from a Unity container. You can then use ServiceLocator.SetLocatorProvider() to register the UnityServiceLocator as the default provider for ServiceLocator. For this example, we will be using...
  • Blog Post: Tip: Entity Framework, Unity, and The ASP.NET RoleProvider – Read the MSDN Fine Print

    A custom Role Provider is a very useful tool for adding custom authorization to your ASP.NET and/or ASP.NET MVC applications. A common use for a custom Role Provider is when you have role information stored in a data store that differs from the schema that is used by the built-in ASP.NET Role Providers...
  • Blog Post: Testing Your Unity XML Configuration

    When using Unity as your IoC container , one way to configure the container is to use an configuration section in your app.config or web.config file. A simplified example of this configuration is shown below: 1: <? xml version ="1.0" encoding ="utf-8" ? > 2: < configuration >...
  • Blog Post: Use PowerShell To Test Code Snippets

    If you are like me, then you might have multiple Console applications in your projects folder that you use for testing small chunks of code.  I think at one point recently, I was up to ConsoleApplication28 before I cleaned up the unused projects.  These are typically used for testing small...
  • Blog Post: Tip: Change the Owner of SQL Reporting Services Subscription

    Here is the scenario: Your organization has a SQL Reporting Server that generates custom reports based on some of your data.  These reports need to be generated each day at noon and then emailed to someone important.  So Tom, your current DBA, creates subscriptions for the reports so that they...
  • Blog Post: When is a List not a List?

    The answer: When it is a SortedList. Here is one issue that I have with the Framework.  The name SortedList<T> implies that the class inherits IList<T>, but it does not.  In fact, it implements IDictionary<TKey,TValue>. This issue came up lately in a project I was working...
  • Blog Post: How to Assign a Strong Name to an Unsigned 3rd-Party Assembly

    Here is the scenario:  You get a .NET DLL from somewhere that provides some really cool functionality that you need for your BizTalk/SharePoint/etc application.  So you go to install the utility into the GAC, and then you realize that the DLL has not been signed.  If the assembly must...
  • Blog Post: Windows Live Writer - Great Blogging Tool

    I started using Windows Live Writer to write posts for my blog recently and I have to say that I really like it. It can interface with Spaces and many common blog servers including "Blogger, LiveJournal, TypePad, WordPress (and many others)." Plus it allows developers to create add-ins that can be found...
  • Blog Post: Visual Studio Tip: Get Public Key Token for a Strong Named Assembly

    I can't remember where I picked this tip up from, but I have found it useful on many occasions so I thought that I would share it. Sometimes I need to reference the strong named assembly that I am writing in a config file or some other location, and I need to put in the fully qualified name such as...
Page 1 of 1 (9 items)