Memory management in SharePoint coding is always been an ongoing issue and topic of dicsussin among developers. When to dispose SPWeb and SPSite objects when not to is been a biggest confusion. There have been many best practices and white papers from experts which talks about this but there are some confusions still pending and it becomes diffcult to judge and find when you have 1000s of lines of code and classes written. Microsoft wants to help us developers for writing quality code which takes care of memory dispose and makes best use of available memory. There is a tool coming up soon as mentioned in MSDN SharePoint blog. Read more here and wait for the Memory Doctor to be released ;-)
http://blogs.msdn.com/sharepoint/archive/2008/11/12/announcing-spdisposecheck-tool-for-sharepoint-developers.aspx
Showing posts with label SPWebConfigModification. Show all posts
Showing posts with label SPWebConfigModification. Show all posts
Friday, November 14, 2008
Monday, April 28, 2008
Editing web.config Programmatically
Today after finishing the webpart development when the time came to deploy them, I realised that everytime I deploy these webparts on another server I have to add SafeControl in web.config manually again and again. Did some research and found some good articles. SPWebConfigModification is the class that we can use to modify the web.config file.
Mark Wagner has dotted down some good best practices to do this. Check here
Ted Pattison has also written some great details about the complete process to do it and he has also uploaded a sample feature to do this. Check here
And if you are still not satisfied then read more information about SPWebConfigModification on msdn
Mark Wagner has dotted down some good best practices to do this. Check here
Ted Pattison has also written some great details about the complete process to do it and he has also uploaded a sample feature to do this. Check here
And if you are still not satisfied then read more information about SPWebConfigModification on msdn
Subscribe to:
Posts (Atom)
