Quantcast
Channel: Visual Studio Tools for Office (VSTO) forum
Viewing all 5157 articles
Browse latest View live

Unloading addin and it's ribbons programmatically

$
0
0

I have developed a Word Application level Addin with a ribbon. When I try the already given methods of unloading Addin the ribbon of my addin throws exceptions. How to unload/remove ribbons before unloading the addin. I have tried the following two methods

System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(1)
AppDomain.Unload(AppDomain.CurrentDomain)

Both the above methods are throwing exceptions. Please suggest some method by which first the ribbons are unloaded/disabled/removed and then the addin is shutdown.


Dharam Veer Sharma


What Software Needed On Server for VSTO Web Application

$
0
0

Would you please help with what software needs to be loaded onto the Server so that my app can use Excel 2007?

I have a web app that I developed using VS 2013.  The app uses Excel 2007 through Interop to read an Excel file and structure the data to be stored in a SQL Server database. May app is written in vb.net and uses VSTO 3 and PIA 12 along with .Net Framework 4.0. The app runs in the server and the user takes advantage of the app through their web browser.

Running under Visual Studio 2013 the app successfully imports the Excel file and writes the data into the SQL Server database.

When we upload the app to the server (through copying the VS Project files and folders) all features in the app run smoothly except the feature for reading the Excel file. Every time the app is running on the server and it tries to create the Excel object we get the following error:

[Exception: Cannot create ActiveX component.]

  Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName) +491118

  HOFinSmrySys.uploadHOF.btnImport_Click(Object sender, EventArgs e) in C:\Users\Karen Maguire\Documents\Visual Studio 2013\Projects\HOFinSmrySys\HOFinSmrySys\uploadHOF.aspx.vb:303

  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154

  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707

The Server had the following software installed: MS Office 2007, .Net Framework 4.0, VSTO 4 and PIA 14.

Documentation I have found says we need to have the following software installed on the server: MS Office 2007, .Net Framework 4.0, VSTO 3 and PIA 12.

Please help us with your input on these 2 questions:

1.  Is our understanding correct about what software we need to have installed on the server?

2. If our understanding is wrong – what software do we need installed on the server?

Thank you very much in advance for your help!

Outlook addin developed for Office 2010 can not install using clickonce on office 2013

$
0
0

Hi,

I've just copied my thread from here http://social.msdn.microsoft.com/Forums/en-US/outlookdev/thread/5462cc5a-c23b-4bb4-a86f-931efa0c5844 (I hope I haven't broken any rules), because nobody there could help me - hope it will be better here:

I have my Outlook addin developed in VS 2010 for Outlook 2010, .NET 3.5 and installed by the ClickOnce. I'd like to use the same add-in on Office 2013 (win8/x64). I have both VS2012 and VS 2010 installed on my computer, but only Office 2013 - I've heard that it's possible to have both of them, however it has caused me problems.

When I try to install the add-in I get following exception:

Could not load file or assembly 'Microsoft.Office.BusinessApplications.Fba, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.config line 10)

VSTOINstaller config file content is :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.net>
    <webRequestModules>
      <remove prefix="http:"/>
      <remove prefix="https:"/>
      <add prefix="http:"
           type="Microsoft.Office.BusinessApplications.Runtime.DeploymentAction.HttpFbaRequestCreator,Microsoft.Office.BusinessApplications.Runtime,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" />
      <add prefix="https:"
           type="Microsoft.Office.BusinessApplications.Runtime.DeploymentAction.HttpFbaRequestCreator,Microsoft.Office.BusinessApplications.Runtime,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" />
    </webRequestModules>
  </system.net>
</configuration>


Does anybody know what's going on or how to solve this problem? 

Thanks

Filip

Workbook.Shutdown event not called on reopening of an already open workbook

$
0
0

Hi,

I have an Excel application level add-in (for Excel 2010 and 2013) written in c#, VSTO, on .NET Framework v4. When a workbook gets opened into Excel I store a reference to the XLS.Workbook host-item in my code. When the workbook is closed in Excel I trap the Workbook.Shutdown() event and dispose off the host item. All works just fine but for one specific scenario...

