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

Problems with Assembly.Load()

I'm building a Shared Addin for Outlook using C#.

I'm using latebinding to determine the version ofoutlook installed on a machine, and load the addin instance forthat particular version of outlook. I was using Assembly.Load()and Activator.CreateInstance(). Everything was working justfine, till, yesterday when I was testing, installed the addinwhile having outlook open.

After this incident, Assembly.Load() does not seem tobe able to load the addin. I get a "File not found error", eventhough the required dll is avaible at the specified path.

I tried giving specific path usingAssembly.LoadFrom(), it worked. However, I got on an exceptionlater on, when i tried to use Outlook namespace to operate onsome of the ojects.

I was getting an exception "Interop.Outlook". notfound. Again, the interop.outlook.dll was there in the requiredapplication folder.
Has anyone encountered this error? Any suggestions?

Regards
Kumaran

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>pnuEi3N5zUKj5rwndrPgmg==</Id>
Nov 16 '05 #1
0 1023

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

Similar topics

3
by: Peter Blum | last post by:
I have built an assembly (dll) from which I expect third parties to subclass. As a result, when my assembly has a version change, it will cause any third party assembly based on it to break unless...
4
by: David Elliott | last post by:
I am trying to load an assembly and execute a method from a class. I have listed 3 parts to the code. 1) The Driver to load and execute 2) The Interface 3) The assembly I have a valid referece...
2
by: Greg Merideth | last post by:
I have an XSL file that I am using to transform some XML data using this method below. The problem is that if I use an embedded .XSL file in the .NET assembly, I get an error indicating that the...
3
by: TT (Tom Tempelaere) | last post by:
Hi there I am making a service project in C#, and I'm in the process of writing the installer. I made an installer class by using the "Add Installer" menu-item in the design window of the service,...
4
by: Aashish Patil | last post by:
Hi, My code is trying to load an assembly using Assembly.Load(string assemblyName); Assume that the current executing assembly is called Test.dll The following code works fine
2
by: Razzie | last post by:
Hey all, I'm working on this project where I'm dynamically loading an assembly. Basically what I want is that I can just replace my old dll file with a new one without having to do anything...
1
by: Ram | last post by:
Hey, I have a windows application that uses Assembly.Load to get information on certain Assemblies. But the problem is, that after the Load, even after I clean the object (set it to null), I...
2
by: Huw | last post by:
I have written a small procedure that opens a dialog that I pass it. Sub MyOpen(txtForm as string) Dim frm As Object Dim frmType As Type frmType = Type.GetType(txtForm) frm =...
2
by: George | last post by:
I have a .NET 1.1 C# app (lets call it MyApp.exe) which is designed to do some boring thing (not important now) but it can be extended with plug-ins. These plug-ins are subclasses of a type...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.