Support Forum
 
  Support Forum  DNN General Dis...  General DNN   Error when entering Edit Mode
Previous Previous
 
Next Next
New Post 12/18/2007 8:48 AM
  zen
4 posts
No Ranking


Error when entering Edit Mode 

I am running DNN 4.6. I am not sure if or what change might have caused this problem, but any user with editting privs gets the following error when entering "Edit Mode" in the top control panel. Everything works fine in "View Mode". Once they enter Edit Mode, I have to reset the setting in the database to get them back to View Mode and functional again. This applies to the site and host admin accounts as well. This leaves me unable to do any edits to the site.

Here is the error:

Server Error in '/site' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /site/Default.aspx


Any guidance on how to resolve this is appreciated. I am at a loss at this point.

 
New Post 12/18/2007 12:06 PM
  Chris Hammond
873 posts
2nd Level Poster


Re: Error when entering Edit Mode 

Are you running this in a virtual directory?

If you are on DNN 4.6.0 I would HIGHLY recommend upgrading to DNN 4.6.2. Be sure to backup the site/db first.


DotNetNuke Core Team Member
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 12/18/2007 12:21 PM
  zen
4 posts
No Ranking


Re: Error when entering Edit Mode 

Thanks for the quick response.  It is on shared hosting so I am not sure if it is in virtual directory or not.  I do have it in a sub-directory only because the automatic install requires it and as this was my first install of DNN, I didn't want to muck with a manual install and opted for the automated one.

I went back through the logs to when things broke and here are some error messages.  First is the last action taken before things hosed up.  This was deleting a Text module, but I don't even recall what it was doing.  Nothing unusual though.

ModuleId: 467
ModuleTitle: Security
TabModuleID: 307
TabID: 72
PortalID: 0
ModuleDefId: 109
FriendlyName: Text/HTML
IconFile:
Visibility: Maximized
ContainerSrc:
Server Name: WINHOST40

Second is the first error I received:

AssemblyVersion: 04.05.03
PortalID: 0
PortalName:
UserID: 2
UserName:
ActiveTabID: 124
ActiveTabName: User Groups
RawURL: /site/Community/UserGroups/tabid/124/Default.aspx
AbsoluteURL: /site/Default.aspx
AbsoluteURLReferrer: http://www.mysite.com/site/Community/UserGroups/tabid/124/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; (R1 1.5); SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 48e2cf56-ca46-42fc-ba74-99059a8ee28b
InnerException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.ControlCollection.AddAt
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child)at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e)at System.Web.UI.Control.OnInit(EventArgs e)at System.Web.UI.UserControl.OnInit(EventArgs e)at System.Web.UI.Control.InitRecursive(Control namingContainer)at System.Web.UI.Control.AddedControl(Control control, Int32 index)at System.Web.UI.ControlCollection.Add(Control child)at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e)at System.Web.UI.Control.OnInit(EventArgs e)at System.Web.UI.Page.OnInit(EventArgs e)at DotNetNuke.Framework.PageBase.OnInit(EventArgs e)at System.Web.UI.Control.InitRecursive(Control namingContainer)at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)--- End of inner exception stack trace ---
Source:
Server Name: WINHOST40

 

I guess I am due for an upgrade either way.  Are you suggesting that might resolve the issue?  I grabbed Evotiva's backup utility, but haven't used it yet.  Seems like the safer way to go for a DNN novice to ensure everything is backed up appropriately.

 
New Post 12/19/2007 9:02 AM
  zen
4 posts
No Ranking


Re: Error when entering Edit Mode 

I upgraded to 4.7 last night hoping it might magically fix the issue, but no luck.  I am still getting the same error.  Any new thoughts?

 
New Post 12/19/2007 9:11 AM
  Chris Hammond
873 posts
2nd Level Poster


Re: Error when entering Edit Mode 

When you access the site what URL are you using? When you try to "edit" a module what is the URL that shows up.


DotNetNuke Core Team Member
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 12/19/2007 9:38 AM
  zen
4 posts
No Ranking


Re: Error when entering Edit Mode 

 christoc wrote

When you access the site what URL are you using?

http://www.mysite.com/site/

 christoc wrote

When you try to "edit" a module what is the URL that shows up.

http://www.mysite.com/site/Default.aspx?tabid=36&error=The+Controls+collection+cannot+be+modified+because+the+control+contains+code+blocks+(i.e.+%3c%25+...+%25%3e).&content=0

The latter was generated when logging in from Default.aspx with a user account that was already set in edit mode.  So it is not a particular module or page.  Any account set in the database as being in edit mode will bomb on any page immediately when logging in.  If they are set in view mode, they can be logged in and fine up until they hit the "edit" radio button and then it bombs.

 
Previous Previous
 
Next Next
  Support Forum  DNN General Dis...  General DNN   Error when entering Edit Mode
Buy now!

Purchase modules

click here to buy now

Please click here to register for an account and payment will be processed via PayPal.

Test Drive!

Test drive our modules

click here to test drive our modules

Want to find out how it works? Visit our demo site to see the modules in actions!

Subscribe

Sign up for our newsletter and get the latest product updates!

Online Support

Get the latest!