Hi @Saeed Pooladzadeh,
You could F12 in the browser and check the Console
panel to see the exception:
No parameterless constructor defined for type 'namespace.Index'
So just add the constructor:
@code {
//....
public Index()
{
}
public Index(HttpClient httpClient) {
this.httpClient = httpClient;
}
//.....
}
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Rena