README.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. VsdConverterApp:
  2. C# Console App. It is a local TCP server that receives *.vsd files paths from clients and convert them to *.vsdx files using Visio.
  3. This application is needed to avoid security limitation that prevents this code from running inside IIS directly.
  4. VsdConverter:
  5. AST.net web application that provides *.vsd files conversion service and acts as a client to the previous TCP server.
  6. ========================================
  7. Running the conversion site:
  8. 1- Run VsdConverterApp TCP sever
  9. 2- Deploy VsdConverter to IIS (manually or using Web Deployment Tool).
  10. In details (Ignore Hyper-V steps if it is running directly on the server):
  11. Enable Hyper-V in Windows Features
  12. In Hyper-V Manager:
  13. 1- Create a new virtual machine and select Windows 10 Dev
  14. https://medium.com/@pugillum/setting-up-a-windows-server-2012-vm-on-windows-10-hyper-v-a23f854f34eb
  15. 2- Install Visio in the VM
  16. 2.a Add Visio .iso file as a DVD
  17. 2.b Install from the DVD inside the VM normally
  18. [OR] Download and istall Visio online
  19. 3- Install IIS and enable ASP.NET
  20. 3.a Open Control Panel, Programs and Features, Turn Windows features on or off.
  21. 3.b Expand Internet Information Services, World Wide Web Services, and Application Development Features.
  22. 3.c Make sure that ASP.NET 4.7 is selected.
  23. 4- After installing IIS, run IIS Manager to make sure that the .NET Framework version 4 is assigned to the default application pool.
  24. 4.a Press WINDOWS+R to open the Run dialog box.
  25. 4.b Enter "inetmgr", and then click OK.
  26. 4.c In the Connections pane, expand the server node and select Application Pools. In the Application Pools pane, if DefaultAppPool is assigned to the .NET framework version 4, skip to (5).
  27. 4.d In the Application Pools pane, click DefaultAppPool, and then in the Actions pane click Basic Settings.
  28. 4.e In the Edit Application Pool dialog box, change .NET Framework version to .NET Framework v4.0.30319 and click OK.
  29. 4.f IIS is now ready for you to publish a web application to it.
  30. 5- Install Web Deploy https://technet.microsoft.com/en-us/library/dd569059.aspx --> x64 (64–bit) Web Deployment Tool (x64)
  31. 5.a Direct link: http://download.microsoft.com/download/8/9/B/89B754A5-56F7-45BD-B074-8974FD2039AF/WebDeploy_2_10_amd64_en-US.msi
  32. 6- Open Control Panel\System and Security\System then Advanced system settings
  33. 6.a Advanced tab -> Environment Variables
  34. 6.b System variables -> Path -> Edit...
  35. 6.c New -> add the following: C:\Program Files\IIS\Microsoft Web Deploy V2
  36. 7- Open the command prompt (cmd) and change directory to the VsdConverter Package
  37. 7.a Run the deployment command: VsdConverter.deploy.cmd /Y
  38. 8- In folder: C:\inetpub\wwwroot\VsdConverter_deploy
  39. 8.a create folder: App_Data
  40. 8.b Open Properties of App_Data -> Security -> Edit
  41. 8.c Give full control to Users: IIS_IUSRS
  42. 9- Website is ready inside the VM: http://localhost/VsdConverter_deploy/
  43. outside the VM by its ip which can be found using ipconfig (step 1)