Install issue - ServerDocument cannot write to client's Manifest

First off I know that my VSTO solution works locally and will work with remote assemblies, on my machine and anothers client.

But on a third machine (the client), I have run into a situation on a where I am trying the methodology of "Quick Start #3: Deploying a Document to a Local Folder, and an Assembly to a Network Folder"

I have created the console application to handle the writing to Excel's manifest using the ServerDocument class. When the process attempts to write to the client's manifest to inform it of the remote dll this exception is thrown:

Exception Caught: Could not create a persistence object for the specified file.

The user is an admin on his box, does have Office 2003 with SP1 installed and the interops.

Any thoughts on my predicament

advTHANKance




Answer this question

Install issue - ServerDocument cannot write to client's Manifest

  • Angry Azul

    Could you provide me with the source code for your console application

    Thanks, Richard.


  • PoulK

    OK, good luck with your project. Please do not hesitate to let us know if you have any more issues.

    Thanks, Richard.


  • KevinC

    Once I installed the VSTO runtime I was able to access the manifest.


    Thanks


  • g_hall

    ServerDocument sd = null;
    try
    {
    sd = new ServerDocument(args[0]);
    sd.AppManifest.Dependency.AssemblyPath = args[1];
    sd.Save();
    Console.WriteLine(string.Format(
    "Manifest for ({0}) has been updated to use the network assembly ({1}).{2}",
    args[0], args[1], System.Environment.NewLine));

    }
    catch (Exception ex)
    {
    Console.WriteLine(
    "Exception Caught: " + ex.Message);
    }
    finally
    {
    if (sd != null)
    {
    sd.Close();
    }
    }
  • Install issue - ServerDocument cannot write to client's Manifest