I had a similar problem on the x64 server for Windows 2008 R2, where the o2010pia.msi installer seems to go away during installation. I even tried to answer cnyborg by running the command line as admin and then running the msiexec / i o2010pia.msi command.
In any case, I deployed an ASP.NET web form application and while executing the following code:
_Document wordDoc = wordApp.Documents.Add(ref templateFilePath, ref missing, ref missing, ref missing);
I got an error:
Word could not read this document. It may be damaged. Try one or more of these: * Open and restore the file. * Open the file using the Text Recovery converter.
I tried downloading the .dot, .dotx, and .docx files, but received the same error message.
After repeated dragging and searching on Google, I found someone with a solution to a non-standard problem, but he solved my problem!
Here is the solution:
Windows 2008 R2 x64 Server
Create the directory C: \ Windows \ SysWOW64 \ config \ systemprofile \ Desktop.
Windows 2008 R2 x86 Server
Create the directory C: \ Windows \ System32 \ config \ systemprofile \ Desktop.
DONE!
Andrew Brown
source share