Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListErrors in the log with DNN6 Errors in the log with DNN6
Previous
 
Next
New Post
7/29/2011 6:06 PM
 
I'm getting the following error a lot in my DNN6 instance:

AssemblyVersion: 6.0.0

PortalID: 1

PortalName: ASDF

UserID: -1

UserName:

ActiveTabID: 89

ActiveTabName: Application

RawURL: /Application.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://ASDF.net/Default.aspx?tabid=89&error=An%20unexpected%20error%20has%20occurred&content=0

UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 4ba529c7-b3ca-4e71-ab58-1fa2f5400095

InnerException: A column named 'if yes please explain' already belongs to this DataTable.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.Data.DataColumnCollection.RegisterColumnName

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: A column named 'if yes please explain' already belongs to this DataTable. ---> System.Data.DuplicateNameException: A column named 'if yes please explain' already belongs to this DataTable. at System.Data.DataColumnCollection.RegisterColumnName(String name, DataColumn column, DataTable table) at System.Data.DataColumnCollection.BaseAdd(DataColumn column) at System.Data.DataColumnCollection.AddAt(Int32 index, DataColumn column) at DotNetNuke.Common.Globals.BuildCrossTabDataSet(String DataSetName, IDataReader result, String FixedColumns, String VariableColumns, String KeyColumn, String FieldColumn, String FieldTypeColumn, String StringValueColumn, String NumericValueColumn, CultureInfo Culture) at DotNetNuke.Modules.UserDefinedTable.UserDefinedTableController.BuildMainDataSet(DataTable fieldsTable, IDataReader dr, Boolean RowMode) at DotNetNuke.Modules.UserDefinedTable.UserDefinedTableController.GetRow(Int32 UserDefinedRowId, Boolean WithPreRenderedValues) at DotNetNuke.Modules.UserDefinedTable.EditForm.get_Data() at DotNetNuke.Modules.UserDefinedTable.EditForm.BuildEditForm() at DotNetNuke.Modules.UserDefinedTable.EditForm.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.Modules.UserDefinedTable.Default.LoadControlByKey(String ControlKey) at DotNetNuke.Modules.UserDefinedTable.Default.InitViews() at DotNetNuke.Modules.UserDefinedTable.Default.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.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:

Server Name: ASDF


David O'Leary
Efficion Consulting
 
New Post
7/29/2011 6:46 PM
 
Odd, I don't believe its 6.0 related as that text is not contained within DotNetNuke anywhere (not that we would ever create a column like "'if yes please explain)

My first guess would be that someone is trying to do sql injection against your site and messing up their query (e.g. perhaps you have a 3rd party module vulnerable to sql injection) - as most SQL injection is url based I'd recommend checking your IIS logs for that string and for any sql syntax (e.g. select/insert/delete/create) - also please check for obfuscated input using DECLARE

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/29/2011 6:59 PM
 
Hi Cathal,
The Error is occuring against the Form and List module 5.1.3 (and thus posted to the Form and List forum). There is a field on the Form for "If yes please explain". I don't think this is any kind of attack as this site is just in development and not released publicly (though if someone had the right URL they could get to it). I assume the Form and List module is not vulnerable to SQL Injection attacks as I assume people like you and Brandon review core modules for vulnerabilities.

David O'Leary
Efficion Consulting
 
New Post
7/29/2011 7:11 PM
 
aha, in that case a datatable is being built up in code to be later bound to something such as a gridview -it would seem theres an error in the core - i'd suggest added it as an issue at http://dnnfnl.codeplex.com/workitem/list/basic

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/31/2011 1:11 PM
 
FnL content gets deseralized into a DataTable in memory. The error message tells you that it tries to add a second column with the same name. 

Please verify in FnL configuration that this is not the case.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListErrors in the log with DNN6 Errors in the log with DNN6


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out