Option Strict On disallows late binding

Discussion in 'ASP .Net' started by Seema, Jan 24, 2012.

  1. Seema

    Seema Guest

    I am trying to convert a web application from 1.1 to 2.0 or above.
    when I compile my solution it gives me error in the following piece of
    code that

    Option Strict On disallows late binding. The line of code is

    Dim sqlConn As New
    SqlConnection(ConfigurationSettings.GetConfig("IntranetSettings")
    ("ConnectionAsset"))

    I really appreciater your help in advance.
    Seema, Jan 24, 2012
    #1
    1. Advertising

  2. Seema

    Arne Vajhøj Guest

    On 1/24/2012 1:00 PM, Seema wrote:
    > I am trying to convert a web application from 1.1 to 2.0 or above.
    > when I compile my solution it gives me error in the following piece of
    > code that
    >
    > Option Strict On disallows late binding. The line of code is
    >
    > Dim sqlConn As New
    > SqlConnection(ConfigurationSettings.GetConfig("IntranetSettings")
    > ("ConnectionAsset"))


    Are you missing an Import?

    Arne
    Arne Vajhøj, Jan 25, 2012
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karl Lang
    Replies:
    1
    Views:
    898
    Karl Lang
    Jun 1, 2004
  2. Ryan McLean

    Option Strict On disallows late binding.

    Ryan McLean, Jun 14, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    10,337
    mikeb
    Jun 14, 2004
  3. Owen Mortensen
    Replies:
    7
    Views:
    3,148
    Owen Mortensen
    Mar 13, 2006
  4. Adotek
    Replies:
    1
    Views:
    436
    Bruno Alexandre
    Oct 3, 2006
  5. Chris Davey via .NET 247

    Option Strict On disallows late binding

    Chris Davey via .NET 247, Apr 6, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    162
    Brock Allen
    Apr 6, 2005
Loading...

Share This Page