Buffer cannot be null. Parameter name: buffer

System.ArgumentNullException: Buffer cannot be null. Parameter name: buffer

System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
   at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
   at System.IO.MemoryStream..ctor(Byte[] buffer)
   at OOP.Report.ResourceServer.Controllers.CrystalReportController.<GetCrystalReport>d__3.MoveNext() in D:\Source\Git\OOP\OOP\OOP.Report.ResourceServer\Controllers\CrystalReportController.cs:line 75
--- 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__1`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__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.ActionFilterResult.<ExecuteAsync>d__5.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__3.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__3.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__3.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.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
		

Logged on Friday, August 29, 2025 at 3:31:51 PM

See also:

Server Variables

NameValue
ALL_HTTPHTTP_CONNECTION:close HTTP_CONTENT_LENGTH:35 HTTP_CONTENT_TYPE:application/json; charset=utf-8 HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate, br, zstd HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.5 HTTP_AUTHORIZATION:Bearer u7BT3hOYLquZ1jcv8b0_PCCArUjwsbreraDrRVPJQRXUIMxSeribmKKIz6syN4OeUIQn0aEfs__dib3rcJG4rHUyh3dVyF1rnHaxuZDooj0q8F_YSXK46H5lm9HKn4-ysxtnwiFYZ6tDWIkqXFwqGzemVmQGM0kljauYaRbjK6QkkNyY4SysQvJtXGN68-e34y1S2QtMg-rqi8yGSsRq3cWwTYU6z42njxeGkRH0zMAL2VahSv-SdM2mmdF166I7q6QIkOxJMQGN7xKik-5Vtym8ViSEaC1vjluUVcwyREnhScIk0KVsegwk1ouUTpW8DKSiXeVCQRjuu7tl1XXOew2qrVLm2A13WjFpPQb6Tg72q1hLafvRYQ-wGMqxJh6Am-TiFTUgxfd_FX-abSiSDxy9fDr85YvXpeP3oPYG9ixZzq3I36H9cdvWZWI9Vv-rjsPBFe-2z20165j4HmA-Lvz4w5w HTTP_HOST:oopreport.ramrajcotton.net HTTP_REFERER:https://portal.ramrajcotton.net/ HTTP_TE:trailers HTTP_USER_AGENT:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0 HTTP_SELECTEDBPID:61327 HTTP_SELECTEDDIVISIONID:1,4,3,7,6,2,5 HTTP_APPCLIENT:OOP HTTP_ORIGIN:https://portal.ramrajcotton.net HTTP_SEC_FETCH_DEST:empty HTTP_SEC_FETCH_MODE:cors HTTP_SEC_FETCH_SITE:same-site HTTP_PRIORITY:u=0
ALL_RAWConnection: close Content-Length: 35 Content-Type: application/json; charset=utf-8 Accept: */* Accept-Encoding: gzip, deflate, br, zstd Accept-Language: en-US,en;q=0.5 Authorization: Bearer u7BT3hOYLquZ1jcv8b0_PCCArUjwsbreraDrRVPJQRXUIMxSeribmKKIz6syN4OeUIQn0aEfs__dib3rcJG4rHUyh3dVyF1rnHaxuZDooj0q8F_YSXK46H5lm9HKn4-ysxtnwiFYZ6tDWIkqXFwqGzemVmQGM0kljauYaRbjK6QkkNyY4SysQvJtXGN68-e34y1S2QtMg-rqi8yGSsRq3cWwTYU6z42njxeGkRH0zMAL2VahSv-SdM2mmdF166I7q6QIkOxJMQGN7xKik-5Vtym8ViSEaC1vjluUVcwyREnhScIk0KVsegwk1ouUTpW8DKSiXeVCQRjuu7tl1XXOew2qrVLm2A13WjFpPQb6Tg72q1hLafvRYQ-wGMqxJh6Am-TiFTUgxfd_FX-abSiSDxy9fDr85YvXpeP3oPYG9ixZzq3I36H9cdvWZWI9Vv-rjsPBFe-2z20165j4HmA-Lvz4w5w Host: oopreport.ramrajcotton.net Referer: https://portal.ramrajcotton.net/ TE: trailers User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0 selectedbpid: 61327 selecteddivisionid: 1,4,3,7,6,2,5 appclient: OOP origin: https://portal.ramrajcotton.net sec-fetch-dest: empty sec-fetch-mode: cors sec-fetch-site: same-site priority: u=0
APPL_MD_PATH/LM/W3SVC/20/ROOT
APPL_PHYSICAL_PATHD:\IIS\OOP\Resources\Report\
AUTH_PASSWORD*****
AUTH_TYPEBearer
AUTH_USERR218
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE256
CERT_SECRETKEYSIZE2048
CERT_SERIALNUMBER
CERT_SERVER_ISSUERC=US, S=Arizona, L=Scottsdale, O="GoDaddy.com, Inc.", OU=http://certs.godaddy.com/repository/, CN=Go Daddy Secure Certificate Authority - G2
CERT_SERVER_SUBJECTCN=*.ramrajcotton.net
CERT_SUBJECT
CONTENT_LENGTH35
CONTENT_TYPEapplication/json; charset=utf-8
GATEWAY_INTERFACECGI/1.1
HTTP_ACCEPT*/*
HTTP_ACCEPT_ENCODINGgzip, deflate, br, zstd
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_APPCLIENTOOP
HTTP_APPLICATIONINSIGHTS_REQUESTTRACKINGTELEMETRYMODULE_ROOTREQUEST_ID118cc4bb-6265-4221-9d9a-0970b852289c
HTTP_AUTHORIZATIONBearer u7BT3hOYLquZ1jcv8b0_PCCArUjwsbreraDrRVPJQRXUIMxSeribmKKIz6syN4OeUIQn0aEfs__dib3rcJG4rHUyh3dVyF1rnHaxuZDooj0q8F_YSXK46H5lm9HKn4-ysxtnwiFYZ6tDWIkqXFwqGzemVmQGM0kljauYaRbjK6QkkNyY4SysQvJtXGN68-e34y1S2QtMg-rqi8yGSsRq3cWwTYU6z42njxeGkRH0zMAL2VahSv-SdM2mmdF166I7q6QIkOxJMQGN7xKik-5Vtym8ViSEaC1vjluUVcwyREnhScIk0KVsegwk1ouUTpW8DKSiXeVCQRjuu7tl1XXOew2qrVLm2A13WjFpPQb6Tg72q1hLafvRYQ-wGMqxJh6Am-TiFTUgxfd_FX-abSiSDxy9fDr85YvXpeP3oPYG9ixZzq3I36H9cdvWZWI9Vv-rjsPBFe-2z20165j4HmA-Lvz4w5w
HTTP_CONNECTIONclose
HTTP_CONTENT_LENGTH35
HTTP_CONTENT_TYPEapplication/json; charset=utf-8
HTTP_HOSToopreport.ramrajcotton.net
HTTP_ORIGINhttps://portal.ramrajcotton.net
HTTP_PRIORITYu=0
HTTP_REFERERhttps://portal.ramrajcotton.net/
HTTP_SEC_FETCH_DESTempty
HTTP_SEC_FETCH_MODEcors
HTTP_SEC_FETCH_SITEsame-site
HTTP_SELECTEDBPID61327
HTTP_SELECTEDDIVISIONID1,4,3,7,6,2,5
HTTP_TEtrailers
HTTP_USER_AGENTMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0
HTTPSon
HTTPS_KEYSIZE256
HTTPS_SECRETKEYSIZE2048
HTTPS_SERVER_ISSUERC=US, S=Arizona, L=Scottsdale, O="GoDaddy.com, Inc.", OU=http://certs.godaddy.com/repository/, CN=Go Daddy Secure Certificate Authority - G2
HTTPS_SERVER_SUBJECTCN=*.ramrajcotton.net
INSTANCE_ID20
INSTANCE_META_PATH/LM/W3SVC/20
LOCAL_ADDR10.0.0.198
LOGON_USERR218
PATH_INFO/api/CrystalReport/GetCrystalReport
PATH_TRANSLATEDD:\IIS\OOP\Resources\Report\api\CrystalReport\GetCrystalReport
QUERY_STRING
REMOTE_ADDR59.182.196.172
REMOTE_HOST59.182.196.172
REMOTE_PORT54164
REMOTE_USERR218
REQUEST_METHODPOST
SCRIPT_NAME/api/CrystalReport/GetCrystalReport
SERVER_NAMEoopreport.ramrajcotton.net
SERVER_PORT443
SERVER_PORT_SECURE1
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/10.0
URL/api/CrystalReport/GetCrystalReport