Site Search:
Sign in | Join | Help
4Penny.net

Steve Gray

Random Thoughts from the 4Penny VP of Development

July 2008 - Posts

  • Subsonic Timeout Expired error

    Here's the technique that I use to increase the command timeout property in a Subsonic request:

     

    Dim sp As SubSonic.StoredProcedure
    
    
    sp = myProj.SPs.myStoredProcName(myParam)
    sp.CommandTimeout = 500
    sp.Execute()

  • Adding .FLV MIME Type in IIS

    .FLV files are already the best method for publishing video on the web, and are sure to become even better with the new enhancements in Flash 8. When serving .flv files off of a Windows Server 2003 (or any other Windows server I would imagine) requires setting up the MIME type on the server first (it isn't one of the native MIME types on MS servers).

    You can figure out easily if your server is configured to support .flv files by posting a .flv file on a server and navigating to the URL of that .flv in a browser. If you see a LONG string of garbage on the screen, your server isn't set up for .FLVs and needs to have the MIME type set up.

    Adding .flv MIME type in IIS

    1) Select the site to configure in IIS, right click and select "Properties"
    2) Under HTTP Headers Tab, select "File Types" under the MIME Map section and select "New Type"
    3) Type ".flv" as the associated extension and "video/x-flv" as the content type.
    4) Select "OK" and you're ready to fly!