Closed afscrome closed 1 month ago
cc @JamesNK @adamint
I believe this is caused by different data protection keys being used when the file name or location on disk changes between versions.
~@amcasey Is there a way to store the data protection key on disk more constant between versions?~ Discussion offline.
@JamesNK @amcasey Out of curiosity, what was the conclusion of your offline discussion?
None yet. It's ongoing.
I've also started seeing this on 8.x when using with multiple aspire projects - If I swap from one AppHost to a different AppHost, the first time I run the new app host throws the anti forgery error and then everythgn is fine until I swap back to the first app host - on it's first run it throws the error and then is fine until I swap back.
Is the version of Aspire dashboard changing between app hosts? The only scenario we know of that causes this error is moving from one version to another.
This started happen in one of my projects this weekend after upgrading to 8.2.1. Clearing all the browser cookies in the Dashboard fixed it for me
Is there an existing issue for this?
Describe the bug
On the first run of an App Host after upgrading from 8.2 to 9.0.0-preview.4.24477.2 the error logs immediately spewed an error about a invalid Anti Forgery token. This error goes away on subsequent runs, but it's a bit unnerving to get the error.
For what it's worth, a similar antiforgery error can also be reproduced if you downgrade from from 9.0 to 8.2 on the first run after the downgrade and doesn't appear on subsequent runs.
Expected Behavior
No error to be reported.
Steps To Reproduce
(Can also be
Exceptions (if any)
.NET Version info
Anything else?
No response