Mobile app version of vmapp.org
Login or Join
Reiling115

: Web.config: invalid machineKey validationKey (non hex chars)? In my old MVC 4 website, I've used all type of letters (also non hex) in the "machineKey validationKey" in web.config - it worked

@Reiling115

Posted in: #AspNet #AspNetMvc

In my old MVC 4 website, I've used all type of letters (also non hex) in the "machineKey validationKey" in web.config - it worked fine.

But now I've upgraded the website to MVC 5 and it now fails with "invalid non hex values".

Can I tell MVC 5 to use all type of chars?

Why didn't my old site fail?

If I generate a new machineKey validationKey with hex values, I guess that all passwords will be invalid.

Any idea what to do?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Reiling115

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berryessa370

Found out that I could append compatibilityMode and it worked - like this...

<machineKey compatibilityMode="Framework20SP1" />


:)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme