开发者

Error System.ObjectDisposedException VSTO SmartTag?

开发者 https://www.devze.com 2022-12-19 23:37 出处:网络
I\'m having trouble getting a vsto project to work.It\'s a simple Word 2007 addin application that adds a smarttag identifier.

I'm having trouble getting a vsto project to work. It's a simple Word 2007 addin application that adds a smarttag identifier.

here's the error:

****开发者_高级运维********** Exception Text **************
System.ObjectDisposedException: Cannot access a disposed object.
   at Microsoft.Office.Tools.SmartTagCollection.BeginInit()
   at WordInWord.ThisAddIn.BeginInitialization() in C:\Users\Chris\Desktop\WordInWord\WordInWord\ThisAddIn.Designer.cs:line 129
   at WordInWord.ThisAddIn.InitializeDataBindings() in C:\Users\Chris\Desktop\WordInWord\WordInWord\ThisAddIn.Designer.cs:line 66
   at Microsoft.VisualStudio.Tools.Office.EntryPointComponentBase.Microsoft.VisualStudio.Tools.Applications.Runtime.IEntryPoint.InitializeDataBindings()
   at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.ExecutePhase(ExecutionPhases executionPhases)
   at Microsoft.VisualStudio.Tools.Office.Internal.OfficeAddInAdapter.InitializeEntryPointsHelper()

somehow the smarttags are disposed? I don't get it.


Solution:

I knew this applicatio worked before so I published it. When I went to install the add in the install app required the VSTO 3.0 runtime SP1 update. The app requires the SP1 update.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号