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

Proxies not working in CLI for V2 #488

Closed
safihamid opened this issue May 22, 2018 · 3 comments
Closed

Proxies not working in CLI for V2 #488

safihamid opened this issue May 22, 2018 · 3 comments
Assignees

Comments

@safihamid
Copy link
Contributor

When starting the host, this error is thrown:

Microsoft.Azure.AppService.Proxy.Runtime: Error parsing policy (Tenant, 1). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ForwardRequestPolicy (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Policies.IPolicy], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DefaultServiceRequestExecutor (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor, Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor2], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FixedBufferManager (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IBufferManager], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Configuration system failed to initialize (See inner exception for details.) (See inner exception for details.) (See inner exception for details.). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DefaultServiceRequestExecutor (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor, Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor2], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FixedBufferManager (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IBufferManager], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Configuration system failed to initialize (See inner exception for details.) (See inner exception for details.). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FixedBufferManager (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IBufferManager], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Configuration system failed to initialize (See inner exception for details.). System.Configuration.ConfigurationManager: Configuration system failed to initialize. System.Configuration.ConfigurationManager: Unrecognized configuration section system.serviceModel. (D:\GIT\azure-functions-core-tools\src\Azure.Functions.Cli\bin\Debug\netcoreapp2.0\func.dll.config line 204).

@safihamid safihamid assigned safihamid and vfedonkin and unassigned safihamid May 22, 2018
@amrfarid140
Copy link

Same issue here

  • OS: Windows 10
  • Functions Version: 2.0.1-beta.26

Log

Application started. Press Ctrl+C to shut down.
[23/05/2018 14:03:43] Reading host configuration file 'C:\Users\AmrYousef\Development\Able Portal Functions\host.json'
[23/05/2018 14:03:43] Host configuration file read:
[23/05/2018 14:03:43] {
[23/05/2018 14:03:43]   "watchDirectories": [
[23/05/2018 14:03:43]     "shared",
[23/05/2018 14:03:43]     "node_modules"
[23/05/2018 14:03:43]   ]
[23/05/2018 14:03:43] }
[23/05/2018 14:03:43] Starting Host (HostId=desktop4ffh5gr-499813719, InstanceId=c587e88d-6da5-4d49-b518-c7c52322b06b, Version=2.0.11776.0, ProcessId=15668, AppDomainId=1, Debug=False, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=)
[23/05/2018 14:03:43] Loading all the worker providers from the default workers directory: C:\Users\AmrYousef\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers
[23/05/2018 14:03:43] Found worker config: C:\Users\AmrYousef\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\python\worker.config.json
[23/05/2018 14:03:43] Will load worker provider for language: python
[23/05/2018 14:03:43] Initializing Azure Function proxies
[23/05/2018 14:03:44] A ScriptHost error has occurred
[23/05/2018 14:03:44] Microsoft.Azure.AppService.Proxy.Runtime: Error parsing policy (Tenant, 1). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ForwardRequestPolicy (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Policies.IPolicy], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None,
Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DefaultServiceRequestExecutor (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor, Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor2], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FixedBufferManager (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IBufferManager], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Configuration system failed to initialize (See inner exception for details.) (See inner exception for details.) (See inner exception for details.). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DefaultServiceRequestExecutor (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor, Microsoft.Azure.AppService.Proxy.Common.Contracts.IServiceRequestExecutor2], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FixedBufferManager (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IBufferManager], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Configuration system failed to initialize (See inner exception for details.) (See inner exception for details.). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FixedBufferManager (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Common.Contracts.IBufferManager], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Configuration system failed to initialize (See inner exception for details.). System.Configuration.ConfigurationManager: Configuration system failed to initialize. System.Configuration.ConfigurationManager: Unrecognized configuration section system.serviceModel. (C:\Users\AmrYousef\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.dll.config line 204).
[23/05/2018 14:03:44] Stopping Host
Function host is not running.
Application is shutting down...

@fabiocav
Copy link
Member

Resolved on lastest version (2.0.1-beta.28). Currently on NPM and Brew. VS and Chocolatey will be updated soon.

@Steven-Mark-Ford
Copy link

#319 is a separate issue, no?

@Azure Azure locked as resolved and limited conversation to collaborators Dec 19, 2019
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

5 participants