CADViewer Technical Documentation, Installation Guide and Reference Samples Library

dotNetCore - conversions/pdf not working

A typical error would be that the path settings in apsettings.json used by CADViewerController does not match the actual install location.

Check the log files in the env.WebRootPath/temp_debug, typically cadviewer/wwwroot/temp_debug/, to see if there are any path errors in file creation, file save and file conversion.

Folder wwwroot/temp_debug

and compare those traces with the settings in:

apsettings.json

{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*",
  "CADViewer": {
    "ServerLocation": "c:/cadviewer-testapp-dotnet-core-01/cadviewer/cadviewer/wwwroot/",
    "ServerUrl": "https://localhost:44374/",
    "fileLocation": "c:/cadviewer-testapp-dotnet-core-01/cadviewer/cadviewer/wwwroot/converters/files/",
    "fileLocationUrl": "https://localhost:44374/converters/files/",
    "converterLocation": "c:/cadviewer-testapp-dotnet-core-01/cadviewer/cadviewer/wwwroot/converters/ax2022/windows/",
    "ax2020_executable": "AX2023_W64_23_01_72.exe",
    "cvjs_debug": true,
    "cvjs_svgz_compress": false,
    "licenseLocation": "c:/cadviewer-testapp-dotnet-core-01/cadviewer/cadviewer/wwwroot/converters/ax2022/windows/",
    "xpathLocation": "c:/cadviewer-testapp-dotnet-core-01/cadviewer/cadviewer/wwwroot/converters/ax2022/windows/",
    "callbackMethod": "/CADViewer/getFile",
    "MailServer": "smtp.dreamhost.com",
    "MailServerPort": 465,
    "MailUserName": "testing@cadviewer.com",
    "MailPassword": "TMS-CH!01"
  }
}
Last updated on 11 Mar 2022
Published on 12 Apr 2020