i.e., when I open a workbook into Excel and then 'reopen' that same workbook by double-clicking on the file in the File Explorer! By doing so, the currently open workbook gets closed in Excel and the same workbook is then reopened (can be clearly seen on screen, workbook disappears and reopens anew). Now this would be OK if I could trap the Shutdown event, but it is never called!? Neither are the Workbook.BeforeClose() or the Workbook.Dispose() events, despite the fact that Excel clearly closes the workbook.

Since I cannot trap the reopening event of the workbook I am left with one XLS.Workbook reference that exists in a limbo state. Help please...

Many thanks in advance! /T

Set trusted protocols for local machine

$
0
0

PLEASE DELETE - BAD SECTION:

we can´t find out how to add our protocol to registry (trusted protocols) for all users. 

only way we have is adding our protocol to current user registry, like this:

[HKCU\Software\Policies\Microsoft\Office\11.0\Common\Security\Trusted Protocols\All Applications\corinth:]

What we have tried?

* put it under same path in HKLM, but it doesn´t work.

* registry propagation described in http://blogs.msdn.com/b/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-all-users-part-i.aspx, but this solution were unable to write under security node

Do you have any idea, how to solve our problem?


Outlook Add-in Issue: First sent email gets stuck (only when the current view is Outbox)

$
0
0

We have a COM Addin developed for Outlook. I have not handled the send event. It does handle the new inspector event to add few buttons on the new email window. Recently users reported an issue that the email gets stuck in the outbox. We noticed that it gets stuck only when the user is in the outbox at the time of sending the email. And only one email gets stuck and the any subsequent emails sent are not stuck.

Scenario:

1) Navigate to the Outbox.

2)Click on the new email button on the ribbon

3)type in the message and click send. Message stays in the outbox. (Clicking Send/Receive all  folders did not solve the issue)

I tried the solution provided in the MSDN post. Since I have a similar code when new inspector is created. I even tried commenting out the new inspector code. And wherever I am using TypeOf on the object to verify whether it is an mailitem or not, I replaced it with the solution provided in the post. Still the issue persists.  Any help is appreciated.

MSDN thread link: Outlook Add-in problem: First email in Outbox gets stuck

Thanks,


Suku

reload on a new machine

$
0
0
O am purchasing a new Mac Mini. How do I load Office 2011 Mac  which I own,  on my new computer?

How to run an UserForm(VBE) using VBA interface in VSTO

$
0
0

I am writing an addin for excel using vsto.

I have imported the UserForm file(.frm  vb5.0,which exported from VBA) to the VBProject. 

But I don't know how to run the UserForm in Vsto. The similar code in VBA  is:

'---------------------------------------

Sub ShowForm()

VBA.UserForms.add("formName").show

End Sub

'---------------------------------------

My Vsto Code is as followed  (vb.net ):

Dim vbpro As VBProject = ExcelApp.ActiveWorkbook.VBProject
Dim comp As VBComponent

comp = vbpro.VBComponents.Import("C:\\Udf.frm")

'how to show the form?...

'---------------------------------------

Please help and thanks in advance



Database permission error in windows 8.1

$
0
0

I have developed an application level Word addin. After installation, it works fine under windows 7 for Office 2007, 2010 and 2013. But on Windows 8 and Windows 8.1, after installation, the database becomes read only and update operations result in errors. How to fix this? Release of my software is stuck just because of this reasons.

Thanks in advance for early reply.


Dharam Veer Sharma

HELP! VB regex to search for whole word regardless of characters / special characters used in the word

$
0
0

Hi,

I am trying to create a regex formula that takes a series of words and forms a regex that searches for any of these words in a body of text.  It needs to be able to search for either a whole word, or the word as a non-whole word depending on a setting for each one.  So far I have been using:

tempKeywordStr = replaceSpecialChars(keywords_to_search(j).keyword)
If keyword_substring_search = False Then
' Add into string to use in regular expression. \b is used to indicate whole words only
keywordListstr = keywordListstr & "\b" & tempKeywordStr & "\b" & "|"
Else
' Add into string to use in regular expression, search within words
keywordListstr = keywordListstr & tempKeywordStr & "|"
End If

Function replaceSpecialChars(ByVal input As String) As String
 Dim temp As String = input

