Office Interop with 64bit Windows in ASP.NET

前端 未结 5 1756
广开言路
广开言路 2020-12-17 08:11

I\'m trying to do office 2003 interop using C# ASP.NET on a server running Windows 2003 64 bit (I\'m running IIS in 32bit mode though) and getting error messages like:

5条回答
  •  温柔的废话
    2020-12-17 08:42

    As the others mentioned, using COM Interop in a server environment is not supported by Microsoft.

    Having said that, you did not specify whether you are talking about ASP.NET, WinForms, a Console Application or ???. You might find that it will work if you build a console application and set the target CPU in the Visual Studio configuration manager to x86 instead of Any CPU. This will force your application to run in 32 bit mode on the 64 bit server. Of course, there are still a number of other problems you may run into such as permission issues.

    SpreadsheetGear for .NET is tested and supported in W2K3 64 bit and W2K8 64 bit environments.

    Disclaimer: I own SpreadsheetGear LLC

提交回复
热议问题