PolkaDance

I made an add in for Outlook. After adding a custom install class that I found there:

http://weblogs.asp.net/mnissen/articles/427490.aspx

It finally worked on my computer when I used the msi to install it (it wasn't working without that class) but now, I tried to deploy it on other computers (Co-Workers machines at the moment), it doesn't work and their configuration doesn't seem to be different than mine and they have the requirements I found here http://weblogs.asp.net/mnissen/articles/427504.aspx under Prerequisites (The CSA should be dealt with by the custom install class).

What's weird is that if I install it via a shared folder, all seems to have been installed fine if I look under tools/option/other/advanced options/Com Add-Ins... but It doesn't start at all. If I copy the msi on the computer itself and install it from there, I get the following error: Not Loaded. A Runtime Error Occured during the loading of the Com Add-In.

To know if my add-in works or not, I added a couple message boxes, one at the beginning of the Start event and another in the beginning of the method that is called when the job is to be executed and neither popped on other computers(they poped on mine). On the other hand, I've put on in the custom install class and it pops in any computer my add-in has been installed on.

On http://weblogs.asp.net/mnissen/articles/427504.aspx, there is something about Bootstrappers...but I don't understand how to add that into my add in.

Trying to Publish my add-in gives compilation errors that make no sense. It says that some projects failed to build which is false and that it needs a signing key but the messages says that it is supposed to create one for me(why an error then ).

Now I'm at lost about the next step, any suggestions Anything I'm missing

Thanks

 



Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

PolkaDance

After working a whole day on this, I haven't a clue about what the problem could be. It works on my computer but not on my co-worker's.

On my Co-Worker's computer, the prerequisits seems to be ok. It is signed. It contains a custom action that sees the custom install class which seems to work and the outlook.common is referenced. I checked the regestries and they seems to be fine too.

The behavior is unstable as well, the first time it is installed, it shows like if it was ok but the subsequent times, it is either shown as unchecked or it doesn't open at all and pop an non-descript error message.

The only difference, in fact, is that I have a Regestry for my VSTOProjects but other computers don't want that, it's for developers.

Another of my Co-Worker did an add-in with VS2003 and .Net 1.1 and he didn't have to do anything at all to make it work on other people computers...

Any suggestions I've read the msdn walkthru and several other blogs on the subject.

Thanks





Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

PolkaDance

I`ve decided to make a new test project where I would apply every relevent steps in the walkthru. I didn't include the launch conditions since I am always starting the Setup.exe which install the interop and the runtime(we all use the same language).

It still doesn't work on other people computers. Am I missing something that isn't in the walkthru





Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

Peter Jausovec

Hi,

Did you set the CAS policy Your addin needs FullTrust to run.






Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

PolkaDance

Yes, I did,

I followed the walkthru and used the security class as explained there. I have the prerequesits(which were a pain to add). Everything works fine on my machine but not on other machine. Without the security class, it wasn't working even on my machine, this tells me that the security works at least.

BTW, using your tool stated that my CSA was correct. I had 4 with the bug icon like I told you(on my own machine but the add in still worked so it must not have been critical) but one machine I tried to install the add-in onto was perfectly set up according to your tool and it still didn't start. Sometimes Outlook says it's loaded but it isn't checked(checking it does nothing) or it is not loaded.

One of my co-worker also created a test add-in to help me find the trouble which means he should have everything I have and my add-in still doesn't work on his machine.

 





Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

PolkaDance

My co-worker found the trouble, a file was missing in Office11, Outlook.Exe.Config with the required .net versions(v2.0) but now I have an even stranger trouble...yesterday, everything worked fine on my computer at least, today, without changing anything, nothing works anymore even though the registry indicate that all is fine, I am even unable to debug my add-in like I was able to, yesterday!

The funny thing is that when I make an installer and install what I'm unable to debug anymore, on another machine, it works!!!

Anyone has an idea how I can get the same behavior on my machine and on other's machines  

Thanks





Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

Warbird84

I am working on the excel 2003 Add-In installation issue but i found your post somewhat usefull, regarding the debugin prob u r facing try this :

launch outlook->Help->Disabled Items

check if you addin is mensioned there in case it is there just removeit and hopefully your add-in will start working, in my case it worked.

Regards

yuri






Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

PolkaDance

Unfortunatly, it isn't there and it doesn't start even if I check it in the options(it gets back to uncheck).

I've read that the Outlook.Exe.Config should only be used if you re using a .net 1.1 addin on a .net 2.0 computer and only for debugging but it seems required to work on other computers regardless of the framework used. Also, if you want to start 2 addins that work on different frameworks, one will not work even if you add 2 required tags in the config file, I will need to find a solution for this one because that's exactly the situation we have here.





Re: Visual Studio Tools for Office Add-In -> Works = My Computer, Doesn't work on others

John R. Durant - MSFT

PolkaDance,

(I'm cleaning up some old threads that seem to have been left in an uncertain state)

What you have discovered is correct: even if you use the config file to lockback to a previous .NET Framework version (not the normal and recommended scenario), you can only use one version of the framework at a time. Thus, you cannot have one add-in load and use .NET 1.1 and then have another add-in load and use version 2.0. This is because Office can only load one version of the framework at a time. There is no way to load two different versions and switch between them as the add-ins execute.

Best,

http://blogs.msdn.com/johnrdurant