none
First Application-Level Add-in for Excel RRS feed

  • Question

  • Hi,

    i just try Walkthrough: Creating Your First Application-Level Add-in for Excel.

    When i start debug i'll got following error:

    Name:

    Von: file:///C:/hilf/MyFirstExcelAdIn/MyFirstExcelAdIn/bin/Debug/MyFirstExcelAdIn.vsto

    Ausnahme beim Lesen des Manifests aus 'file:///C:/hilf/MyFirstExcelAdIn/MyFirstExcelAdIn/bin/Debug/MyFirstExcelAdIn.vsto': Das Manifest ist möglicherweise ungültig, oder die Datei konnte nicht geöffnet werden.

    ************** Ausnahmetext **************

    System.Deployment.Application.InvalidDeploymentException: Ausnahme beim Lesen des Manifests aus 'file:///C:/hilf/MyFirstExcelAdIn/MyFirstExcelAdIn/bin/Debug/MyFirstExcelAdIn.vsto': Das Manifest ist möglicherweise ungültig, oder die Datei konnte nicht geöffnet werden. ---> System.Deployment.Application.InvalidDeploymentException: Das Bereitstellungsmanifest ist semantisch ungültig. ---> System.Deployment.Application.InvalidDeploymentException: Das Bereitstellungsmanifest erfordert die Angabe eines Herausgebers und eines Produkts.

    bei System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()

    --- Ende der internen Ausnahmestapelüberwachung ---

    bei System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()

    bei System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemantics(ManifestType manifestType)

    bei System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)

    --- Ende der internen Ausnahmestapelüberwachung ---

    bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)

    bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

    What is the reason for this error?

    Best regards

    Michael

    Monday, July 9, 2012 2:28 PM

Answers

  • Would you check the registry at here:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

    RegisteredOrganization | what's its value?

    If that value is empty string"", try set it to a valid value.

    Wait for your reply.

    thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager

    • Marked as answer by MIN.de Thursday, July 26, 2012 11:40 AM
    Thursday, July 26, 2012 6:51 AM
    Moderator

