Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Replacing IViewComponentHelper can unexpectedly break ViewComponent TagHelpers #5254

@NTaylorMullen

Description

@NTaylorMullen

If a user replaces the IViewComponentHelper with something that is not IViewContextAware you will get an invalid cast exception at runtime when trying to invoke a ViewComponent TagHelper. We should try to cast the IViewComponentHelper to IViewContextAware and if it can't be cast throw an acceptable exception.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions