getting errors while compiling the program written in .NET framework 1.1 using Visual c# 2005 Express Edition

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manikandan

    #1

    getting errors while compiling the program written in .NET framework 1.1 using Visual c# 2005 Express Edition



    Hi,
    I have a program written in .Net Framework 1.1 using Visual studio
    enterprise edition 2003.
    I tried compiling the same program in visual c# express edition 2005.

    I'm getting following errors
    1.Error 6 Cannot implicitly convert type 'mscomctl.Toolb ar []' to

    'mscomctl.Toolb ar . An explicit conversion exists (are you missing a

    cast?)

    2.Error 8 Cannot implicitly convert type 'ADODB.Connecti on []' to

    'ADODB.Connecti on . An explicit conversion exists (are you missing a

    cast?)

    3.Error 7 The type 'ADODB.Connecti on' is defined in an assembly that
    is

    not referenced. You must add a reference to assembly 'ADODB,

    Version=2.5.0.0 , Culture=neutral , PublicKeyToken= 5f3923b67859be8 7'.

    4.Error 10 Cannot implicitly convert type 'ADODB.Recordse t []' to

    'ADODB.Recordse t An explicit conversion exists (are you missing a

    cast?)


    5.Error 12 Argument '2': cannot convert from 'ADODB.Recordse t

    6.Error 15 Argument '2': cannot convert from 'ADODB.ExecuteO ptionEnum

    to 'ADODB.ExecuteO ptionEnum []'
    7.
    Error 21 Assembly generation failed -- Referenced assembly

    'Interop.ADODB' does not have a strong name ExcelInterop


    I have referenced all assemblies.
    The dll referenced are
    1.ADOR
    2.Interop.ADODB
    3.MSCOMCTL.inte rop
    4.stdole
    5.Excel interop

    I tried to solve the above the errors, but not possible

    Is it possible to compile an application written in .NET 1.1
    Framework
    using visual c# express edition 2005.I'm mainly using excel(web
    office
    components in my program) for the application
    Kindly help me out to solve the errors


    Thanks,
    Mani

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: getting errors while compiling the program written in .NET framework 1.1 using Visual c# 2005 Express Edition

    Manikandan,

    I don't think that this is a framework issue. I think that if you
    regenerate your interop assemblies, it should work.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Manikandan " <plmanikandan@g mail.comwrote in message
    news:1193089293 .196934.189080@ e9g2000prf.goog legroups.com...
    >
    >
    Hi,
    I have a program written in .Net Framework 1.1 using Visual studio
    enterprise edition 2003.
    I tried compiling the same program in visual c# express edition 2005.
    >
    I'm getting following errors
    1.Error 6 Cannot implicitly convert type 'mscomctl.Toolb ar []' to
    >
    'mscomctl.Toolb ar . An explicit conversion exists (are you missing a
    >
    cast?)
    >
    2.Error 8 Cannot implicitly convert type 'ADODB.Connecti on []' to
    >
    'ADODB.Connecti on . An explicit conversion exists (are you missing a
    >
    cast?)
    >
    3.Error 7 The type 'ADODB.Connecti on' is defined in an assembly that
    is
    >
    not referenced. You must add a reference to assembly 'ADODB,
    >
    Version=2.5.0.0 , Culture=neutral , PublicKeyToken= 5f3923b67859be8 7'.
    >
    4.Error 10 Cannot implicitly convert type 'ADODB.Recordse t []' to
    >
    'ADODB.Recordse t An explicit conversion exists (are you missing a
    >
    cast?)
    >
    >
    5.Error 12 Argument '2': cannot convert from 'ADODB.Recordse t
    >
    6.Error 15 Argument '2': cannot convert from 'ADODB.ExecuteO ptionEnum
    >
    to 'ADODB.ExecuteO ptionEnum []'
    7.
    Error 21 Assembly generation failed -- Referenced assembly
    >
    'Interop.ADODB' does not have a strong name ExcelInterop
    >
    >
    I have referenced all assemblies.
    The dll referenced are
    1.ADOR
    2.Interop.ADODB
    3.MSCOMCTL.inte rop
    4.stdole
    5.Excel interop
    >
    I tried to solve the above the errors, but not possible
    >
    Is it possible to compile an application written in .NET 1.1
    Framework
    using visual c# express edition 2005.I'm mainly using excel(web
    office
    components in my program) for the application
    Kindly help me out to solve the errors
    >
    >
    Thanks,
    Mani
    >

    Comment

    • Manikandan

      #3
      Re: getting errors while compiling the program written in .NET framework 1.1 using Visual c# 2005 Express Edition


      Hi,
      Thanks for your valuable reply.
      You are right.
      I tried regenerating the interop assembly , but not succeed.
      I have a question reg excel interop.
      I have no excel installation(of fice installation) in my system
      I'm using office web components in my application.
      I tried using tlbimp, getting error as below

      TlbImp : error TI0000 : The input file 'C:\DEV\test\Ex celInterop\O
      WC11.dll' is not a valid type library.


      tried with Interop.OWC11.d ll also, getting same error.

      TlbImp : error TI0000 : The input file 'C:\DEV\test\Ex celInterop
      \Interop.OWC11. dll' is not a valid type library.


      I don't know how to regenerate excel interop assembly. is there any
      help available to use office web components in c# windows application?


      Thanks,
      Mani

      On 23 Oct, 20:48, "Nicholas Paldino [.NET/C# MVP]"
      <m...@spam.guar d.caspershouse. comwrote:
      Manikandan,
      >
      I don't think that this is a framework issue. I think that if you
      regenerate your interop assemblies, it should work.
      >
      --
      - Nicholas Paldino [.NET/C# MVP]
      - m...@spam.guard .caspershouse.c om
      >
      "Manikandan " <plmanikan...@g mail.comwrote in message
      >
      news:1193089293 .196934.189080@ e9g2000prf.goog legroups.com...
      >
      >
      >
      Hi,
      I have a program written in .Net Framework 1.1 using Visual studio
      enterprise edition 2003.
      I tried compiling the same program in visual c# express edition 2005.
      >
      I'm getting following errors
      1.Error 6 Cannot implicitly convert type 'mscomctl.Toolb ar []' to
      >
      'mscomctl.Toolb ar . An explicit conversion exists (are you missing a
      >
      cast?)
      >
      2.Error 8 Cannot implicitly convert type 'ADODB.Connecti on []' to
      >
      'ADODB.Connecti on . An explicit conversion exists (are you missing a
      >
      cast?)
      >
      3.Error 7 The type 'ADODB.Connecti on' is defined in an assembly that
      is
      >
      not referenced. You must add a reference to assembly 'ADODB,
      >
      Version=2.5.0.0 , Culture=neutral , PublicKeyToken= 5f3923b67859be8 7'.
      >
      4.Error 10 Cannot implicitly convert type 'ADODB.Recordse t []' to
      >
      'ADODB.Recordse t An explicit conversion exists (are you missing a
      >
      cast?)
      >
      5.Error 12 Argument '2': cannot convert from 'ADODB.Recordse t
      >
      6.Error 15 Argument '2': cannot convert from 'ADODB.ExecuteO ptionEnum
      >
      to 'ADODB.ExecuteO ptionEnum []'
      7.
      Error 21 Assembly generation failed -- Referenced assembly
      >
      'Interop.ADODB' does not have a strong name ExcelInterop
      >
      I have referenced all assemblies.
      The dll referenced are
      1.ADOR
      2.Interop.ADODB
      3.MSCOMCTL.inte rop
      4.stdole
      5.Excel interop
      >
      I tried to solve the above the errors, but not possible
      >
      Is it possible to compile an application written in .NET 1.1
      Framework
      using visual c# express edition 2005.I'm mainly using excel(web
      office
      components in my program) for the application
      Kindly help me out to solve the errors
      >
      Thanks,
      Mani

      Comment

      Working...