PC Review


Reply
Thread Tools Rate Thread

Component Version Problem

 
 
=?Utf-8?B?QW5kaWVnbw==?=
Guest
Posts: n/a
 
      24th Jan 2005
I have an application which calls a class MyClass in a second application as
follows:

loAssembly =
System.Reflection.Assembly.LoadFrom("c:\MyProjects\MyProject1\Application1.exe")

loType = loAssembly.GetType("Applicationi1.MyClass", True, True)

If Not loType Is Nothing Then
loCC = Activator.CreateInstance(loType)
Else
MsgBox("Error")
Exit Sub
End If

Application1.exe uses the same references as the calling application but
with different versions. When I call the class with the code above MyClass
doesn't load forms which use one of those different version references. When
I use the same version in both applications it works. How do I tell MyClass
to load its own projects references?

Andiego
 
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
Component version question Antonio T. Microsoft VB .NET 4 5th May 2006 10:11 AM
Is there a way in TD to specify a version of a component other than the latest? Mark K Vallevand Windows XP Embedded 4 27th Oct 2004 07:31 PM
TD: How can I add not the newest component version Joerg Schneider Windows XP Embedded 5 21st Jan 2004 02:09 PM
Framework Version Problem - .net assembly as com Component Reinhold Dunkl Microsoft Dot NET Framework 1 18th Jul 2003 10:02 AM
Spreadsheet Component in Academic Version bt Microsoft C# .NET 0 9th Jul 2003 02:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:24 PM.