Skip to content

Fix 'file not found' errors #67

@benCoomes

Description

@benCoomes

The following error occurs following deployment of #66. It needs to be fixed, perhaps by updating libraries to a newer version.

"1/31/2026, 8:00:55.413 PM","System.IO.FileNotFoundException at StaticWebAppsAuth.ParseUser",,"System.IO.FileNotFoundException",,"FunctionApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null","StaticWebAppsAuth.ParseUser","Microsoft.Azure.WebJobs.Host.FunctionInvocationException","Exception while executing function: ActivityCount","System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw","System.IO.FileNotFoundException","Could not load file or assembly 'System.Linq, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.","FunctionApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null","StaticWebAppsAuth.ParseUser",3,,"[{""severityLevel"":""Error"",""outerId"":""0"",""message"":""Exception while executing function: ActivityCount"",""type"":""Microsoft.Azure.WebJobs.Host.FunctionInvocationException"",""id"":""30884788"",""parsedStack"":[{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw"",""level"":0,""line"":0},{""assembly"":""Microsoft.Azure.WebJobs.Host, Version=3.0.41.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"",""method"":""Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+d__26.MoveNext"",""level"":1,""line"":352,""fileName"":""D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs""},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw"",""level"":2,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess"",""level"":3,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification"",""level"":4,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter1.GetResult"",""level"":5,""line"":0},{""assembly"":""Microsoft.Azure.WebJobs.Host, Version=3.0.41.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"",""method"":""Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+<TryExecuteAsync>d__18.MoveNext"",""level"":6,""line"":108,""fileName"":""D:\\a\\_work\\1\\s\\src\\Microsoft.Azure.WebJobs.Host\\Executors\\FunctionExecutor.cs""}]},{""severityLevel"":""Error"",""outerId"":""30884788"",""message"":""Could not load file or assembly 'System.Linq, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified."",""type"":""System.IO.FileNotFoundException"",""id"":""6395090"",""parsedStack"":[{""assembly"":""FunctionApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"",""method"":""StaticWebAppsAuth.ParseUser"",""level"":0,""line"":38,""fileName"":""/github/workspace/FunctionApp/StaticWebAppsAuth.cs""},{""assembly"":""FunctionApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"",""method"":""Coomes.Equipper.FunctionApp.Functions.GetActivityCount+<Run>d__0.MoveNext"",""level"":1,""line"":21,""fileName"":""/github/workspace/FunctionApp/Functions/GetActivityCount.cs""},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw"",""level"":2,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess"",""level"":3,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification"",""level"":4,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter1.GetResult"",""level"":5,""line"":0},{""assembly"":""Microsoft.Azure.WebJobs.Host, Version=3.0.41.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"",""method"":""Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker2+<InvokeAsync>d__10.MoveNext"",""level"":6,""line"":53,""fileName"":""D:\\a\\_work\\1\\s\\src\\Microsoft.Azure.WebJobs.Host\\Executors\\FunctionInvoker.cs""},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw"",""level"":7,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess"",""level"":8,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification"",""level"":9,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter1.GetResult"",""level"":10,""line"":0},{""assembly"":""Microsoft.Azure.WebJobs.Host, Version=3.0.41.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"",""method"":""Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+d__33.MoveNext"",""level"":11,""line"":581,""fileName"":""D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs""},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw"",""level"":12,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess"",""level"":13,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification"",""level"":14,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter`1.GetResult"",""level"":15,""line"":0},{""assembly"":""Microsoft.Azure.WebJobs.Host, Version=3.0.41.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"",""method"":""Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+d__32.MoveNext"",""level"":16,""line"":527,""fileName"":""D:\a\work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs""},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw"",""level"":17,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess"",""level"":18,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification"",""level"":19,""line"":0},{""assembly"":""System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"",""method"":""System.Runtime.CompilerServices.TaskAwaiter.GetResult"",""level"":20,""line"":0},{""assembly"":""Microsoft.Azure.WebJobs.Host, Version=3.0.41.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"",""method"":""Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+d__26.MoveNext"",""level"":21,""line"":306,""fileName"":""D:\a\work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs""}]}]",exception,"{""FormattedMessage"":""Executed 'ActivityCount' (Failed, Id=63673fb6-3458-4492-924d-42d607929346, Duration=27ms)"",""InvocationId"":""63673fb6-3458-4492-924d-42d607929346"",""EventId"":""3"",""EventName"":""FunctionCompleted"",""prop__invocationId"":""63673fb6-3458-4492-924d-42d607929346"",""prop__functionName"":""ActivityCount"",""ProcessId"":""2676"",""HostInstanceId"":""6afe035b-e063-44ee-a4db-2ef05a5f6fdc"",""prop{OriginalFormat}"":""Executed '{functionName}' ({status}, Id={invocationId}, Duration={executionDuration}ms)"",""LogLevel"":""Error"",""prop__status"":""Failed"",""Category"":""Function.ActivityCount"",""prop__executionDuration"":""27"",""prop__MS_AzureFunctionsRequestID"":""f723be1f-a797-4b29-a1c9-3e7ee38c8538""}",,ActivityCount,6958fa45d1d1dfca7e57466b7f06d186,6422de7b5c2b8b0d,,,,,,,PC,,,"0.0.0.0","High Point","North Carolina","United States",,"equipper-swa",164a2f91a7f9899c9ce4eb078103f8d9fa8855223ba2adc6104548de3a4a7caa,"3bae0ef7-534e-4a10-9b01-f0fa87a1cae9","/subscriptions/6546d047-6b8f-464f-bc5c-1e816a2334a7/resourcegroups/equipper/providers/microsoft.insights/components/equipper-swa","6edd248c-d1b3-4610-920b-337fa65ec542","azurefunctions: 4.641.300.25461","90707b27-fedf-11f0-9da8-7c1e52192b91",1,"/subscriptions/6546d047-6b8f-464f-bc5c-1e816a2334a7/resourcegroups/equipper/providers/microsoft.insights/components/equipper-swa"

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions