Skip to main content

Troubleshooting overview

Use this page as a first-response index when something works on your laptop but fails on IIS, or when a specific symptom appears after deploy or database setup. Each row links to deeper guidance where available.

Introduction

Damsy ERP failures usually cluster around four boundaries: authentication and session, publish completeness, Release configuration, and SQL permissions / seed data. Most production issues are environmental — not application logic bugs.

Purpose

Reduce time-to-diagnosis by mapping what you see to what to verify first, before diving into controllers or stored procedures.

When to use

  • Immediately after IIS deploy or blank database setup
  • When users report login loops, unstyled pages, or missing modules
  • When Crystal Reports or partial views fail only on the server

For extended walkthroughs, see Common issues (deep dive).

How it works

Always recycle the IIS application pool after Web.config or bin changes.

Symptom quick reference

SymptomFirst checksDeep dive
Sign-in failedCompany selected? CompID 1 seeded? Password encrypted? Run 04b-fix-admin-login.sql; test GetLoginUserCommon issues — login
Redirect loop / instant logoutForceHttps=false, requireSSL=false on HTTP siteRelease config
Missing CSS / unstyled UICSS exists in publish folder? .csproj Content Include?Publish, CSS issue
Crystal Reports load failureCR runtime 13.x on server; viewer pathCrystal, Crystal issue
Module tile missing on DashboardModule flags on UserAccounts; dtVerifyUser sessionLogin flow
Partial view not foundPartial published? Included in .csproj?Publish gotcha
Works locally, fails on VPSConnection string catalog; IIS APPPOOL\... SQL rights; full file copyIIS deploy, VPS gap
Yellow error on server onlycustomErrors RemoteOnly — browse from VPS consoleEvent Viewer / failed request tracing
Menu / page error after loginEmpty MenuMaster / UserPermissions on minimal seedSeed scripts
404 on static fileapp-assets copied? Site physical path correct?IIS deploy

Step guides — Universal triage order

Step 1 — Confirm Release configuration on server

Open deployed Web.config at IIS physical path:

C:\inetpub\wwwroot\damsy_erp\Web.config

Verify:

  • ForceHttps = false (until SSL ready)
  • requireSSL = false on HTTP
  • MyConnectionString → correct server and DB_DAMSYERP

Step 2 — Recycle and hard-refresh

  1. IIS → recycle application pool.
  2. Browser Ctrl+F5.
  3. Retest incognito if cookies suspected.

Step 3 — File presence audit

From the server, confirm:

inetpub\wwwroot\damsy_erp\app-assets\css\shell-modern.css
inetpub\wwwroot\damsy_erp\bin\DamsyERP.UI.dll
inetpub\wwwroot\damsy_erp\Areas\...\Views\...

Compare against local publish folder.

Step 4 — Database chain

Run 04b-fix-admin-login.sql diagnostics. Zero rows on login chain SELECT → seed/permission issue.

Step 5 — SQL identity

Confirm IIS APPPOOL\<PoolName> has database access when using Integrated Security.

Examples

Example — ForceHttps loop

Symptom: Browser spins between HTTP URLs; never reaches login.

Check: Published appSettingsForceHttps accidentally true without HTTPS binding.

Fix: Set ForceHttps=false, recycle pool. Enable both HTTPS flags only after cert install — Release configuration.

Example — Session lost after login

Symptom: Login succeeds briefly; next click returns to login.

Check: requireSSL=true while site served over http://.

Fix: Set requireSSL=false until TLS enabled.

Example — Module tile absent

Symptom: Payroll tile missing for admin on VPS; present locally.

Check: VPS database UserAccounts.Payroll column; minimal seed not run or old DB.

Fix: Run 04b-fix-admin-login.sql or compare user row to dev.

Important notes

  • ManageError/Index is the user-facing wrapper — root cause is often in SQL, missing view, or config.
  • Local Debug skips some Release behaviors — reproduce on IIS Release when possible.
  • Minimal seed ≠ full ERP data — distinguish "cannot login" from "page errors after login".
  • Crystal failures often appear only when opening a report action, not at login.

Common mistakes

MistakeWhy it wastes time
Debugging C# before checking publish folderMissing files don't fix themselves in code
Enabling SSL cookie flags "for security" on HTTPBreaks session immediately
Using laptop connection string on VPSWrong catalog or unreachable instance
Ignoring company dropdown on loginWrong CompID breaks GetLoginUser join
Skipping app pool recycleStale config and assemblies

Next steps

  1. Open Common issues for your symptom section.
  2. Re-run publish verify before next IIS copy.
  3. Document your VPS pool name and SQL grants for future deploys — FAQ.