Outlook deployment trouble

Add-in Express™ Support Service
That's what is more important than anything else

Outlook deployment trouble
Outlook deployment trouble 
Dino Martinazzo




Posts: 11
Joined: 2007-04-12
Hallo
I'm using adxnet-v304-b2493-vsto-std and vs2005.
On the developement pc all work fine, i'm developing an outlook 2003 add-in in vb.net/vsto (not vsto se) that have a contact extension inserting a custom form inside the original one.

when i try to deploy the solution on the target machine it is not working, i see the plug in on the available components but it is disabled, and outlook say "not loaded, runtime error" like the cas was not registered.

Now the trouble: i tried to compile the example for testing deployment, but they don't work either! (nor c#)

i had the same comportment of mine addin with C:\Program Files\Add-in Express\Add-in Express 2007 for VSTO Standard\Demo Projects\Outlook\MyFirstOutlookAddin.

Where is the point i'm missing.
Is there a deploy working sample for vsto/vb.net 2005 ?
Thank you for helping.
Dino

ps. i'm able to deploy my add in developed without ADX but your ADX had better interfaces and require less work for implementing, so i really want use it.
Posted 12 Apr, 2007 20:37:17 Top
Pascal G




Posts: 9
Joined: 2006-08-01
Be sure you have the .Net Framework 2.0 installed on the target machine.
Also, Outlook supports only 1 runtime at a time so if you already have an add-in, for example built in 1.1, then your add-in in 2.0 won't never load.
You can google about Outlook.exe.config to ensure which .net runtime Outlook should use. I'm not at the office so I can't show you exactly what the file should looks like but I'm sure you will find it on google.
Posted 12 Apr, 2007 23:54:09 Top
Dino Martinazzo




Posts: 11
Joined: 2007-04-12
My configuration on target machine is:

win xp pro ita sp2
.net framework 2.0
office pro 2003 ita completed with all options (pia)
vsto run time
windows installer 3.1

i see myfirstoutlookaddinsetup too.

no other addin

on advanced options
outlook said that there is a run time error on load
and the checkbox is not cheked.
Posted 13 Apr, 2007 06:21:09 Top
Pascal G




Posts: 9
Joined: 2006-08-01
I once used FUSLOGVW.exe to catch runtime load error..
Start C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\FUSLOGVW.exe and then open Outlook. The runtime error description will appear into that application.
Posted 13 Apr, 2007 09:14:07 Top
Sergey Grischenko


Add-in Express team


Posts: 7235
Joined: 2004-07-05
Hi Dino.

Please look at our examples from the Add-in Express installation package.
All examples have working setup projects.
As to the issue, I think you haven't grant trust to your add-in asseblies in the 'Microsoft .NET Framework 2.0 Configuration' administrative tool.
Also please read the following article:
http://msdn2.microsoft.com/en-us/library/aa537173(office.11).aspx


P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 13 Apr, 2007 11:36:03 Top
Dino Martinazzo




Posts: 11
Joined: 2007-04-12
Hi

i've tried fuslogw and it says that i had trouble with language versioning!

my develop station is with xp eng and the deploy is xp it

i made this:
i've installed a freshly new xp sp2 ita with the same vs2005 that work on my station so i changed the op system.

now i have this message:

---------------------------
Microsoft Visual Studio
---------------------------
Unable to read the project file 'MyFirstOutlookAddin.csproj'. C:\Programmi\Add-in Express\Add-in Express 2007 for VSTO Standard\Demo Projects\Outlook\MyFirstOutlookAddin\MyFirstOutlookAddin\MyFirstOutlookAddin.csproj(195,11): The imported project "C:\Programmi\MSBuild\Microsoft.VisualStudio.OfficeTools2.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
---------------------------
OK Annulla
---------------------------



i've modified the registry according what vs said and then i obtain


---------------------------
Microsoft Visual Studio
---------------------------
One or more projects in the solution could not be loaded for the following reason(s):

The application for the project is not installed.

These projects will be labeled as unavailable in Solution Explorer. Expand the project node to show the reason the project could not be loaded.
---------------------------
OK ?
---------------------------

and the sample application does not load.


i've built another new project into the new environment
change the setup like yours, adding the structure and the
custom action

/assemblyName="OutlookAddin1.dll" /targetDir="[TARGETDIR]\" /solutionCodeGroupName="Afalina.OutlookAddin1" /solutionCodeGroupDescription="Code group for OutlookAddin1" /assemblyCodeGroupName="OutlookAddin1" /assemblyCodeGroupDescription="Code group for OutlookAddin1" /allUsers=[ALLUSERS]

/solutionCodeGroupName="OutlookAddin1"

/solutionCodeGroupName="OutlookAddin1"

/Manifest="[TARGETDIR]\OutlookAddin1.dll"


changed the setup language to neutral

built the deployiment solution and installed.


the installer log report strange culture trouble but...
the this time the plug in fire up!

but the log say

*** Assembly Binder Log Entry (13/04/07 @ 17.58.15) ***

The operation failed.
Bind result: hr = 0x80070002. Impossibile trovare il file specificato.

Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Programmi\Microsoft Office\OFFICE11\OUTLOOK.EXE
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = XP\Administrator
LOG: DisplayName = OutlookAddin1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8bd27dc788ae03d6
(Fully-specified)
LOG: Appbase = file:///C:/Programmi/test/OutlookAddin1Setup/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : Microsoft.VisualStudio.Tools.Applications.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: Start binding of native image OutlookAddin1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8bd27dc788ae03d6.
WRN: No matching native image found.

-------------------------------------------------
so maybe i've got the recipe !!!!!
-------------------------------------------------
but your deployed exampled does not work in this new installation.

i have to made other experiment for testing if the method always work, otherwise with lang that differ from us-eng we could have big troble.
In which lang do you pack the dll?

Let me test for 2-3 days than i tell you my result.

thank you for the hints.
Dino



Posted 13 Apr, 2007 12:27:17 Top
Sergey Grischenko


Add-in Express team


Posts: 7235
Joined: 2004-07-05
Hi Dino.

Please install VSTO 2005 Second Edition. I think it should fix the issue.
Posted 13 Apr, 2007 13:11:52 Top
Dino Martinazzo




Posts: 11
Joined: 2007-04-12
Hi Sergey,

VSTO 2005 Second Edition fixed the issue.
The method for deployment seems work.

Thank you for all
Dino
Posted 15 Apr, 2007 12:14:50 Top