HRESULT E_FAIL
Hi @neozhu,
After updating my VS 2022 to version 17.2.2

I'm getting this error.

Any help how to fix this?
You can try to debug it yourself and see what's wrong. It could be the field type of the defined entity class or some other problem
Getting the same issue. Can't find out why. No idea if I'm doing anything wrong or if something broke
check your entity class properties type .
It's from a clean repo. Just did a new app, added a class like so
public class Author : AuditableEntity
{
public ulong AuthorID { get; set; }
public string? Name { get; set; }
public string? URL { get; set; }
}
and I get a COM error
EDIT : I get the error even with a new project from template without adding anything
maybe you can debug it. I am working in my vs.net 2022
No idea on how to do that. Am using VS 2022 Preview tho
the project name I was hard code, or you can fork "https://github.com/neozhu/CleanArchitectureWithBlazorServer" project for testing it. is okay. this is blazor project so you need to build from blazor branch code
getting the same error on VS2022 community 17.3.6
https://user-images.githubusercontent.com/1549611/197116874-f28414ca-7fc1-463a-b887-0754a5bb3e01.mp4
I am working
thanks for video. Thats exactly how I have tried it. But maybe either the community edition or Win11 is cousing that error and I cant find any workarround.
2022.mp4 I am working
Just re-compile Codegenerator from Source and re install it from release folder!
1)remove old COM E_FAIL CleanArchitectureCodeGenerator version from VS extention
2)download and update all CleanArchitectureCodeGenerator nu-packages
3)install compiled release version of updated CleanArchitectureCodeGenerator Now it's working! )
neozhu thanks for your project!
Codegenerator forgets to add or adds incorrectly names of some fields and objects. but i successfully corrected it manually.
I can't get access to the generated page (( auth problem access to generated razor page (( Message: "You are not authorized to be here. For more information, contact your system administrator."
I think it because OnInitializedAsync() method is not called when generated razor pages are loaded. I don;t understand why OnInitializedAsync() not colled on generated razor page((
Last: it would be cool to add the MAUI Blazor Hybrid Project to this solution))
PS: Used platform -> Windows 11 22H2 \ VS 22 Professional x64 17.4.2
you should be set permissions for the admin role then need re-login it
you need run add-migration project and update-database to generate table in entityframework code-first model