I have some troubles showing the right data on my page when I run it local.
I have added my database on a webhotel with the right connectionstring in webconfig and it Works great on the server. If i run my umbraco site local I get some old data that have been on the site some time ago.
Does anyone know whats wrong and how to solve this?
I have tried to republish site..
Double check that the local site and the server site are using the same database (connectionString is the same). This has tripped me up more then once.
You said you tried to republish the content on the local site so try deleting the /app_data/umbraco.config file too.
My guess is that when you copied the site to your local environment some permissions were reset. When Umbraco created the new umbraco.config file it would have done so with the right permissions.
If this is the case you can avoid the problem by retaining the permissions (or properly re-setting them) when you copy the files next time.
PS: if this is indeed the case you may have other files that don't have the right permissions.
I will try with this for now, it worked deleting the config file. I havent noticed anything else with persmissions on the files, but I will remember it if anything is wrong Next time..
Different data on localhost than server
Hi everyone!
I have some troubles showing the right data on my page when I run it local. I have added my database on a webhotel with the right connectionstring in webconfig and it Works great on the server. If i run my umbraco site local I get some old data that have been on the site some time ago.
Does anyone know whats wrong and how to solve this? I have tried to republish site..
It is possible that the local version can't write to \App_Data\umbraco.config?
Double check that the local site and the server site are using the same database (connectionString is the same). This has tripped me up more then once.
You said you tried to republish the content on the local site so try deleting the /app_data/umbraco.config file too.
Thanks a lot!!
It helped deleting the /app_data/umbraco.config file :)
but do I always have to delete that in the future to get the rigt data?
My guess is that when you copied the site to your local environment some permissions were reset. When Umbraco created the new umbraco.config file it would have done so with the right permissions.
If this is the case you can avoid the problem by retaining the permissions (or properly re-setting them) when you copy the files next time.
PS: if this is indeed the case you may have other files that don't have the right permissions.
You should not have to delete the umbraco.config to get the right data.
Using Republish entire site on the Content context menu should normally update the cache for a specific environment.
Thanks..
I will try with this for now, it worked deleting the config file. I havent noticed anything else with persmissions on the files, but I will remember it if anything is wrong Next time..
Thanks for the answers!
is working on a reply...