Re: Unable to run Outlook 2000 com addin built via .NET/VS 2003

Tech-Archive recommends: Speed Up your PC by fixing your registry



Gary -

I've been working on a C# Outlook PlugIn for the past (too long to
say!).

It's installing and working on W2K and XP, Outlook 2000 - 2003. I had a
similiar problem, and found I had to modify the Install to include the
call to base.Install(stateSaver);

You can also download and install the "main function" source code for
the PlugIn from www.TekGuard.com.


public class AppInstaller : Installer
{
private System.ComponentModel.IContainer components;

public override void Install(System.Collections.IDictionary
stateSaver)
{
base.Install(stateSaver);

RegistrationServices regsrv = new RegistrationServices();
if (!regsrv.RegisterAssembly(this.GetType().Assembly,
AssemblyRegistrationFlags.SetCodeBase))
{
throw new InstallException("Failed To Register for COM");
}
}

public override void Uninstall(System.Collections.IDictionary
savedState)
{
base.Uninstall(savedState);

RegistrationServices regsrv = new RegistrationServices();
if (!regsrv.UnregisterAssembly(this.GetType().Assembly))
{
throw new InstallException("Failed To Unregister for COM");
}
}

#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}




Posted by www.AndrewM.com [wwwAndrewMCom Post# 20050616]

Software Entrepreneurs, ISV's, Developers - Sell & Support your
programs with an 800# virtual auto-attendant:
www.VoiceInfo.com - <a href="http://www.VoiceInfo.com";>
Virtual Office, Automated Phone Assistant, Web Access </a><br>

Developers, ISP's, Small Business Owners - Need a starting point for an
anti-spam email server, Outlook client, WebMail?
www.TekGuard.com - <a href="http://www.TekGuard.com";>
Free Mail Server, Outlook PlugIn, WebMail, C# Source Code </a>

.



Relevant Pages

  • Re: Video editing in Linux?
    ... >> this is an absolute world of difference from windows. ... but theres so much to take in just to install an audio app. ... I was under the impression that you sent the source code and a patch ...
    (alt.linux)
  • Re: whats a callback?
    ... That's because you get all the source code and about 3000 other ... > for instance PocketPC Windows doesn't take up that much space either. ... What about the fact that Excel ... will be available after the install of the next MS Office Service Pack. ...
    (comp.arch.embedded)
  • Re: whats a callback?
    ... That's because you get all the source code and about 3000 other ... > for instance PocketPC Windows doesn't take up that much space either. ... What about the fact that Excel ... will be available after the install of the next MS Office Service Pack. ...
    (sci.electronics.design)
  • [HPADM] SUMMARY: less getting "WARNING: terminal is not fully functional"
    ... Inspection of the less source code suggests that is it missing termcap ... The box in question is a relatively fresh install of 11.23 HP-UX on ia64 ... Itanium servers. ... but then you will have to compile your own less binaries. ...
    (HP-UX-Admin)
  • Re: Linux Vs. FreeBSD
    ... On the other hand, compiling ... >> source code is annoyingly slow and relatively difficult when it cones ... > different architectures and environments, ... install it in a matter of seconds or minutes, ...
    (comp.os.linux.misc)