Installation
This guide walks you through opening the Damsy ERP solution in Visual Studio and preparing it for a first local run. Database setup and connection string configuration are covered in subsequent pages.
Purpose
Get the solution building and the web project designated as the entry point for debugging — without yet worrying about full production data.
Prerequisites
Complete Requirements first — you need Visual Studio, .NET Framework 4.5.2, and SQL Server available on your machine.
Step 1 — Clone or extract the repository
Place the codebase in a path without special characters if possible. Example:
C:\Projects\damsy_erp_core\
The solution file lives at the repository root:
damsy_erp_core/
├── DamsyERP.sln
├── DamsyERP.UI/
├── DAL/
├── BO/
├── UTILITIES/
├── database-backup/
└── docs/
Step 2 — Open the solution
- Launch Visual Studio.
- Choose Open a project or solution.
- Select
DamsyERP.sln.
Visual Studio loads four projects: DamsyERP.UI, DAL, BO, and UTILITIES.
Step 3 — Set the startup project
The web application must be the startup project so F5 launches IIS Express against the UI site.
- In Solution Explorer, right-click
DamsyERP.UI. - Select Set as Startup Project.
The project name appears in bold.
If multiple developers share machine profiles, verify startup project after every solution reload — Visual Studio occasionally resets it to the first project alphabetically.
Step 4 — Restore NuGet packages
Visual Studio typically restores packages automatically on open. If build errors reference missing assemblies:
- Right-click the solution → Restore NuGet Packages.
- Rebuild: Build → Rebuild Solution.
Step 5 — Verify build
Press Ctrl+Shift+B (Build Solution). All four projects should compile without errors.
Common first-build issues:
| Error | Resolution |
|---|---|
| Missing Crystal assemblies | Install Crystal Reports runtime / CR for VS |
| NuGet restore failed | Check network; clear NuGet cache |
| Framework reference errors | Install .NET Framework 4.5.2 Developer Pack |
Step 6 — Review project structure
Confirm you can locate key entry points:
| Path | Role |
|---|---|
DamsyERP.UI/Global.asax.cs | Application start, HTTPS redirect, error handling |
DamsyERP.UI/App_Start/RouteConfig.cs | Default route → Login/Index |
DamsyERP.UI/Web.config | Connection strings and appSettings |
DAL/BaseHelper.cs | Connection resolution and SP execution |
See Solution structure for the full map.
Architecture after install
At this stage IIS Express can start, but the app is not usable until Web.config points at a database with schema and seed data.
Developer notes
IIS Express profile
Project properties → Web tab shows the IIS Express URL and port. The default MVC route opens Login/Index — you do not need to append a path manually.
Multiple configuration transforms
Web.Release.config transforms settings for publish (e.g., ForceHttps=false override). Local development uses base Web.config.
Do not commit secrets
Sample connection strings in the repository may contain instance names from a developer machine. Replace with your values locally; use server-side secrets for production.
Important notes
Installation alone does not create ERP tables or stored procedures. Plan time for Connection strings and database schema setup before expecting a successful login.
Common mistakes
| Mistake | Result |
|---|---|
Starting DAL or BO as startup | Nothing useful runs — these are class libraries |
| Skipping NuGet restore | Missing reference build errors |
| Building without Crystal runtime | May compile if references exist; reports fail at runtime |
Related pages
Next steps
Configure your database connection in Connection strings, then follow Running locally to start the app and sign in.