« Previous Next »

Answered Thread: Problem with ASP code in IIS7: DBNULL

Last post 10-26-2009 3:12 AM by Leo Tang - MSFT. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-21-2009, 10:53 PM

    • Jwoodger
    • Not Ranked
    • Joined on 10-22-2009, 2:48 AM
    • Posts 1

    Problem with ASP code in IIS7: DBNULL

    When I run my web application on Windows 2003 IIS 6, my site runs perfectly.  It however has certain issues when migrated to Windows 2008 IIS 7 - sometimes I get errors with converting/casting dbnull to strings.  Is there some configuration that can be used to emulate the older way of handling such values?

  • 10-23-2009, 9:35 AM In reply to

    Re: Problem with ASP code in IIS7: DBNULL

    What errors?  Have you checked the list of breaking changes for IIS 7?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-26-2009, 3:12 AM In reply to

    Answered Re: Problem with ASP code in IIS7: DBNULL

    Hi,

    You can run the application pool in classic mode , then IIS7 has the same behave as IIS6. In this case, it seems that the error "converting/casting dbnull to strings" was caused by code logic issue. I’d suggest you debug your application to find the root cause.

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (3 items)
Microsoft Communities