473,237 Members | 1,361 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 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 3047
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: QLD_AU | last post by:
Has anyone see the following error ? VS 2005 Installs ok, however the SQL Mobile Edition (part of a full install) fails with the following error ? With Thanks Jason
2
by: Progman | last post by:
I have Visual Studio 2005 Standard edition. Is ti the same thing as the Express edition or Standard is more?
2
by: errmaker | last post by:
hi i have msdn tcp/ip sample : #include "stdafx.h" //int _tmain(int argc, _TCHAR* argv) //{ // return 0;
7
by: Shawn B. | last post by:
Greetings, I have a question. The framework SDK ships with a CS/VB.NET compiler. Does the Visual Studio 2005 IDE use these compilers or does the IDE have its own? This has me thinking. ...
3
by: alexandre_irrthum | last post by:
Hi there, I am trying to install a Python library with a C extension (the Polygon library) and I am having a bad time. My Python version is Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2...
8
by: ftjonsson | last post by:
hello, I was wondering if anyone could tips me on what I am doing wrong when writing the following code: #include <iostream> using namespace std; int main () {
4
by: bluesteel | last post by:
Hi, I am trying to use Visual C++ express but i got some samples made under Visual C++ 6.0 that do not compile under the program mentioned at the beginning. Visual C++ Express says that the file...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
3
by: Anil Gupte | last post by:
I reently made the move to Visual Studio 2005 using the express editions downloaded from Microsoft's site. In 2003, I was not able to use some DLLs in VB that were created in C# 2005. So I...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.