Skip to content

Unhandled exception rendering component: The provided expression contains a PropertyExpression which is not supported. FieldIdentifier only supports simple member accessors (fields, properties) of an object #39906

@nyluhe

Description

@nyluhe

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

image

I am getting the above exception when trying to load any razor component that contains a Blazor Input. Any Razor component that contains simple html inputs is working fine. The issue we're having is that this isn't an issue when running locally, but when we upload this project to a Web App in Azure, we see this exception.

Here is the view I am trying to render:
image

I have tried removing the ValidationMessages, the DataAnnotation Validators and using InputText's for both of the fields in the form. The Dto is a simple class:

public class UserLoginDto
{
public string Email { get; set; }
public string Password { get; set; }
public bool IsPersistent { get; set; }
}

I believe this to be an issue with dotnet.5.0.13.js/dotnet.5.0.13 in general as we have multiple projects that run on dotnet 5.0.9 - 5.0.11 without issue in Azure - all using WASM and all using the exact same Azure configurations.

Expected Behavior

The Edit Form renders.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsinvestigate

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions