Hi,
I want to create a list through Featute.When that Featute will get activated ,List should be created. I am able to create list when I am hard coding the site URL.But Whenever I am writing site url as
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
try
{
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite site = new SPSite(((SPWeb)properties.Feature.Parent).Url)) {
Its not getting created. Please help me.Shubho