Bespoke Applications – Building your own website
2. Setting up the Project
- In Visual Studio, create an empty web forms application and name it GettingStartedWithWebApi.
- Add a reference to Cadcorp.Web.UI.dll found in the Web Map Layers bin folder.
- Add a reference to Cadcorp.Web.Proxy.dll found in the Web Map Layers bin folder Build project
- Copy x64 and x86 folders from the WebMap bin folder to new project bin folder.
- Copy cadcorp.lservrc to new project bin folder.
- Copy CadcorpSentinel.dll, CadcorpSentinel64.dll, lsapiw32.dll and lsapiw64.dll from the WebMap bin folder to the new project bin folder.
- Copy webmaplayersconfig.db from WebMap app_data folder to new project app_data folder.
- Add folder to project for style sheets called css in sample.
- Copy openlayers.css from WebMap css folder to new css folder.
- Include openlayers.css in project and set build action to content.
- Add a folder to the project for JavaScript files called script.
- Add a JavaScript file called script.js to script folder.
- Add a folder to the project for images called img.
- Copy missingtile.png and blank.png from the WebMap img folder to the new img folder.
- Include missingtile.png and blank.png in the project, set their build action to content.
![]() |
3. Modifications to the web.config |