'Escape any special characters apart from the out two
        temp = Replace(temp, "\", "\\")
        temp = Replace(temp, "+", "\+")
        temp = Replace(temp, "*", "\*")
        temp = Replace(temp, "?", "\?")
        temp = Replace(temp, "|", "\|")
        temp = Replace(temp, "{", "\{")
        temp = Replace(temp, "}", "\}")
        temp = Replace(temp, "[", "\[")
        temp = Replace(temp, "]", "\]")
        temp = Replace(temp, "(", "\(")
        temp = Replace(temp, ")", "\)")
        temp = Replace(temp, "^", "\^")
        temp = Replace(temp, "$", "\$")
        temp = Replace(temp, ".", "\.")
        temp = Replace(temp, "#", "\#")
        Return temp
End Function

The problem with this is it doesn't seem to pick up words such as "(test)" where the special characters are on the outside of the word being searched, and the keyword_substring_search = false.  It is almost as if it doesn't like /b being before an escaped special character, since it finds these without /b.

Does anyone know how to get around this, since I need to be able to find all words I am passed, no matter how many different special characters they contain, and where these special characters reside in the word.

Thanks in advance for any help!

Cheers,

Tom

Update:

I've just read that \b only checks if the first character is \w character.  It seems for my functionality I might need to write my own lookahead / lookbehind... any tips on what I might need?

Update 2:

These two links suggest a solution for a customised lookahead / lookbehind, but I can't seem to get this working with the regex obj I am using in vb:

objRegEx = CreateObject("VBscript.RegExp")

Link 1

Link 2

Word 2007 Add-in Ribbon Question

$
0
0
Hello all,
I am currently creating an addin for Word 2007 by adding a new tab to the Ribbon with some buttons and dropdowns. When the user hovers their mouse over a field, they see the "ScreenTip" and "SuperTip" providing information. Also included is a dialog showing the name of my addin with the text "Press F1 for more help." Is there any way to remove that caption or personalize it a bit more so the user does not press F1 and receive the generic help box from Word about addins?

Thanks in advance for any words of advice.

Insert a textbox in Word 2010

$
0
0

Hello,

I have been developing Word 2010 plugins using VS2010. So far inserting content controls and shapes, tables has been good but this time I'm really stuck. I know this might be easy but I need some guidance. I want to Add a Textbox (shape) on Word 2010 document. I'll be adding content controls to it to hide/show later. But to get the initial textbox added seems a hurdle.

Thanks a lot in advance for the help!

Regards,

May

TrackRevisions is not available. Threw an exception

$
0
0

Hello all,

I hope someone can help me. I'm working with a Word document in my application and I cannot do a 'saveAs' nor 'publish' the document. The reason is why an exception is thrown in the plugin.

The document is a formulary and it is protected.

When I try to 'save as' I get the exception when I try to do:

revisionsActive = document.TrackRevisions;
because if you see inside the property, it is not available. The exception:

Exception: The method or property TrackRevisions is not available because the document is protected.

StackTrace:   at Microsoft.Office.Interop.Word.DocumentClass.get_TrackRevisions()

HelpLikn: wdmain11.chm#37373

When I try to publish the document I get the exception in the code:

 wordApp.ActiveDocument.AcceptAllRevisions();

the same exception:

This method or property is not available because the document is protected.

I have several documents protected but just two of them threw this exceptions and I cannot save or publish them.

I tried to 'jump' this code and I was following the TrackRevision property. Once I executed:

document.MailMerge.Execute(ref objectTrue);

the TractRevision is available again.

but as I told before, it just happen in two documents. Maybe they have something different but I cannot find it. Any idea, please?
Can this property be not available in some cases? should I modified it or assign its value inside a try catch?

Thank you for your help!


MSBuild Errors while building VSTO Addin's

$
0
0

Hi,

I recently migrated my VSTO Add in projects from "VS2008 and office 2007" to "VS2013 and office 2013", Changes took place as  below settings.

1. .Net Framework version from 3.5 to 4.5(While upgrading project).

2. I have added VSTO 2013 PIA assemblies to reference.

That's it, when i tried to compile i have faced below MSBuild errors.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(268,13): error MSB4064: The "TargetFrameworkVersion" parameter is not supported by the "SignFile" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9): error MSB4063: The "SignFile" task could not be initialized with its input parameters. 

and i have tried to find solutions over the internet but couldn't find much, Any Solutions for this problem will be helpful.

outlook freezes when moving mail (itemsEvents_ItemAddEventHandler / MailItem.Move())

$
0
0
I am trying to create an Add-in in Outlook 2010 (VS 2010, MS Exchange 2010) that monitors delete of email items in shared post boxes. On this I use the event "itemsEvents_ItemAddEventHandler". When deleting an item, I move it through MailItem.Move() to a new folder ("deleted items" inside the shared post box) .
This works well, except when I select much more items (i.e. 20) my outlook freezes while the moving operation is performed.

I have also tried to use BeginInvoke but this didn't help - outlook freezes again. 

Does anyone have a solution?

COMException (0x80070006) after installation of VSTO plugin

$
0
0

I am developing outlook extension using VSTO technology, and my client has reported problem with first run after plugin installation. Installation is carried out using standard setup.exe, generated by Visual Studio 2013 "publish" action. Installation itself completes successfully - but next time outlook is started, few errors are logged to Windows Event Log, and outlook is crashing.

Everyting i received from client is this short description, and content of Event Log (not translated, sorry. But important part, i.e. stack trace and exception is in english):

Typ zdarzenia: Błąd [Error]
Źródło zdarzenia: VSTO 4.0
Kategoria zdarzenia: Brak
Identyfikator zdarzenia: 4096
Data: 2014-11-04
Godzina: 17:18:41
Użytkownik: Brak
Komputer: LODZDW38VM11
Opis:
Identyfikator URI dostosowania: file:///D:/Profiles/zew_2_1123/Pulpit/Like_comment/plugin2007plus_v0.0.2/
Wyjątek: Nieprawidłowe dojście. (Exception from HRESULT: 0x80070006 (E_HANDLE))

    Tekst wyjątku ******
    System.Runtime.InteropServices.COMException (0x80070006): Nieprawidłowe dojście. (Exception from HRESULT: 0x80070006 (E_HANDLE))
    at System.Deployment.Internal.Isolation.IsolationInterop.CreateActContext(CreateActContextParameters& Params)
    at System.Deployment.Internal.Isolation.IsolationInterop.CreateActContext(IDefinitionAppId AppId)
    at System.ActivationContext.CreateFromName(ApplicationIdentity applicationIdentity)
    at System.ActivationContext.CreatePartialActivationContext(ApplicationIdentity identity)
    at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

    Zestawy załadowane ******
    mscorlib
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.1022 (RTMGDR.030319-1000)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Microsoft.VisualStudio.Tools.Office.Runtime
    Wersja zestawu: 10.0.0.0
    Wersja Win32: 10.0.50903.0
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll
    ----------------------------------------
    System.Core
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.1001 built by: RTMGDR
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    Microsoft.VisualStudio.Tools.Applications.Hosting
    Wersja zestawu: 10.0.0.0
    Wersja Win32: 10.0.50903.0
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll
    ----------------------------------------
    Microsoft.VisualStudio.Tools.Applications.ServerDocument
    Wersja zestawu: 10.0.0.0
    Wersja Win32: 10.0.50903.0
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll
    ----------------------------------------
    Microsoft.VisualStudio.Tools.Applications.Runtime
    Wersja zestawu: 10.0.0.0
    Wersja Win32: 10.0.50903.0
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
    ----------------------------------------
    System.Windows.Forms
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.1002 built by: RTMGDR
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.1001 built by: RTMGDR
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Microsoft.VisualStudio.Tools.Office.Runtime.resources
    Wersja zestawu: 10.0.0.0
    Wersja Win32: 10.0.50903.0
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.resources/v4.0_10.0.0.0_pl_b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.resources.dll
    ----------------------------------------
    Microsoft.VisualStudio.Tools.Applications.Hosting.resources
    Wersja zestawu: 10.0.0.0
    Wersja Win32: 10.0.50903.0
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting.resources/v4.0_10.0.0.0_pl_b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.resources.dll
    ----------------------------------------
    System.Deployment
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    ----------------------------------------
    Microsoft.VisualStudio.Tools.Applications.ServerDocument.resources
    Wersja zestawu: 10.0.0.0
    Wersja Win32: 10.0.50903.0
    CodeBase: file:///C:/WINNT/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.resources/v4.0_10.0.0.0_pl_b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.resources.dll
    ---------------------------------------- ################################################################################
    Typ zdarzenia: Błąd [Error]
    Źródło zdarzenia: Microsoft Office 12
    Kategoria zdarzenia: Brak
    Identyfikator zdarzenia: 2000
    Data: 2014-11-04
    Godzina: 17:18:20
    Użytkownik: Brak
    Komputer: LODZDW38VM11
    Opis:
    Accepted Safe Mode action : Microsoft Office Outlook.

#####################################################################################
Typ zdarzenia: Błąd    [Error]
Źródło zdarzenia: Microsoft Office 12
Kategoria zdarzenia: Brak
Identyfikator zdarzenia: 1000
Data: 2014-11-04
Godzina: 17:18:06
Użytkownik: Brak
Komputer: LODZDW38VM11
Opis:
Faulting application outlook.exe, version 12.0.6316.5000, stamp 4833a470, faulting module kernel32.dll, version 5.1.2600.6532, stamp 53203b53, debug? 0, fault address 0x00012fd3.

Aby znaleźć więcej informacji, zobacz http://go.microsoft.com/fwlink/events.asp w Centrum pomocy i obsługi technicznej.
Dane:
0000: 41 00 70 00 70 00 6c 00 A.p.p.l.
0008: 69 00 63 00 61 00 74 00 i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00 i.o.n. .
0018: 46 00 61 00 69 00 6c 00 F.a.i.l.
0020: 75 00 72 00 65 00 20 00 u.r.e. .
0028: 20 00 6f 00 75 00 74 00 .o.u.t.
0030: 6c 00 6f 00 6f 00 6b 00 l.o.o.k.
0038: 2e 00 65 00 78 00 65 00 ..e.x.e.
0040: 20 00 31 00 32 00 2e 00 .1.2...
0048: 30 00 2e 00 36 00 33 00 0...6.3.
0050: 31 00 36 00 2e 00 35 00 1.6...5.
0058: 30 00 30 00 30 00 20 00 0.0.0. .
0060: 34 00 38 00 33 00 33 00 4.8.3.3.
0068: 61 00 34 00 37 00 30 00 a.4.7.0.
0070: 20 00 69 00 6e 00 20 00 .i.n. .
0078: 6b 00 65 00 72 00 6e 00 k.e.r.n.
0080: 65 00 6c 00 33 00 32 00 e.l.3.2.
0088: 2e 00 64 00 6c 00 6c 00 ..d.l.l.
0090: 20 00 35 00 2e 00 31 00 .5...1.
0098: 2e 00 32 00 36 00 30 00 ..2.6.0.
00a0: 30 00 2e 00 36 00 35 00 0...6.5.
00a8: 33 00 32 00 20 00 35 00 3.2. .5.
00b0: 33 00 32 00 30 00 33 00 3.2.0.3.
00b8: 62 00 35 00 33 00 20 00 b.5.3. .
00c0: 66 00 44 00 65 00 62 00 f.D.e.b.
00c8: 75 00 67 00 20 00 30 00 u.g. .0.
00d0: 20 00 61 00 74 00 20 00 .a.t. .
00d8: 6f 00 66 00 66 00 73 00 o.f.f.s.
00e0: 65 00 74 00 20 00 30 00 e.t. .0.
00e8: 30 00 30 00 31 00 32 00 0.0.1.2.
00f0: 66 00 64 00 33 00 0d 00 f.d.3...
00f8: 0a 00 ..


Is this a known problem? I couldn't find any related questions using google/bing. What can I do to troubleshoot and, hopefully, solve this problem?


EDIT: important details and versions of software used:

 - Outlook 2007

 - Windows XP

 - VSTO 2010

 - .NET framework 4.0

EDIT 2: my research:

I have done some research myself, but I couldn't find anything remotely helpful. COMException ("Invalid Handle") is thrown inside method CreateActContext(ref IsolationInterop.CreateActContextParameters Params). This method is declared inside System.Deployment.dll, but source code is not available, because this method is extern, and actual implementation is inside clr.dll.

Searching for this error code and exception haven't yielded anything interesting in context of VSTO development (mainly IIS & ASP problems).

Only thing related i could find was https://connect.microsoft.com/VisualStudio/feedback/details/516581/office-word-2010-project-invalid-handle, but alas no solution was presented.

Outlook/Word VSTO Comment Functionality Broken by KB2883013

$
0
0

Windows Update KB2883013, published October 14, 2014, seems to be causing a regression in functionality. I have a VSTO application for Outlook 2010 on a fully updated Windows 7, which calls the Microsoft.Office.Interop.Word.Comments.Add() method when a user is using Word as the email editor. This method operates successfully without KB2883013, but when KB2883013 is applied, fails to run with the following exception:

System.Runtime.InteropServices.COMException (0x800A11FD): This command is not available.

  at Microsoft.Office.Interop.Word.Comments.Add(Range Range, Object& Text)

This completely breaks my company's product.

I've submitted the above to a few backwater feedback systems to Microsoft, but does anyone have any idea what I can do to work around this or bring it to Microsoft's attention? I know that Office isn't a part of Microsoft Connect, so I'm at a loss as to what to do next.

Note: I'm also not the only one who's seeing Windows Update KB2883013 break functionality:

https://stackoverflow.com/questions/26431976/office-word-interop-issue-caused-by-microsoft-update



WORD Error

$
0
0

As a part of project requirement, we have some pre defined Business templates (in WORD format), they are picked up based on context and bookmarks in it are populated through custom c# code. Very frequently WORD is throwing below error & it is resumed later till someone logs into that production Server & close WORD error dialogue box. In the mean time till that error is closed all other requests to WORD are getting hanged (mostly failed, these are retriggered again from backend).

 

EXCEPTION thrown (at front end):

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

   at Microsoft.Office.Interop.Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)

 

 

