Old blog. Blog moved to thomasgathings.com
I would delete this...but I don't see the option

April 2006 Entries

ASP.Net 2.0 CS0716: Cannot convert to static type 'System.Web.Security.Roles'

I have a simple page which displays the current users active roles. Silly me, I thought a good name would be 'Roles'. Turns out, this caused a namespace collision, I think, with the static class System.Web.Security.Roles. The namespace 'System.Web.Security' is included by default with ASP.NET 2.0 code-behinds. Also of interest, by default there are no namespace regions with code-behinds. Not wanting to stray from the typified lazy developer, I left this as-is. Hey, Microsoft knows best. This error...

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati