473,395 Members | 1,527 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,395 software developers and data experts.

Is that possible to call .net 2.0 com component fro .net 1.1application?

Hi all,

We have an application which is created in .net 1.1(Visual studio
2003). Now we need to create maps from this application. The only
chioce for us is to use ESRI libraries to generate map images.

The issue is, current version of ESRI (ArvGIS 9.2) only support .net
2.0. I wrote a map component with Visual studio 2005, and check the
"Register for COM interop" for the project. This creates both dll and
tlb assemblies.

I was not able to add this com component to my .net 2003 application
as reference. When I tried to add the tlb file as the reference, I got
the following error message:

"A reference to "myMapCom" could not be added. Converting the type
library to a .NET assembly failed. Type library myMapCom was exported
from a CLR assembly and can not be re-imported as a CLR assembly."

Any idea for solving this issue?

Thanks.

Linda
Jul 8 '08 #1
2 2048
For some reason you have lost your senses. I know you must understand
backward compatibility but come on Linda, has working around the fascists
corrupted your reasoning to the extent that you believe Microsoft, ESRI or
anybody else could possibly release software that was forward compatible?

Even if they wanted to it would be pragmatically impossible in most
circumstances as who could possibly know the future?

You might be able to work around the dilemma by using 2.0 and a separate
web.config file in a different directory under the root of the 1.1
application. Its the first strategy I would try. Theoretically it should
work as long as 2.0 is installed on the same server --but-- would it share
the same session and resources? What if it dioes? What next then? Give this
suggestion a try. Orville and Wilbur had to experiment too ya know. ;-)
<li************@faa.govwrote in message
news:11**********************************@j22g2000 hsf.googlegroups.com...
Hi all,

We have an application which is created in .net 1.1(Visual studio
2003). Now we need to create maps from this application. The only
chioce for us is to use ESRI libraries to generate map images.

The issue is, current version of ESRI (ArvGIS 9.2) only support .net
2.0. I wrote a map component with Visual studio 2005, and check the
"Register for COM interop" for the project. This creates both dll and
tlb assemblies.

I was not able to add this com component to my .net 2003 application
as reference. When I tried to add the tlb file as the reference, I got
the following error message:

"A reference to "myMapCom" could not be added. Converting the type
library to a .NET assembly failed. Type library myMapCom was exported
from a CLR assembly and can not be re-imported as a CLR assembly."

Any idea for solving this issue?

Thanks.

Linda
Jul 8 '08 #2
As Jeroen says, I think you will be best upgrading to 2.0. See this link for
9.2:
http://support.esri.com/index.cfm?fa...id=355&VID=954.

The 9.3 (we received ours) requirements are discussed here:
http://wikis.esri.com/wiki/display/a....0+Requirement
"li************@faa.gov" wrote:
Hi all,

We have an application which is created in .net 1.1(Visual studio
2003). Now we need to create maps from this application. The only
chioce for us is to use ESRI libraries to generate map images.

The issue is, current version of ESRI (ArvGIS 9.2) only support .net
2.0. I wrote a map component with Visual studio 2005, and check the
"Register for COM interop" for the project. This creates both dll and
tlb assemblies.

I was not able to add this com component to my .net 2003 application
as reference. When I tried to add the tlb file as the reference, I got
the following error message:

"A reference to "myMapCom" could not be added. Converting the type
library to a .NET assembly failed. Type library myMapCom was exported
from a CLR assembly and can not be re-imported as a CLR assembly."

Any idea for solving this issue?

Thanks.

Linda
Jul 8 '08 #3

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

Similar topics

0
by: Dave | last post by:
Hi everyone, (I already posted this to the VS.NET IDE news group without any responses, so I'm attempting one more time in this group) The issue I'm having is occuring in the IDE of VS.NET...
10
by: dchow | last post by:
Is it possible to call a subroutine or function whose name is in a string?
0
by: Horia Tudosie | last post by:
Using Visual Studio 2003 This is to report a series of bugs regarding the FlagsAttribute and (independently) the usage of interfaces in Web applications. Let’s declare xColors type like: ...
2
by: Jim Bancroft | last post by:
The answer's probably "no," but no harm in asking: Is it possible for a serviced component, running in a COM+ server package, to read the AppSettings of an aspx page that calls it? Here's an...
10
by: Steven Spits | last post by:
Hi, Because we have a large WebApp, back in 2002 we decided to use the following method: http://support.microsoft.com/default.aspx?scid=kb;en-us;307467 In short: Create a project "a" at...
8
by: tranky | last post by:
i hope you can help me! It's possible create a moveable panel in vb.net? Click with mouse over it and move it everywhere!?!? It's possible? thank u!
4
by: rodchar | last post by:
hey all, is there a way to call a vb.net app from excel (i know the vice versa is possible of course)? If so, how and is this a common thing to do? Safe? Thanks, rodchar
2
by: Chicken15 | last post by:
Hi Group. First of all I'm sorry for asking (maybe) such easy questions. But I'm quite stuck now and couldn't come up with a solution by using my C# book or googling. So it would be nice if...
0
by: phopman | last post by:
I am currently working with Joomla, which is based on PHP. So I think that the question I have, might be a little on the side, but I also think that many PHP'ers out there, is working with Joomla,...
1
by: aimlab08 | last post by:
Hi all, We have an application which is created in .net 1.1(Visual studio 2003). Now we need to create maps from this application. The only chioce for us is to use ESRI libraries to generate map...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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...

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.