C# ASP.NET SQL SERVER
  • Tue
    26
    Aug 08

    Stop Forum Spam

    I'm impressed with a site that my friend Huw Reddick recently alerted me to called Stop Forum Spam . It's a database of IP's, user name's and emails that have been used to spam forums. If you run a forum or maintain forum software then it's a great resource to query when someone's registering on your...

    Continue reading "Stop Forum Spam"

  • Thu
    21
    Aug 08

    Unable to cast object of type 'System.Int32' to type 'System.String'

    Came across an interesting situation today with the error message: System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String' I couldn't work out how you couldn't cast an Int32 to a string? Seems impossible doesn't it? Try this little snippet of code and you will...

    Continue reading "Unable to cast object of type 'System.Int32' to type 'System.String'"

  • Sat
    16
    Aug 08

    DOCX to HTML via XSLT

    A friend just gave me a link to Creating a docx -> Html Preview Handler for SharePoint which has the modifications necessary for the XSLT that comes with Sharepoint to make the HTML web page show images as well as text from a Word 2007 document. I have a number of documents in .docx format that I...

    Continue reading "DOCX to HTML via XSLT"

  • Tue
    12
    Aug 08

    ASP.NET MVC Preview 3 to Preview 4

    I recently upgraded a project from ASP.NET MVC Preview 3 to Preview 4. Running it in Cassini showed no problems but as soon as I published it to IIS 6 I started getting this error which I have yet to solve: You are not authorized to view this page You do not have permission to view this directory or...

    Continue reading "ASP.NET MVC Preview 3 to Preview 4"

  • Tue
    12
    Aug 08

    Visual Studio 2008 SP1

    Visual Studio 2008 SP1 Visual Studio 2008 SP1 and Microsoft Framework 3.5 SP1 is available to download.
  • Fri
    08
    Aug 08

    C# boxing and unboxing

    In my quest to become a C# expert I've decided that I should be able to accurately and unambiguously define each and every C# term and keyword. As such I'm going to try and create a post about each one in my own (and quoted) words to act as my own reference to this language. Boxing and Unboxing From...

    Continue reading "C# boxing and unboxing"

  • Fri
    01
    Aug 08

    type or namespace name 'ProfileCommon' could not be found

    I recently hit this compile error while converting a Visual Studio web site project to a VS2008 Web App project: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?) Turns out that Web Applications don't support the auto generation...

    Continue reading "type or namespace name 'ProfileCommon' could not be found"

  • Wed
    23
    Jul 08

    Firefox style search in VisualStudio

    A co-worker recently tipped me off to a way faster and easier way to search through a file in Visual Studio. I've tried this in VS2008 and not sure if it works in VS2005. You know how you can hit Ctrl+F in Firefox and then as you type characters it will scan down the page and find the text? Well in VS...

    Continue reading "Firefox style search in VisualStudio"

  • Sat
    28
    Jun 08

    VS2008 bugs

    Here are a few bugs that I've found so far with Visual Studio 2008: If you have a lot of files open and you quickly hit Ctrl+F4 in succession then there's a good chance that you will crash VS2008. This sometimes happens when you click on the menus Window -> Close All Documents. Sometimes I'm in a...

    Continue reading "VS2008 bugs"

  • Sat
    28
    Jun 08

    Structuring a solution and project

    How do you structure a new solution in Visual Studio? Typically, within about 10 minutes of starting a new solution is VS2008, I will have 10 projects in that solutions. They are: The Application The Business Layer (BLL) The Database Layer (DB) The Logger The Utility Library And then for each of those...

    Continue reading "Structuring a solution and project"