Problem with delete fields

I have some fields that i deleted from BO and recreated from code. The field is visible in the list of fields. But when I’m trying to add them to a template in the BO it throws an error like Litium.FieldFramework.FieldFrameworkException: Field with name 'TestField' does not match any field definition in area 'ProductArea'

And when I’m trying to delete the field I’m getting a error of Litium.Data.DataException: Database operation expected to affect 1 row(s) but actually affected 0 row(s)

Looks like there is something wrong with the fields. Has anyone seen this behavior?

Litium version: 7.1

Looks like a restart of the site made this error disappear. Could be nice to know if it occurs again for anyone.

Are you using multiple web applications to the same database?

No, one app only.

I have the same problem, trying to delete a field in BO because I want to change it’s datatype from Text to TextOption (which is defined in the code aswell). How do I do the restart of the website?

Open IIS Manager > Locate the site in the list to the left > Right-click and select Restart.