471,310 Members | 1,126 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

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.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

Oct 22 '07 #1
2 2927
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]
- mv*@spam.guard.caspershouse.com

"Manikandan" <pl**********@gmail.comwrote in message
news:11**********************@e9g2000prf.googlegro ups.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.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

Oct 23 '07 #2

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

On 23 Oct, 20:48, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.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.com

"Manikandan" <plmanikan...@gmail.comwrote in message

news:11**********************@e9g2000prf.googlegro ups.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.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

Oct 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Progman | last post: by
2 posts views Thread by errmaker | last post: by
7 posts views Thread by Shawn B. | last post: by
8 posts views Thread by ftjonsson | last post: by
3 posts views Thread by Anil Gupte | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.