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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • linda.ctr.chen@faa.gov

    #1

    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
  • clintonG

    #2
    Re: Is that possible to call .net 2.0 com component fro .net 1.1 application?

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


    <linda.ctr.chen @faa.govwrote in message
    news:11e4c7f5-5576-458e-a784-ad33fa19094f@j2 2g2000hsf.googl egroups.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

    Comment

    • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

      #3
      RE: Is that possible to call .net 2.0 com component fro .net 1.1 appl

      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:



      "linda.ctr.chen @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
      >

      Comment

      Working...