Previewer Setup for Local Environment

Use Docker To get the Previewer Up and Running: For local use

Taken from Accusoft’s Try It link:
Accusoft: Try It! 

  1. Make sure you have stopped Prizm and Prizm Application Services so the ports won’t conflict
  2. Download Docker Desktop (Windows): Docker Desktop 
  3. Open up PowerShell and run this command: 
    docker pull accusoft/prizmdoc-viewer-eval:13.26
  4. Find our Solution Name and License Key in LastPass under Prizm License and replace YOUR_SOLUTION_NAME and YOUR_LICENSE_KEY in the command below of your choice
  1. It takes a few minutes for everything to start up, even though it says it's running in Docker. Confirm that everything is running with these checks:
  1. Once the application loads or all the checks come back with OK you are ready to start using the PrizmDoc Previewer with the AccusoftPreviewer solution.

Note: To get updates, just click the delete icon in Docker Desktop and repeat the steps above.

For debugging the front end of the Previewer:

On your machine, make sure you have node.js, npm, and gulp installed.

Now you've got what you need. To run the previewer and debug it:

  1. Run Utopia and Utopia\UtopiaPreviewers\AccusoftPreviewer at the same time.
  2. In the source code, open the source code and go to the following directory: Utopia\UtopiaPreviewers\AccusoftPreviewer\AccusoftPreviewer\wwwroot\ViewerSources
  3. Open a powershell window in that directory and run the command ./builddev.bat
  4. In the Utopia window, open the dev tools and make sure the cache is disabled
  5. In the Utopia dev tools, you'll see a "Previewer" item in the tree view - if you expand it, you should see webpack://, which you can expand and find ./modules
  6. If you don't see ./modules then you'll need to right click the Previewer in the browser and select Reload Frame. Then repeat steps 4 and 5.
  7. In the ./modules directory, you'll see the client code for debugging.
  8. Go eat a donut. You deserve it. You're ready to debug with the Previewer!

Troubleshooting

  1. Make sure you have Azure Storage Emulator running.
  2. If running the ./builddev.bat script doesn't work, try running it again in PowerShell as an administrator 
  3. If that still doesn't work, try running the AccusoftPreviewer project as an administrator in Visual Studio.

The Way of Pain - To get the Previewer up and running:

  1. Download and install the PrizmDoc Server and Client
  1. Restart your computer, yes... you have to.

  2. Make sure the PrizmDoc server and client are running, (Demo isn't required to be running). These are services that need to be running called 'PrizmDoc' and 'PrizmApplicationServices'

  3. Start the Utopia Project found Utopia\UtopiaPreviewers\AccusoftPreviewer - While this is running you can preview files in your local Utopia instance and the previewer project webpage will be a HTTP Error 403.14 - Forbidden type page.

Note: Azure storage needs to be running or the previewer will timeout while loading

Note: Make sure your port number is correct in the AccusoftPreviewer.csproj file. The line <IISExpressSSLPort>44318</IISExpressSSLPort> got changed to <IISExpressSSLPort>44300</IISExpressSSLPort>. VS automatically sets this in some fashion, so make sure your hitting the correct port, I also made the mistake of trying to line it up to port 50560 (not the 44300 or the correct one 44318) which didn't help finding the problem. To not have problems in the future you need to update the ssl port in 3 different files.


Revision #8
Created 18 July 2022 23:39:24 by Bryce Holloway
Updated 1 October 2024 19:00:04 by Kendra Bryant