Outlook 2003 Object Library load failure

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Environment: MDE 2002 V7.0.9466; Visual Studio.NET; Framework 1.0.3705

I have a fairly complex application which has been running properly at field
test sites for over a year. Recently, after being rebuilt, the application
started failing in my test environment with a runtime filenotfound error. I
traced it to the instruction which creates the Outlook Application, e.g.,
ol = New Outlook.Application() where ol is dimensioned as Outlook.Application

Further research revielded that the Object Library reference for Outlook has
substantially changed between version 9.0 and 9.2 so that the object gets
referenced ?incorrectly? within my VB application. The differences that I
can see in the library properties section of Visual Studio are as follows:

Property V9.0 (still works) V9.2(fails)
---------- -------------------- ------------
Name Interop.Outlook Microsoft.Office.Interop.Outlook
Copy Local True False
Identity ...\9.0\tlbimp ...\9.2\0\primary
Path program output \windows\assembly\GAC...
Strong Name False True
Type ActiveX ActiveX
Version 9.0 9.2

I've tried changing my program references from Outlook.Application to
Microsoft.Office.Interop.Outlook. This solves build assembly errors, but the
runtime still fails at the application creation statement with filenotfound.
When I look at the Assembly Binding Log, the search path appears to be back
to my program output location (as I believe it should be for an ActiveX
component).

Why is my development environment creating this new (v9.2) object library as
a GAC reference instead of Copy Local True. [BTW, I've tried forcing the
Copy Local flag to True - the problem remains the same.

Thanks in advance for your time.

-
craig
Mergellina Designs Inc
.



Relevant Pages

  • Re: why cannot assign to function call
    ... which is a reference to an object. ... /environment/; if the environment assigns a meaning to a name, ... the enclosing block, i.e., within the inner block, a few names are bound ... to new meanings, while all the other names retain whatever meaning they ...
    (comp.lang.python)
  • Re: global variables, no lexical address
    ... The variable reference in the ... value in the environment. ... I used the wrong word - globals. ... the variable name with something like (lexical-ref 5) you would replace it ...
    (comp.lang.scheme)
  • Re: Referencing Figures With Labels Does Not Work
    ... \endenvironment. ... interested in floating objects. ... LaTeX FAQ: http://www.tex.ac.uk/faq ... To reference such figures for further referencing. ...
    (comp.text.tex)
  • Re: Restore a DTS Packaga Saved As Visual Basic File?
    ... opened the saved DTS Visual Basic file in the following environment: ... Attempted to add Reference to the project: [Microsoft DTSPackage Object Library] but got the following error message.. ...
    (microsoft.public.sqlserver.dts)