473,320 Members | 2,041 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,320 software developers and data experts.

calling a .net assembly written in .net 2.0 from a .net 1.1 app,vb6.0 app and asp pages

I am already fairly certain that what I am trying to do based on the
contstraints I have can't be done.
However hoping someone can prove me wrong.

I need to write an assembly that I can call from .net 1.1, .net 2.0,
classic asp, and possibly vb6.
The constraints are no web services. I would like to develop the
solution in .net 2.0 as opposed to 1.1.
The last constraint is no the projects and webs written in .net 1.1
can't be upgraded at this time.

I tried exposing my objects from my 2.0 assembly as com. Solves the
problem perfectly for classic asp and vb.6 and .net 2.0. 1.1 is the
difficult one. I tried to connect to my com object using both early
and late binding and as I expected it would not work.
If anyone has gotten this to work, please do let me know.
Thanks in advance
sincerely
Ralph

Oct 7 '08 #1
2 1169
You cant have 2 versions of the framework loaded to the same process. You
would need to configure it as a 'Server Application' in the COM configuration
so it ran in its own process. Give it a try and let me know.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Ralph" wrote:
I am already fairly certain that what I am trying to do based on the
contstraints I have can't be done.
However hoping someone can prove me wrong.

I need to write an assembly that I can call from .net 1.1, .net 2.0,
classic asp, and possibly vb6.
The constraints are no web services. I would like to develop the
solution in .net 2.0 as opposed to 1.1.
The last constraint is no the projects and webs written in .net 1.1
can't be upgraded at this time.

I tried exposing my objects from my 2.0 assembly as com. Solves the
problem perfectly for classic asp and vb.6 and .net 2.0. 1.1 is the
difficult one. I tried to connect to my com object using both early
and late binding and as I expected it would not work.
If anyone has gotten this to work, please do let me know.
Thanks in advance
sincerely
Ralph

Oct 7 '08 #2
Thanks Ciaran,
I completely forgot to try that.
After quite some tweaking I did get that to work.
Late binding from the 1.1 consumer worked only.
VS 2003 still wouldn't let me create a reference to the dcom.

On Oct 7, 10:55*am, Ciaran O''Donnell
<CiaranODonn...@discussions.microsoft.comwrote:
You cant have 2 versions of the framework loaded to the same process. You
would need to configure it as a 'Server Application' in the COM configuration
so it ran in its own process. Give it a try and let me know.

--
Ciaran O''Donnellhttp://wannabedeveloper.spaces.live.com

"Ralph" wrote:
I am already fairly certain that what I am trying to do based on the
contstraints I have can't be done.
However hoping someone can prove me wrong.
I need to write an assembly that I can call from .net 1.1, .net 2.0,
classic asp, and possibly vb6.
The constraints are no web services. *I would like to develop the
solution in .net 2.0 as opposed to 1.1.
The last constraint is no the projects and webs written in .net 1.1
can't be upgraded at this time.
I tried exposing my objects from my 2.0 assembly as com. *Solves the
problem perfectly for classic asp and vb.6 and .net 2.0. *1.1 is the
difficult one. *I tried to connect to my com object using both early
and late binding and as I expected it would not work.
If anyone has gotten this to work, please do let me know.
Thanks in advance
sincerely
Ralph- Hide quoted text -

- Show quoted text -
Oct 8 '08 #3

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

Similar topics

5
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
4
by: Jasleen | last post by:
I have written one Widows Service in ATL, having a ATL component running. Now it is very easy to create the VC client by calling CoCreateINstanceEx to create the component running in the service...
0
by: Mike Collins | last post by:
I apologize for using this newsgroup for what seems like a VB6 question, but I did not see a newsgroup for VB6. I also think I may not have the C# code setup correctly for calling from VB6. If...
3
by: RC | last post by:
Hi, I have a dll written by vb6. AFunction(ByRef o as Variant) I want to use it in csharp by System.Reflection. Assembly asm = Assembly.LoadFrom("Lib.dll"); Type t =...
3
by: Lord2702 | last post by:
Sun. Aug. 22, 2004 2:20 PM PT How to create multifile assembly in Managed Visual C++ ? Using VSIDE. Please do not point me to MSDN pages, I already read those pages, and it only says, that you...
1
by: LidorP | last post by:
Hello All, My problem is as follows: I have an assembly which holds a number of WebForms. In order to use these WebForms in my WebApplication i have to extract them out of the assembly (using...
3
by: George W. | last post by:
I'm trying to use a DLL in my web app and get CS0234 (Namespace error). Is there no way to use a DLL that was written in VB in a C# web app?? -George W.
1
by: hungrymind | last post by:
Hi All, What I am trying to do is call one dll with query string as parameter, based on that my dll will decide how to perform. Basically I am trying to create assebly which will return some...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.