Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / May 2006

Tip: Looking for answers? Try searching our database.

VS2003 & VS2005 Side-by-Side Issues

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TCook - 13 May 2006 22:46 GMT
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
Cindy M  -WordMVP- - 14 May 2006 11:16 GMT
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 :-)
TCook - 14 May 2006 18:09 GMT
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

> Hi TCook,
>
[quoted text clipped - 20 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
TCook - 14 May 2006 18:39 GMT
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

> Hey Cindy,
>
[quoted text clipped - 35 lines]
>> This reply is posted in the Newsgroup; please post any follow question or
>> reply in the newsgroup and not by e-mail :-)
Patrick Schmid - 14 May 2006 21:12 GMT
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

> Hey All,
>
[quoted text clipped - 53 lines]
>>> or
>>> reply in the newsgroup and not by e-mail :-)
TCook - 15 May 2006 03:19 GMT
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

> Hi TC,
>
[quoted text clipped - 61 lines]
>>>> or
>>>> reply in the newsgroup and not by e-mail :-)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.