Skip to content
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

Could not load file or assembly 'Microsoft.Azure.Amqp.resources, Version=2.1.0.0 #3205

Closed
AbhishekTripathi opened this issue Jul 30, 2018 · 1 comment

Comments

@AbhishekTripathi
Copy link

AbhishekTripathi commented Jul 30, 2018

Investigative information

Please provide the following:

  • Timestamp: 30/07/2018
  • Function App version (1.0 or 2.0-beta): 2.0-beta
  • Function App name:
  • Function name(s) (as appropriate):
  • Invocation ID:
  • Region: local development
  • Azure Functions Core Tools Version: 2.0.1-beta.33
  • Function Runtime Version: 2.0.11933.0
  • Microsoft.NET.Sdk.Functions: 1.0.14

Repro steps

Provide the steps required to reproduce the problem:

A simple Function with inbound service bus trigger. I was earlier getting AppDomain related issue #2854. I upgraded my Function Host which broke VS integration. However, I tried debugging from the CLI using func host start --debug VS --debugLevel verbose --build. I get a different error now. I am using VS 2017 Enterprise (Version 15.7.5)

image

image

image

image

StackTrace

at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, IntPtr ptrLoadContextBinder)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, IntPtr ptrLoadContextBinder)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, IntPtr ptrLoadContextBinder)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Microsoft.Azure.WebJobs.Script.Description.FunctionAssemblyLoadContext.TryLoadRuntimeAssembly(AssemblyName assemblyName, Assembly& assembly) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\DotNet\FunctionAssemblyLoadContext.cs:line 163

Expected behavior

Provide a description of the expected behavior.
Function should run with trigger invoked when message is put in the subscription

Actual behavior

Provide a description of the actual behavior observed.
Error with FileNotFoundException

Known workarounds

Provide a description of any known workarounds.

Related information

Provide any related information

  • Programming language used C#
  • Links to source
  • Bindings used
@fabiocav
Copy link
Member

fabiocav commented Dec 6, 2018

A number of changes happened in this area since this beta. Closing this as we believe the issue is resolved, but please let us know if you continue to have problems.

@fabiocav fabiocav closed this as completed Dec 6, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants