CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Posts
    199

    COM Interop requires Outlook .dll in GAC, but...

    not all installations use the assemblies that reference Outlook.

    I have an app which reads schedule information from a variety of sources, one of which may be Outlook.

    On systems where the user wants to access Outlook calendars, obviously they need the Outlook .DLL 11.0.0.0 in the GAC. But if a user isn't going to access Outlook at all and/or doesn't have Outlook installed on his/her PC, I don't want to prohibit them from installing and running the app.

    So is there a way to allow an app which references the Outlook .dll in one of it's assemblies to run, without having the Outlook .dll in the GAC? I don't mind having an error generated if the user tries to access Outlook if they don't have it on their machine, but I do need my app to run on all machines whether Outlook is installed or not.

    Any way I can accomplish this?

    thanks. Using .Net 3.5SP1 and WPF

  2. #2
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: COM Interop requires Outlook .dll in GAC, but...

    What is the full form of GAC?

    Do you mean to say that you are getting compile error when you are trying to build the code , with your source code trying to access outlook.dll, if so try to go to reference in the Solution explorer and remove the reference for that outlook by right clicking the mouse button.

  3. #3
    Join Date
    Sep 2006
    Posts
    199

    Re: COM Interop requires Outlook .dll in GAC, but...

    No, that's not the issue. It compiles and runs fine on machines that have Outlook installed on them. But it won't run on machines without Outlook even if the user isn't trying to access any Outlook calendars.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured