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

mscorlib: Cannot create an abstract class error when implementing IExtensionConfigProvider #803

Closed
gdodd1977 opened this issue May 16, 2018 · 1 comment
Assignees

Comments

@gdodd1977
Copy link

I'm implementing a custom function binding for dependency injection. I have that custom binding attribute as well as an abstract base class implementing IExtensionConfigProvider in a common dll. I'm referencing that common dll in an azure function project and inheriting from that abstract base class. When I launch the function locally, I get an error saying A ScriptHost error has occurred mscorlib: Cannot create an abstract class.

I'm on cli version 1.0.12.1.

@mathewc
Copy link
Member

mathewc commented May 18, 2018

This is coming from the activation code here. We currently assume registered config providers are concrete Types and we Activator.CreateInstance them.

PR out now with the fix - we'll get it in the next release.

@mathewc mathewc self-assigned this May 18, 2018
@mathewc mathewc closed this as completed May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants