Skip to content

Conversation

@david-acm
Copy link
Collaborator

Exclude IWeatherForecastService from the internal project when the UI projects are present

Exclude IWeatherForecastService from the internal project when the UI projects are present
@david-acm david-acm linked an issue Sep 19, 2024 that may be closed by this pull request
@david-acm
Copy link
Collaborator Author

david-acm commented Sep 19, 2024

The issue was caused by a duplicated IWeatherForecast interface. The client-side service was mistakenly registered to the second, incorrect interface. As a result, at runtime, the correct interface lacked any registered implementations.

This led to an odd behavior: initially, the page appeared fine because the server-side rendering was correctly implemented. However, upon reload, the client-side rendering would fail due to the missing service registration for the correct interface.

I added an exclusion to the solution template to remove the duplicated interface.

@david-acm david-acm closed this Sep 19, 2024
@david-acm david-acm reopened this Sep 19, 2024
@david-acm david-acm merged commit dbe9dfe into main Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Payments link fails due to unregistered service

2 participants