sudathG
sudathG

Reputation: 77

Metadata file could not be found

Severity Code Description Project File Line Suppression State Error CS0006 Metadata file 'F:\BlazorWebAssembly\BlazorProject\Client\obj\Debug\net6.0\ref\BlazorProject.Client.dll' could not be found BlazorProject.Server F:\BlazorWebAssembly\BlazorProject\Server\CSC 1 Active

enter image description here

Also, I delete the obj, bin folder, and rebuild the project but did not fix that. Are you know How to fix that case. Please help me...

Upvotes: 4

Views: 8536

Answers (5)

Sara Daum
Sara Daum

Reputation: 3

In my case, I right-clicked on the ptoject I got the error for, and selected "Build". The error is gone.

Upvotes: 0

John Goudy
John Goudy

Reputation: 341

As per Link from Yiyi You above, the response by Heinz Kessler solved it for me. The problem was that there were build errors that were only visible in the Output Window.

Upvotes: 2

ahkrisztian
ahkrisztian

Reputation: 11

I had tha same issue. I removed the weatherforcast model and controller, but i forgat to remove the weatwerforcast page at the Client/Pages. Make sure your remove the weatherforcast stuff everywhere.

Upvotes: 1

Sajjad Arash
Sajjad Arash

Reputation: 349

i have same problem at publish time and many search in site but not found answer after 30 minutes tried i've re-new my publish profile after that my problem has solved

Upvotes: 1

GetnetA
GetnetA

Reputation: 24

It will be fine when you restart your computer.

Upvotes: -1

Related Questions