From 86ef7b7113e2f0a87b1619e7706717f6d2b75eca Mon Sep 17 00:00:00 2001 From: Nano Date: Sun, 3 May 2026 06:40:21 -0400 Subject: [PATCH] Fix JET OLEDB write access: add User Id=admin to connection string IIS ApplicationPoolIdentity defaults to read-only JET access without explicit credentials. Adding User Id=admin;Password=; gives the admin user context. Co-Authored-By: Claude Sonnet 4.6 --- ci/deploy-aspblogbrainordure-test.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deploy-aspblogbrainordure-test.ps1 b/ci/deploy-aspblogbrainordure-test.ps1 index 9b7e59b..39f09c4 100644 --- a/ci/deploy-aspblogbrainordure-test.ps1 +++ b/ci/deploy-aspblogbrainordure-test.ps1 @@ -112,7 +112,7 @@ if (Test-Path $dbSrc) { $webConfigPath = Join-Path $publicDst "web.config" if (Test-Path $webConfigPath) { $wc = [System.IO.File]::ReadAllText($webConfigPath) - $newConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$WEBROOT\db\webdata.mdb;Persist Security Info=False;" + $newConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$WEBROOT\db\webdata.mdb;User Id=admin;Password=;Persist Security Info=False;" $wc = [regex]::Replace($wc, 'Provider=Microsoft\.(ACE\.OLEDB\.12\.0|Jet\.OLEDB\.4\.0)[^"]+', $newConn) if ($wc -notmatch 'enableParentPaths') { $wc = $wc -replace '', ''