It's about a simple Office (Visio) Automation Web App that convert files from vsdx to svg.
The app works well in IIS on my PC- windows 10 Enterprise. But, don't works well in IIS on my server- Windows Server 2019 Standard.
Of course, I have tried the same code and same IIS configuration on both PC and server, What can be the issue? The app can't open a file inside the Visio and throws an error(with no info) in the following line:
using Visio = Microsoft.Office.Interop.Visio;
Visio.InvisibleApp visioInvisibleApp = null;
...
Visio.Document doc = visioInvisibleApp.Documents.Open(vsdxSourcePath);
I have tried the following:
- Change the Identity of the App Pool
- Grant a permission for EVERYONE in the publish folder
- Grant permission for EVERYONE in COM Security for Access, Launch and Activation.
What else can I do to cause the app to run on the server like on the computer?