Metaller
Metaller

Reputation: 514

Web service vs. Office Automation

I have ASP.NET Web Service, that works under IIS. I use Microsoft.Interop DLL to convert file from XML Table format to Excel 2003. In my code I have reference to Microsoft.Interop DLL version 12. When I try to use this web service from VS, everything working correct.

But when I move my web service to 64-bit Windows Server 2008 I have problem with this convertion.

I place my Microsoft.Interop DLL into bin folder of my web service. I also tried to make build for 86x and 64x platforms, but nothing changed.

Without converting my web service working correct.

What may cause this problem?

Upvotes: 0

Views: 270

Answers (1)

John Saunders
John Saunders

Reputation: 161801

You cannot use Office Automation in a server process like a web service. It's designed to automate the Office desktop applications. In a service, it doesn't work, or causes bugs that are difficult to reproduce, is unsupported, and may even be a violation of your license with Microsoft.

Upvotes: 1

Related Questions