stensby

Configuration:
Windows Vista
Visual Studio 2005
VSTO 2005 SE
Office 2003 Professional

Problem:
I've just upgraded from XP to Vista and after that even the simplest VSTO Outlook addin doesn't work any more.
I can't debug the project and ThisApplication_Startup event not firing.

When I look at the addin i Outlook (COM Add-Ins/Add-Ins available) the Load Behavior is "Not loaded. A runtime error occurred during the load of the COM Add-in."

Kindly help me with this issue

Regards

Gazza

 



Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

stensby

More qustions:

- Does the VSTO_LOGALERTS and VSTO_SUPRESSDISPLAYALERTS work on Windows Vista

Seems not to, I can't find the log file where it's supposed to be nor do I get alerts.

Regards

Gazza





Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

stensby

Does anyone knows if it's possible to develop a VSTO 2005 SE addin for Office 2003 on Windows Vista

Kindly help me with this issue

Regards

Gazza





Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

stensby

Seems like the microsoft people have taken a looong break over the christmas holidays...

So no one knows if it's possible to develop a VSTO 2005 SE addin for Office 2003 on Windows Vista
This will affect our development team in the sense that we'll not be able to upgrade to Windows Vista...

Poor us... :(





Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

RagingKore

I have the same problem.

Instaling Virtual pc 2007 to replicate my previous dev enviroment.

XP SP2 + Office2003 + Visual Studio 2005 SP1






Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

Denis BDA

Just to bring this thread to the top, I'd like to throw my hat into the ring and admit that I also just realized that all the work I've put into VSTO over the last month is useless on Vista. Nothing from my add-in appears.

Considering my company wants to roll over to Vista as soon as possible, this really throws a wrench in things if it isn't compatible.

Any idea if old automation add-ins also don't work in Vista






Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

Denis BDA

 

I discovered a post on another thread by Misha that suggested the following:

If this is the former, this might be due to the fact that you are running Office in Elevated mode but the COM class is registered under HKCU\Software\Classes. See http://blogs.msdn.com/junfeng/archive/2006/09/05/742295.aspx

To fix this you need to locate the CLSID that gets registered under HKCU\Software\Classes and move it under HKLM\Software\Classes.

I'm testing this out now and will post here if I have any success

---

Update:  I've tested this by copying the registry setting from HKCU to HKLM to no avail.  I also can't figure out what the replacement for the environment variable debug settings are, as they seem to be gone in vista.






Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

Denis BDA

Hey Guys,

I've touched base with someone in the VSTO team regarding the issue and he is looking into it for me. He confirmed that the issue is most likely registry/security related and they are aiming to have a knowledgebase article and update released in Feb.

For the time being, the method I'm now trying is to create a separate Vista setup project and moving all of the registry settings for HKCU to HKLM. I'll post here if this ends up working as my initial test appeared to cause something to try to load so I suspect this may do it.






Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

Denis BDA

Hey Guys,

Moving the registry settings from HKCU to HKLM in the setup project appears to have worked for me. I still get an error msg when loading Excel ("Could not load some objects because they are unavailable on machine"), however, this may likely be related to other tests I was doing as the add-in appeared to load and function despite this error.

So to move the registry settings, right click on the Setup Project in your Solution directory in Visual Studio. Go to View-->Registry. Then when the registry page opens, open up the HKEY_CURRENT_USER\Software directory and drag and drop anything in there (mine had Classes and Microsoft directories) to the HKEY_LOCAL_MACHINE\Software directory.

This also appears to work when you log in as a standard user in Vista.

Denis






Re: Visual Studio Tools for Office Windows Vista, VSTO 2005 SE addin on Office 2003 not working

stensby

Hi and thank you for helping me with this issue.

Moving the registry setting from HKCU to HKLM actually worked for me as long as I installed the application (right click on the Setup project, then choose Install).

So, if I try to debug the addin it won't work until the addin has been installed.
This is because the registry settings will be created in HKCU when debugging and in HKLM when installing...
Installing the addin first and then running debug will make debugging work.

Thank you for leading me on the right track!
I was actually on my way of giving up since it seemed like no one but me had theese problems.

Thanks again

Gazza