ERROR logged in EVENT Log:

Event Type:       Error

Event Source:    Microsoft Office 11

Event Category: None

Event ID:           1000

Date:                **********

Time:                10:34:10

User:                N/A

Computer:        

Description:

The description for Event ID ( 1000 ) in Source ( Microsoft Office 11 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: winword.exe, 11.0.5604.0, 3f314a2f, ntdll.dll, 5.2.3790.4455, 49900d60, 0, 0002a01a.

Is anyone aware of this issue? pls provide your comments..

Excel 2013 setting dock position for Custom Task pane causes lag

$
0
0

Hello Support Team,

We have a VSTO excel add-in application and have a query regarding performance of loading the custom task pane in Excel 2013. We observed that in Excel 2013 loading the custom task pane takes quite a bit of time, whereas on other versions of excel the task pane loads comparatively faster.

At the code level, after the custom task pane is added, we do set the dock position of the task pane and also set its width. We observed that the code for setting the dock position and also setting the width of the task pane seems to take quite some time in Excel 2013. Whereas on other versions of excel the same code work fine, the loading of the task pane is quite faster.

We tried removing the code for setting the dock position, and found that without setting the dock position or the width the task pane loads quite faster in excel 2013 as well. So I am not sure if it is related to the Excel 2013, can you please confirm. If so, is there any way to set the dock position of custom task pane without the lag issue in Excel 2013. We just want to set the dock position of the task pane to left and also set the width of the task pane. 

TFS build fails for vsto AddIn after Visual Studio Update 3

$
0
0

Hi All

After VS2013 Update 3 was installed on build server we cannot build our solution.

Errors are:

 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (268): The "TargetFrameworkVersion" parameter is not supported by the "SignFile" task. Verify the parameter exists on the task, and it is a settable public instance property.
 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (264): The "SignFile" task could not be initialized with its input parameters.

I was trying to make a build with different kind of settings but wthout success.

What I found out additionaly:

Microsoft.VisualStudio.Tools.Office.targets file was changed after Update 3. Change is related with section

'<SignFile
            CertificateThumbprint="$(CertificateThumbprint)"
            SigningTarget="$(OutDir)$(ApplicationManifestFileName)"
            TimestampUrl="$(ManifestTimestampUrl)"
            TargetFrameworkVersion="$(TargetFrameworkVersion)"
        />'

Bold line is new added argument for SignFile task.

So the question is: is it a bug in update or just some settings we need to change/set?

Thanks

Andrey

Viewing all 5157 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>