I use stsadm export to migrate my site from one machine to another. After migration, I found one of my webpart does not work. It throws a null reference exception.
I logged my webpart and found it cannot get SPContext.Current.Web and SPContext.Current.List, the both returns null and cause the exception. I removed the webpart and added it again but the exception still occured. However, I created a new List on the new
site then put my webpart in and it works fine.
I think it is because my migration operattion, is there anything need attention during migration? Why SPContext.Current cannot get properties?
View Complete Post