473,762 Members | 7,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Oct 22 '07 #1
2 3086
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.co m

"Manikandan " <pl**********@g mail.comwrote in message
news:11******** **************@ 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

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(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:11******** **************@ 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

Oct 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7148
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
3442
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
4928
by: errmaker | last post by:
hi i have msdn tcp/ip sample : #include "stdafx.h" //int _tmain(int argc, _TCHAR* argv) //{ // return 0;
7
1453
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. Becuase the Express IDE supposedly doesn't optimize the compiled output as much as the professional IDE does. If that's so, then it sounds like their are two different compilers happening here. In short, if I want to establish a build server (that...
3
3823
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 2006, 12:09:59) on Windows XP Pro. I have dutifully followed the instructions here: http://wiki.python.org/moin/Building_Python_with_the_free_MS_C_Toolkit
8
3176
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
1909
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 included "windows.h" does not exist, what means Visual C++ Express does not come with such library (what makes me sick). Having understood that i wanted to know how i could solve this problem, so that i can compile Visual C++ 6.0 Projects under Visual...
7
9372
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 display the Windows form. The form is being displayed but the command only returns when the form is closed. I want the command line to return immediately, leaving the form displayed.
3
1207
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 upgraded. Now I find that I still can't use them. I can use DLLs written in C# 2005 in another C# app in the same version, but not in VB 2005. Does this make any sense? And in the first place why can't I use DLLs written in C# 2005 in VB 2003?...
0
9378
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9927
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9812
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5268
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.