Rank: Newbie Groups: Member
Joined: 3/4/2011 Posts: 1 Points: 3
|
Error: Object reference not set to an instance of an object.
The template doesn't apply if there are already some modules or contents placed in some placeholders that don't exist in new template.
Line 357: if (moduleControl != null) Line 358: { Line 359: ((PlaceHolder)this._templateControl.Containers[section.PlaceholderId]).Controls.Add(moduleControl); Line 360: } Line 361: }
Or more correctly it applies, but shows error. And after that you can't return back the changes.
|
Rank: Advanced Member Groups: Member
Joined: 10/16/2005 Posts: 63 Points: 156 Location: Italy
|
may be templates don't have the same placeholder..
|
Rank: Administration Groups: Administration
, Member
Joined: 10/7/2008 Posts: 505 Points: 1,515
|
markfind wrote:may be templates don't have the same placeholder.. This is correct. If you change templates on an existing site make sure placeholders exist for sections that are in use.
|