Showing posts with label Changes Won't Take Effect. Show all posts
Showing posts with label Changes Won't Take Effect. Show all posts
Friday, April 8, 2016
EPiServer: Your changes in code won't take effect?! Check the F@#king Version in your branches!
Yesterday I had a lot to do and therefore I had to switch between a lot of different branches. When I was working on one of my tasks I've found out that my changes doesn't take effect on EpiServer. To be more specific, I had a field with a UIHint before, then my UIHint didn't cause any behavior in the UI! It has been changed to a simple short string field.
To find the problem I tried adding a new property, but surprisingly my new field didn't even show up. So I thought maybe something is wrong with my web-server, temp files or etc. I tried restarting my IIS, deleting my temp files everywhere and then restarting IIS again, and after all restarting my windows! But none of them worked!
But again I've got surprised since even restarting the windows didn't work for me. So I post a question on EpiServer and thanks to Per Gunsarfs I understand what was the problem.
It was pretty simple! Your changes won't take effect if there is a newer assembly version available!
I just needed to change my assembly version to the newest that we have. (right click on project> properties> application tab> assembly information button) or as I did, update your branch with the parent branch (or master) if it has been set to the latest.
Easy? Right?! But just if you know it!
Subscribe to:
Posts (Atom)

