-
Notifications
You must be signed in to change notification settings - Fork 441
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
Azure Functions: Exception while executing function: unable to find assembly 'System.Runtime, Version=4.1.0.0' #1514
Comments
Maybe a better question is why do you need to take a dependency on Newtonsoft... |
Still the same issue. We took the dependency to force the version of Newtonsoft to the exact same one that serialized the data on the source side. Unnecessary, I know, but we were grasping at straws. |
Also is core supported inside Azure Functions. Try net46 just to be on the safe side. |
@khariq Azure Functions only supports the You may have problems with your external reference as .NET Standard 1.3 is the highest supported by the runtime. Just want to clarify your comment on top, though; are you sure your assembly is not targeting .NET Standard 1.1? |
@fabiocav It is target .NetCore1.1 I changed the framework to 1.0 (which from my understanding is in 1.3?) and the error still occurs. I also deleted project.json to make sure the framework reference is gone. |
This might be helpful: In order to use your assembly in functions, you need to target netstandard 1.3 (maximum). Or .NET Framework 4.6 |
@khariq fabio is suggesting you need to target net46 or netstandard up to 1.3. |
@fabiocav @dallancarr Thank you both your patient explanations. I've changed my assemblies to target .Net Standard 1.3 on build. I was convinced you were talking about changing the project.json file. |
When attempting to use JsonConvert to deserialize a Service Bus message to a domain POCO, the following exception is through:
Unable to find assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Are you missing a private assembly file?
Repro steps
Provide the steps required to reproduce the problem
Expected behavior
The string should be deserialized to the POCO.
Actual behavior
2017-05-16T18:51:10.477 Function started (Id=21f3f001-cab2-49ff-84b7-d531a5d667a5)
2017-05-16T18:51:10.477 Unable to find assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Are you missing a private assembly file?
2017-05-16T18:51:10.477 Function completed (Failure, Id=21f3f001-cab2-49ff-84b7-d531a5d667a5, Duration=2ms)
Related information
project.json contents:
C#, .csx, Azure Functions
The text was updated successfully, but these errors were encountered: