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?






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


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