Bespoke Applications – Building your own website

2. Setting up the Project

  1. In Visual Studio, create an empty web forms application and name it GettingStartedWithWebApi.
  2. Add a reference to Cadcorp.Web.UI.dll found in the Web Map Layers bin folder.
  3. Add a reference to Cadcorp.Web.Proxy.dll found in the Web Map Layers bin folder Build project
  4. Copy x64 and x86 folders from the WebMap bin folder to new project bin folder.
  5. Copy cadcorp.lservrc to new project bin folder.
  6. Copy CadcorpSentinel.dll, CadcorpSentinel64.dll, lsapiw32.dll and lsapiw64.dll from the WebMap bin folder to the new project bin folder.
  7. Copy webmaplayersconfig.db from WebMap app_data folder to new project app_data folder.
  8. Add folder to project for style sheets called css in sample.
  9. Copy openlayers.css from WebMap css folder to new css folder.
  10. Include openlayers.css in project and set build action to content.
  11. Add a folder to the project for JavaScript files called script.
  12. Add a JavaScript file called script.js to script folder.
  13. Add a folder to the project for images called img.
  14. Copy missingtile.png and blank.png from the WebMap img folder to the new img folder.
  15. Include missingtile.png and blank.png in the project, set their build action to content.
3. Modifications to the web.config