CADViewer Technical Documentation, Installation Guide and Reference Samples Library

dotNetCore module - error picking up converted file

If CADViewer controller is implemented in a module, the CADViewer parameter for callbackMethod in apsettings.json, needs to have a qualified URL pointing to the controller end-point in the module, as it will otherwise be evaluated on top-level.

original apsettings.json

{
  "CADViewer": {
    ...
		"callbackMethod": "/CADViewer/getFile",
    ....
	}
}
changed apsettings.json

{
  "CADViewer": {
    ...
		"callbackMethod": "https://localhost:44325/_content/Sub.Module.CadViewer/CADViewer/getFile",
    ....
	}
}
Last updated on 11 Mar 2022
Published on 12 Apr 2020