-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BuildConfigFromConfigFile. Could not load file or assembly System.Text.Json, Version=7.0.0.0 #1158
Comments
you can test with 9.0.x while i am testing with az func |
worked per my test, could you please share you settings?
|
much thanks for the reply. I will test soon and share my setting when I back to company after my holiday end. the testing code not on cloud. Sorry about that. |
@tg123 setting below. Then I test KubernetesClient version 9.0.38, it work, thanks! I can use this version for my task.
|
bad news..when I change version to 9.0.38 and keep develop. It error "sometimes" like http/2 issue in #1112
|
@tg123 the vs code launch.json
|
I put it on AKS today, dockerfile below AKS env use
error message
dockerfile
|
I found it..
It work fine temporary.. |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Describe the bug
I am develop in Azure Functions. AzureFunctionsVersion v4
Then just error in build config
var config = KubernetesClientConfiguration.BuildConfigFromConfigFile("C:\\Users\\10907042\\.kube\\config");
error message below in Additional context
both I add package manually or not, all fail
dotnet add package System.Text.Json --version 7.0.0.0
or
dotnet add package System.Text.Json --version 7.0.1.0
Same code in Kubernetes C# SDK Client Version in 1.5.18 everything is right.
Kubernetes C# SDK Client Version
I test in 10.0.1 and 9.1.3
Server Kubernetes Version
1.23.8
Dotnet Runtime Version
net 6.0.300
To Reproduce
Expected behavior
KubeConfig
Where do you run your app with Kubernetes SDK (please complete the following information):
Additional context
Error:
[2022-12-29T06:13:41.002Z] ea38c585920a4d198b6defcf6522bf9e: Function 'DurableFunctionsOrchestration (Orchestrator)' failed with an error. Reason: Microsoft.Azure.WebJobs.Extensions.DurableTask.FunctionFailedException: The activity function 'Common_ScanNode' failed: "The type initializer for 'k8s.KubernetesYaml' threw an exception.". See the function execution logs for additional details. [2022-12-29T06:13:41.003Z] ---> System.TypeInitializationException: The type initializer for 'k8s.KubernetesYaml' threw an exception. [2022-12-29T06:13:41.004Z] ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. 系統找不到指定的 檔案。 [2022-12-29T06:13:41.005Z] File name: 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [2022-12-29T06:13:41.006Z] at k8s.KubernetesYaml.WithOverridesFromJsonPropertyAttributes[TBuilder](TBuilder builder) [2022-12-29T06:13:41.006Z] at k8s.KubernetesYaml..cctor() [2022-12-29T06:13:41.007Z] --- End of inner exception stack trace --- [2022-12-29T06:13:41.008Z] at k8s.KubernetesYaml.GetDeserializer(Boolean strict) [2022-12-29T06:13:41.009Z] at k8s.KubernetesYaml.Deserialize[TValue](String yaml, Boolean strict) [2022-12-29T06:13:41.009Z] at k8s.KubernetesYaml.LoadFromStreamAsync[T](Stream stream, Boolean strict) [2022-12-29T06:13:41.010Z] at k8s.KubernetesClientConfiguration.LoadKubeConfigAsync(FileInfo kubeconfig, Boolean useRelativePaths) [2022-12-29T06:13:41.011Z] at k8s.KubernetesClientConfiguration.BuildConfigFromConfigFileAsync(FileInfo kubeconfig, String currentContext, String masterUrl, Boolean useRelativePaths) [2022-12-29T06:13:41.012Z] at k8s.KubernetesClientConfiguration.BuildConfigFromConfigFile(FileInfo kubeconfig, String currentContext, String masterUrl, Boolean useRelativePaths) [2022-12-29T06:13:41.013Z] at k8s.KubernetesClientConfiguration.BuildConfigFromConfigFile(String kubeconfigPath, String currentContext, String masterUrl, Boolean useRelativePaths)
The text was updated successfully, but these errors were encountered: