After upload to my server the website appears to be working fine except that it keeps redirecting me back to the login.aspx page after a few moments (for example http://www.emason.co.za/Login.aspx?ReturnUrl=%2fAdministration%2fCustomers.aspx), it is also not any particular time frame. Sometimes it works for 4 minutes and sometimes 10 seconds. btw my site is working perfect when it is running locally and using the online DB.
It initially appeared to be a session issue and set my session time longer on my hosting server. Still the same keeps happening.
I have been struggling to debug this issue for a couple of days now with no success.
Does anyone perhaps know what can be done to resolve it?
Phew, I finally figured out what the probelm was.. I dont know why i am the only one suffering from this issue.
Firstly i had this problem
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Then i made a cardinal error.
I changed <pages EnableViewStateMac = "false"/> in my web config which takes the error away but create massive problems elsewhere.. For some reason whenever the viewstate creates an error, it logs you out.
The correct fix would be the following :
Generate your machine key at http://www.orcsweb.com/articles/aspnetmachinekey.aspx