Is support for Office 2003 supported on a Windows 2008 server? ..?

I get below errors when trying to run an interaction-dependent program on a Windows 2008 server, it works fine on Win Server 2003 and XP:

System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC on Microsoft.Office.Interop.Excel.WorkbookClass.SaveAs (.......)

According to Microsoft, Windows Server 2008 is not included in the list of supported OSs.

http://www.microsoft.com/downloads/en/details.aspx?familyid=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&displaylang=en

System requirements

Supported Operating Systems: Windows 2000 Service Pack 3 (SP3), Windows Server 2003, Windows XP

Can someone please confirm this .. has anyone tried this ??

+2
source share
3 answers

Answer found ....... !!!!!!!

Officially, Microsoft Office 2003 Interop is not supported by Microsoft Windows on the 2008 server.

But after many permutations and combinations with code and search, we came across one solution that works for our scenario.

The solution is to plug in the difference between how Windows 2003 and 2008 maintains its folder structure, since Office Interop depends on the desktop folder to open the file / save. In the 2003 system, there is a desktop folder under the system profile, missing in 2008.

So, when we create this folder in 2008 under the corresponding hierarchy, as indicated below; Interop office can save the file as needed. This desktop folder must be created under

C: \ Windows \ System32 \ Config \ systemprofile

and

C: \ Windows \ SysWOW64 \ Config \ systemprofile

It worked for me ...

  • Also check if .NET 1.1 is installed because Interop needs it and Windows Server 2008 is preinstalled

  • Or you can also use the SaveCopyas () method ist just take onargument as a file name string)

Thanks guys..!

+6
source

.NET 1.1 is also a requirement, which, it seems to me, does not apply to Windows Server 2008 (and really should not be, just my opinion), which may be your problem.

0
source

Well, in general, running interop on any server is usually not a good idea, since Office is not part of the server solution. However, assuming that you cannot change this, you should be able to run it, but I have seen many problems associated with various problems, but the solutions for different people seem different.

There are some answers to this stackoverflow question , some of which may help you (this applies to Win7, but it will still be relevant, I think).

0
source

Source: https://habr.com/ru/post/1447308/


All Articles