PC Review


Reply
Thread Tools Rate Thread

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

 
 
Ralph
Guest
Posts: n/a
 
      7th Oct 2008
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

 
Reply With Quote
 
 
 
 
Ciaran O''Donnell
Guest
Posts: n/a
 
      7th Oct 2008
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
>
>

 
Reply With Quote
 
Ralph
Guest
Posts: n/a
 
      8th Oct 2008
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.com> wrote:
> 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 -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strong-named assembly calling unsigned assembly: FileNotFoundexception Carol Microsoft C# .NET 7 21st Apr 2009 05:21 AM
No need to register assembly of DLL written in C# =?Utf-8?B?VmluY2VudA==?= Microsoft Excel Programming 0 8th Nov 2007 08:02 PM
Problem calling assembly which references another assembly from an asp page christianhaynes@hotmail.com Microsoft ASP .NET 3 3rd Mar 2006 04:52 PM
Calling DLL written in C++ =?Utf-8?B?RGF2ZS5ORVQ=?= Microsoft Dot NET 2 24th Jan 2005 04:45 AM
Re: Calling dll written in C =?Utf-8?B?Lk5ldEhlbHBXYW50ZWQ=?= Microsoft VB .NET 0 21st Jul 2004 11:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:21 PM.