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

Copyright © 2026 CADViewer by Tailor Made Software / CADViewer VizQuery Technologies AB All Rights Reserved.

Web Sites: www.cadviewer.com, www.tailormade.com, www.vizquery.com, www.dwg-hotspots.com