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

M

Manikandan

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.Toolbar []' to

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

cast?)

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

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

cast?)

3.Error 7 The type 'ADODB.Connection' 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=5f3923b67859be87'.

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

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

cast?)


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

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

to 'ADODB.ExecuteOptionEnum []'
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.interop
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
 
N

Nicholas Paldino [.NET/C# MVP]

Manikandan,

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

Manikandan

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(office 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\ExcelInterop\O
WC11.dll' is not a valid type library.


tried with Interop.OWC11.dll also, getting same error.

TlbImp : error TI0000 : The input file 'C:\DEV\test\ExcelInterop
\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

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]
- (e-mail address removed)




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.Toolbar []' to
'mscomctl.Toolbar . An explicit conversion exists (are you missing a

2.Error 8 Cannot implicitly convert type 'ADODB.Connection []' to
'ADODB.Connection . An explicit conversion exists (are you missing a

3.Error 7 The type 'ADODB.Connection' 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=5f3923b67859be87'.
4.Error 10 Cannot implicitly convert type 'ADODB.Recordset []' to
'ADODB.Recordset An explicit conversion exists (are you missing a

5.Error 12 Argument '2': cannot convert from 'ADODB.Recordset
6.Error 15 Argument '2': cannot convert from 'ADODB.ExecuteOptionEnum
to 'ADODB.ExecuteOptionEnum []'
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.interop
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top