All replies

  • Hi Michael,

    Could you please tell us the version of Visual Studio you are using?

    Then, there are two threads I would suggest have the similar problem with you. Please refer to these following links and try the solutions mentioned in them.

    As far as I know, this exception may occur due to a varies of reasons, you can also search for answers  in this Exception: the manifest may not be valid or the file could not be opened.

    Hope it can help you.

    If you are unclear of anything, please do not hesitate to let me know.

    Best Regards,


    Leo_Gao [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, July 10, 2012 8:03 AM
    Moderator
  • Hi Leo,

    thank you for the information.

    I'll just run from Visual Studio (2008).

    I don't want to deploy now.

    Should it not run without errors if i press F5 in Visual Studio.

    Or have i to prepare something (Security, ClickOnce...).

    I found my addin in Excel under inactive addin.

    I do the same on another pc, there it works without error.

    If i try to deploy i got following warning:

     Das .NET Framework Client Profile-Element ist für Visual Studio-Tools für Office System 3.0 Runtime Service Pack 1 erforderlich, war jedoch nicht enthalten. 

    (.NET Framework Client Profile-Element needed for Visual Studio-Tools für Office System 3.0 Runtime Service Pack 1,  but is not available.)


    Same error if i run setup.exe for my firstExcelAdin.
    • Edited by MIN.de Tuesday, July 10, 2012 3:02 PM
    Tuesday, July 10, 2012 1:03 PM
  • Hi,

    In accordance with what you mentioned, I assume there are some specific settings of your PC environment result in the error.

    So, I would recommend you to try checking up your PC and configuring the same environment as the effective one on your PC. If it doesn't work perfectly, please reinstall the Visual Studio and tyr again.

    Thanks,


    Leo_Gao [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, July 11, 2012 7:42 AM
    Moderator
  • I try and try and try...

    On a third pc i install vst 2008 and excel2007.

    Same issue.

    The difference between pc it works an works not is on it works (vpc) its vst2008 Release and the other are vst2008 sp1.

    What means the error "Das Bereitstellungsmanifest erfordert die Angabe eines Herausgebers und eines Produkts"

    (The deployment manifest requires specifying a Publisher and a product)?

    Should vst2008 set automatically set all secrurity for debug, or have i search at this place too?

    I don't need .net framework sdk 2.0 or 3.5 ?

    If i run debug, debug do same as click once in backround?


    • Edited by MIN.de Wednesday, July 11, 2012 11:23 AM
    Wednesday, July 11, 2012 11:13 AM
  • I just test install addin from vpc on my laptop.

    It works!

    Same setup works not on my pc's where debug dont works in vst2008.

    So, what could be wrong on this pc's?

    Could it be Office security from domain ?

    Run as administrator help not

    • Edited by MIN.de Thursday, July 12, 2012 7:22 AM
    Wednesday, July 11, 2012 5:59 PM
  • I just install vst2010 on my pc (with 2008).

    Same issue.

    Thursday, July 12, 2012 3:20 PM
  • Hi I recommend two resources for you. 

    http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm this link is a kind of tutorial  with picture and explanation to guide.

    2. http://www.codeproject.com/Articles/198572/Summarize-C-Control-Excel-Skills the second link is a collection of the skill most used in managing Excel in C#.

    Hope this can help you.

    Best regards

    Friday, July 13, 2012 2:15 AM
  • Hi,

    thank you for the links!

    i try to create an a Excel 2007-Add-In.

    If i only create the project, and then run with F5 i got the described error.

    Now i've created 2 Excel 2007-Add-In in vst2010 without changing Code.

    First i created on my Lapto (local not in a domain).

    This deployment runs on my pc.

    Second i create on my Pc (in domain as domain user).

    It runs not from vst and as Deployment on the same pc it was created.

    Installation don't ask if i really want install from unknown publisher. Only the error appears.

    Why the addin from an unknown laptop runs, but from pc i have created not?

    Perhaps somebody can look at the deployments and check if they run, or why not?

    Best regards

    Michael


    • Edited by MIN.de Friday, July 13, 2012 8:01 AM
    Friday, July 13, 2012 7:40 AM
  • Hi,

    The error message you see while deploy is pretty key. I suspect you .NET Framework 3.5 SP1 was not correctly applied. Cause it's installed with the VS 2008 SP1, I would suggest you verify the .NET 35 sp1 with verification tool. If this is the problem, you will need repair VS 2008 SP1.

    The cause to this issue could be:

    .NET 35 sp1 doesn't install correctly, mage.exe doesn't update successfully. When you F5 the project, it fails to sign the VSTO deployment manifest(.vsto). Finaly leads to VSTO 3.0 SP1 doesn't work.

    Thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager

    Tuesday, July 17, 2012 2:15 PM
    Moderator
  • Hi,

    i run the  verification tool with no errors.

    I run repair vst2008.

    Error is the same.

    The Errormessage "Das Bereitstellungsmanifest erfordert die Angabe eines Herausgebers und eines Produkts"

    (The deployment manifest requires specifying a Publisher and a product) says nothing about the error ?

    Tuesday, July 24, 2012 9:16 AM
  • Did you apply VSTO 3.0 SP1 after VS 2008 SP1?  I'm not aware of this information in your post.  If this not the problem, I'll try to get other people help.

    Download VSTO 3.0 sp1: http://www.microsoft.com/en-us/download/details.aspx?id=1132

    It's also very helpful to verify this scenario. I suspect this is a issue in ClickOnce deployment and have nothing to do with VSTO. But need to confirm this. This will help product group determine if this is known issue.

    1. Create simple Winform project and F5;
    2. Run the *.application to install the application, that's the deployment manifest. 

    Wait for you reply.

    Thanks,


    Forrest Guo | MSDN Community Support | Feedback to manager

    Wednesday, July 25, 2012 2:54 AM
    Moderator
  • Yes, i apply VSTO 3.0 SP1.

    I've Microsoft Visual Studio 2008 Tools for Office and Visual Studio 2005 Tools for Office Second Editon Runtime on the same machine.

    You are right.

    If i create a Winform and run *.application, i got the same error.

    So i has nothing to do with VSTO, because Winform don't use VSTO ?

    Thanks for your help!

    Michael


    • Edited by MIN.de Wednesday, July 25, 2012 9:22 AM
    Wednesday, July 25, 2012 9:21 AM
  • Would you check the registry at here:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

    RegisteredOrganization | what's its value?

    If that value is empty string"", try set it to a valid value.

    Wait for your reply.

    thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager

    • Marked as answer by MIN.de Thursday, July 26, 2012 11:40 AM
    Thursday, July 26, 2012 6:51 AM
    Moderator
  • Yeah, that's it!

    There was an '*'.

    I test some other, most work correct (-_%) but some bring the error (*"?).

    Thank's to everyone who helped here!

    Michael

    Thursday, July 26, 2012 11:27 AM
  • That's great !

    with regards,


    Forrest Guo | MSDN Community Support | Feedback to manager

    Thursday, July 26, 2012 1:29 PM
    Moderator