Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Nomad88 3/5/2011 8:47 AM (edited 3/5/2011 8:49 AM)
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.
# markfind 3/5/2011 11:33 AM
may be templates don't have the same placeholder..
# Constructor 3/5/2011 3:01 PM
markfindmay 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.