It's about ASP.NET Web App that doing simple Visio Office Automation- convert file from vsdx to svg.
I already know thet it's not recommended to do it on server side from the Microsoft documantation MS. But, only Visio convert my complicated diagrams correct (the Aspose also wrong convert).
The App works well on my PC(windows 10 Enterprise) by any way, from VS when launch as IISExpress/Project/Executable/IIS and even from the IIS itself. But, on the server(Windows Server 2019 Standard) the App works well only when i run it as exe from the cmd but throw an error (message: "An exception occurred". with no any more usefull info) from the IIS in the following point:
using Visio = Microsoft.Office.Interop.Visio;
Visio.InvisibleApp visioInvisibleApp = null;
...
Visio.Document doc = visioInvisibleApp.Documents.Open(vsdxSourcePath);
What could be the difference and how can I cause it to work on IIS?
Please note that it's a little bit different from all others question on this issue in the fact that it's already works well on IIS on my PC and only dont works well on the Server.
Finally! Just should grant a permissiom, by: Component Services -> Computers -> My Computer -> DCOM Config -> Microsoft Visio 2003-2010 Drawing
Now the Office App (Visio in our case) should work!