We have a farm with 2 servers. I have applied some changes to the web.config on both servers. (I have a specific web application i.e. I have applied the changes in the web.config of my sharepoint web application and NOT the default Sharepoint site or the central admin site) But it seems that Sharepoint does not take into consideration these changes! For example I added an assembly reference .... but sharepoint was still throwing an assembly reference exception. i had to add the assembly reference to each and every control. I have also increased the execution timeout but it still gives timeouts.
This happens in the production environment only.
In the test (where there is a single server) I update the web.config and all changes work.
Is it because I should not be updating the web config. I have noticed there is an SPWebConfigModification class. Do I have to use this ? won't it do the same changes as I would have done manually.
Update .... I have now used the SPWebConfigModification and also did an iisreset ... but the changes were simply ignored!
Update 2...
Some more details on my web.config updates
I had added an assembly reference under assemmblies sectuion, somethign like this: This did not work as Sharepoint was still throwing an exception that the assembly cannot be found. This problem only happens in the production environment. In dev and test, I was also receiving the exception but when I added the assembly reference above, the error disappeared.
Another thing which did not work is the executionTimeout. I have added this to the production environment but sharepoint is still giving timeouts an a long request wich we have. Again, this entry solved the problem in the test and development environments.
SPWebConfigModifications
whereas you should use it. You say that SharePoint doesn't consider your changes. When you make changes in the web.config try to make an iisreset (this usually is done automatically). What changes exactly are you making? Try making some other weird changes and see if they are considered. Try each server on its own without Load Balancer. Do both servers have teh same problem? – Dennis G