VS2003 & VS2005 Side-by-Side Issues

T

TCook

Hey All,

I have a Word 2003 addin that was created under VS2003. I recently
installed VS2005 on my machine.

When I try to run the addin inside of VS2003, it just launches Word and
crashes it.

I've seen some articles about creating .config files containing the
following:

<configuration>
<startup>
<supportedRuntime version"v1.1.4322"/>
<supportedRuntime version"v1.0.3705"/>
</startup>
</configuration>

an placing them in the Office app's path. This did not work.

I also saw something about security permissioning for the 2.0 Framework but
it didn't say where, how or what permissions.

Has anyone successfully resolved this issue?

Can anyone advise in detail?

I can't perform my work unless I get this resolved.

Thanks & Regards,

TC
 
C

Cindy M -WordMVP-

Hi TCook,
I have a Word 2003 addin that was created under VS2003. I recently
installed VS2005 on my machine.

When I try to run the addin inside of VS2003, it just launches Word and
crashes it.
Have you tried this
http://www.microsoft.com/downloads/details.aspx?familyid=1B0BFB35-C252-43C
C-8A2A-6A64D6AC4670&displaylang=en

If you have, try asking in a VSTO forum, such as
vsnet.vstools.office
or
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=16&SiteID=1

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
T

TCook

Hey Cindy,

I already have that update installed. Plus, it's for the 2.0 Framework. I
need the addins to run under the 1.1 Framework even though the 2.0 Framework
and VS2005 are installed.

I haven't tried the Office Tools forum as that also pertains to VS2005 but I
guess that I should anyway.

Thanks for trying ;-)

Regards,

TC
 
T

TCook

Hey All,

OK. I've solved some of the problem. Turns out, the .config file that I
had created had a typo. It does not crash Word when created properly.

However, my addin is not running when Word launches. I also tried creating
a brand new addin from scratch and it points to VS2003 and not MS Word.
Thus, when the addin runs, it runs VS2003. After redirecting the addin to
run when Word runs, even though Word launches, the code does not run.

Any ideas?

Regards,

TC
 
P

Patrick Schmid

Hi TC,

I don't know if you can do it or not, but what happens if you remove the
..NET 2.0 Framework?

Patrick Schmid
 
T

TCook

Hey Folks,

I have solved the issue and will detail the process below:

1) For addins, place a config file prefixed with the name of the application
in its folder (i.e. for MS Word winword.exe.config) that contains the
following:

<configuration>
<startup>
<requiredRuntime version="v1.1.4322" safemode="true" />
</startup>
</configuration>

2) Make sure that the addin hasn't been disabled. Under MS Word, this list
can be found under the 'About' dialog box. Remove the addin from this list.

3) Make sure that the "LoadBehavior" registry key is set to "3" under the
following registry directory:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\[AddInName].Connect

4) Make sure that the addin is set to run under "Debug" mode via the
"Configuration Manager" from within VS2003. This can found under Project ->
Properties -> Configuration Manager -> Active Solution Configuration.


I hope that the above helps others encountering the same issues.

Best Regards,

TC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top