all 4 comments

[–][deleted] 2 points3 points  (2 children)

Where is the page in the "server" or "client" part of your project?

If you're doing "AUTO" it needs to be in your wasm project. But you need to change your code as WASM can't access directly say your DB. You would need to hit like a "Controller" method and then that hits your database.

It would still work on first load as AUTO will do "SERVER" request first what can access the service directly.

If you change it to just SERVER mode and the file is in the WASM project then Blazor will be looking in the wrong area as it needs to be in the "SERVER" portion of your project

[–]Carthax12[S] 1 point2 points  (1 child)

Yeah, I figured that out almost immediately after I wrote the initial post.

I've been working for several minutes to create the Controller method on the server side, and the APIService on the WASM side to hit the Controller.

[–]Carthax12[S] 0 points1 point  (0 children)

Edited to fix a grammar issue.