Cannot update. Could not find content matching the ContentId and SiteId.

System.Data.SqlClient.SqlException: Cannot update. Could not find content matching the ContentId and SiteId.

System.Web.HttpUnhandledException (0x80004005): Cannot update. Could not find content matching the ContentId and SiteId. ---> System.Data.SqlClient.SqlException (0x80131904): Cannot update. Could not find content matching the ContentId and SiteId.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1051
   at Dapper.SqlMapper.QueryMultipleImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 1043
   at Dapper.SqlMapper.QueryMultiple(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 996
   at SIM.Model.DAL.ContentDal.UpdateContent(Site activeSite, Content content, String adminUser) in C:\home\site\repository\SIM.Model\DAL\ContentDal.cs:line 1531
   at SIMCMSWebApi.Controllers.ContentController.<Put>d__29.MoveNext() in C:\home\site\repository\WebApi\Controllers\ContentController.cs:line 635
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
ClientConnectionId:3149299b-864e-4163-81b9-4c4616d8127f
Error Number:50001,State:1,Class:16
ClientConnectionId before routing:5b920990-d608-4fff-a32a-d2a50859075d
Routing Destination:cd4a3eec06d5.tr49282.eastus2-a.worker.database.windows.net,11019
		

Logged on Wednesday, September 9, 2026 at 5:25:32 PM

See also:

Server Variables

NameValue
ALL_HTTPHTTP_CONTENT_LENGTH:3569 HTTP_CONTENT_TYPE:multipart/form-data; boundary=----WebKitFormBoundarysdYPaoSrjBs69FAK HTTP_ACCEPT:application/json, text/plain, */* HTTP_ACCEPT_ENCODING:gzip, deflate, br, zstd HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.9 HTTP_AUTHORIZATION:Bearer FUTPbcOhOOmSKdsKfV-OkEk6Oiu42IirbVUkhuR9E3cMBhvCGDq8ebdz3066qqc39DoHMvkVFRCjpWenUlc9wau77TLYo1KTqKaetD-NwbVRlVsC7YztxiStAndsKKhFSmuXh5S7K1BRB5qPi5xlbphE1FOruHcDFg5BKA0TcoLzihvSNIUgSrvTViHL4cu-4y3FSOJaFpsVOCZwFPP3UBZyJZWGuwrvbmmF1SVlLuls95Kr-mi8AzD8ckoeGyo4 HTTP_HOST:sim-cms-webapi.azurewebsites.net HTTP_MAX_FORWARDS:10 HTTP_REFERER:https://portal.saleminteractivemedia.com/ HTTP_USER_AGENT:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 HTTP_ORIGIN:https://portal.saleminteractivemedia.com HTTP_SEC_CH_UA_PLATFORM:"Windows" HTTP_ACTIVEROLEID:251 HTTP_SEC_CH_UA:"Chromium";v="152", "Not?A_Brand";v="24", "Google Chrome";v="152" HTTP_SEC_CH_UA_MOBILE:?0 HTTP_USERNAME:mattb@kfia.com HTTP_ACTIVESITEID:255 HTTP_SEC_FETCH_SITE:cross-site HTTP_SEC_FETCH_MODE:cors HTTP_SEC_FETCH_DEST:empty HTTP_PRIORITY:u=1, i HTTP_X_ARR_LOG_ID:af95e3ee-f71c-441e-9035-72778c0f3a81 HTTP_CLIENT_IP:99.119.159.57:50923 HTTP_DISGUISED_HOST:sim-cms-webapi.azurewebsites.net HTTP_X_SITE_DEPLOYMENT_ID:sim-cms-webapi HTTP_WAS_DEFAULT_HOSTNAME:sim-cms-webapi.azurewebsites.net HTTP_X_FORWARDED_PROTO:https HTTP_X_APPSERVICE_PROTO:https HTTP_X_ARR_SSL:2048|256|CN=Microsoft TLS G2 RSA CA OCSP 16, O=Microsoft Corporation, C=US|CN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US HTTP_X_FORWARDED_TLSVERSION:1.3 HTTP_X_FORWARDED_FOR:99.119.159.57:50923 HTTP_X_ORIGINAL_URL:/api/content HTTP_X_WAWS_UNENCODED_URL:/api/content
ALL_RAWContent-Length: 3569 Content-Type: multipart/form-data; boundary=----WebKitFormBoundarysdYPaoSrjBs69FAK Accept: application/json, text/plain, */* Accept-Encoding: gzip, deflate, br, zstd Accept-Language: en-US,en;q=0.9 Authorization: Bearer FUTPbcOhOOmSKdsKfV-OkEk6Oiu42IirbVUkhuR9E3cMBhvCGDq8ebdz3066qqc39DoHMvkVFRCjpWenUlc9wau77TLYo1KTqKaetD-NwbVRlVsC7YztxiStAndsKKhFSmuXh5S7K1BRB5qPi5xlbphE1FOruHcDFg5BKA0TcoLzihvSNIUgSrvTViHL4cu-4y3FSOJaFpsVOCZwFPP3UBZyJZWGuwrvbmmF1SVlLuls95Kr-mi8AzD8ckoeGyo4 Host: sim-cms-webapi.azurewebsites.net Max-Forwards: 10 Referer: https://portal.saleminteractivemedia.com/ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 Origin: https://portal.saleminteractivemedia.com sec-ch-ua-platform: "Windows" activeroleid: 251 sec-ch-ua: "Chromium";v="152", "Not?A_Brand";v="24", "Google Chrome";v="152" sec-ch-ua-mobile: ?0 username: mattb@kfia.com activesiteid: 255 sec-fetch-site: cross-site sec-fetch-mode: cors sec-fetch-dest: empty priority: u=1, i X-ARR-LOG-ID: af95e3ee-f71c-441e-9035-72778c0f3a81 CLIENT-IP: 99.119.159.57:50923 DISGUISED-HOST: sim-cms-webapi.azurewebsites.net X-SITE-DEPLOYMENT-ID: sim-cms-webapi WAS-DEFAULT-HOSTNAME: sim-cms-webapi.azurewebsites.net X-Forwarded-Proto: https X-AppService-Proto: https X-ARR-SSL: 2048|256|CN=Microsoft TLS G2 RSA CA OCSP 16, O=Microsoft Corporation, C=US|CN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US X-Forwarded-TlsVersion: 1.3 X-Forwarded-For: 99.119.159.57:50923 X-Original-URL: /api/content X-WAWS-Unencoded-URL: /api/content
APPL_MD_PATH/LM/W3SVC/1668833352/ROOT
APPL_PHYSICAL_PATHC:\home\site\wwwroot\
AUTH_PASSWORD*****
AUTH_TYPEBearer
AUTH_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE256
CERT_SECRETKEYSIZE2048
CERT_SERIALNUMBER
CERT_SERVER_ISSUERCN=Microsoft TLS G2 RSA CA OCSP 16, O=Microsoft Corporation, C=US
CERT_SERVER_SUBJECTCN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US
CERT_SUBJECT
CONTENT_LENGTH3569
CONTENT_TYPEmultipart/form-data; boundary=----WebKitFormBoundarysdYPaoSrjBs69FAK
GATEWAY_INTERFACECGI/1.1
HTTP_ACCEPTapplication/json, text/plain, */*
HTTP_ACCEPT_ENCODINGgzip, deflate, br, zstd
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.9
HTTP_ACTIVEROLEID251
HTTP_ACTIVESITEID255
HTTP_APPLICATIONINSIGHTS_REQUESTTRACKINGTELEMETRYMODULE_ROOTREQUEST_ID34f4f382-e63a-4da2-8966-2a16fd4ecb02
HTTP_AUTHORIZATIONBearer FUTPbcOhOOmSKdsKfV-OkEk6Oiu42IirbVUkhuR9E3cMBhvCGDq8ebdz3066qqc39DoHMvkVFRCjpWenUlc9wau77TLYo1KTqKaetD-NwbVRlVsC7YztxiStAndsKKhFSmuXh5S7K1BRB5qPi5xlbphE1FOruHcDFg5BKA0TcoLzihvSNIUgSrvTViHL4cu-4y3FSOJaFpsVOCZwFPP3UBZyJZWGuwrvbmmF1SVlLuls95Kr-mi8AzD8ckoeGyo4
HTTP_CLIENT_IP99.119.159.57:50923
HTTP_CONTENT_LENGTH3569
HTTP_CONTENT_TYPEmultipart/form-data; boundary=----WebKitFormBoundarysdYPaoSrjBs69FAK
HTTP_DISGUISED_HOSTsim-cms-webapi.azurewebsites.net
HTTP_HOSTsim-cms-webapi.azurewebsites.net
HTTP_MAX_FORWARDS10
HTTP_ORIGINhttps://portal.saleminteractivemedia.com
HTTP_PRIORITYu=1, i
HTTP_REFERERhttps://portal.saleminteractivemedia.com/
HTTP_SEC_CH_UA"Chromium";v="152", "Not?A_Brand";v="24", "Google Chrome";v="152"
HTTP_SEC_CH_UA_MOBILE?0
HTTP_SEC_CH_UA_PLATFORM"Windows"
HTTP_SEC_FETCH_DESTempty
HTTP_SEC_FETCH_MODEcors
HTTP_SEC_FETCH_SITEcross-site
HTTP_USER_AGENTMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
HTTP_USERNAMEmattb@kfia.com
HTTP_WAS_DEFAULT_HOSTNAMEsim-cms-webapi.azurewebsites.net
HTTP_X_APPSERVICE_PROTOhttps
HTTP_X_ARR_LOG_IDaf95e3ee-f71c-441e-9035-72778c0f3a81
HTTP_X_ARR_SSL2048|256|CN=Microsoft TLS G2 RSA CA OCSP 16, O=Microsoft Corporation, C=US|CN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US
HTTP_X_FORWARDED_FOR99.119.159.57:50923
HTTP_X_FORWARDED_PROTOhttps
HTTP_X_FORWARDED_TLSVERSION1.3
HTTP_X_ORIGINAL_URL/api/content
HTTP_X_SITE_DEPLOYMENT_IDsim-cms-webapi
HTTP_X_WAWS_UNENCODED_URL/api/content
HTTPSon
HTTPS_KEYSIZE256
HTTPS_SECRETKEYSIZE2048
HTTPS_SERVER_ISSUERCN=Microsoft TLS G2 RSA CA OCSP 16, O=Microsoft Corporation, C=US
HTTPS_SERVER_SUBJECTCN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US
INSTANCE_ID1668833352
INSTANCE_META_PATH/LM/W3SVC/1668833352
LOCAL_ADDR10.70.96.34
LOGON_USER
PATH_INFO/api/content
PATH_TRANSLATEDC:\home\site\wwwroot\api\content
QUERY_STRING
REMOTE_ADDR99.119.159.57
REMOTE_HOST99.119.159.57
REMOTE_PORT50923
REMOTE_USER
REQUEST_METHODPUT
SCRIPT_NAME/api/content
SERVER_NAMEsim-cms-webapi.azurewebsites.net
SERVER_PORT443
SERVER_PORT_SECURE1
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/10.0
URL/api/content