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 ForumsForumForumException when trying to manage forumsException when trying to manage forums
Previous
 
Next
New Post
2/26/2008 4:41 AM
 

Since doing nothing (!??) I get an exception when I try to manage forums (v. 4.3.3) on DNN 4.7.0. The error sent to the client is Object reference not set to an instance of an object, and the following is logged in the site log:

26.02.2008 10:27:39   Page Load Exception   Webmaster     AssemblyVersion: 04.07.00; PortalID: 4; PortalNa ...
AssemblyVersion: 04.07.00
PortalID: 4
PortalName: FDlg
UserID: 7
UserName: Webmaster
ActiveTabID: 116
ActiveTabName: Debatt
RawURL: /Debatt/tabid/116/ctl/ForumEdit/mid/547/forumid/8/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://webserver/Debatt/tabid/116/ctl/ForumManage/mid/547/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 8b4e2802-4c4b-478b-a0cd-601e03fcba23
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Forum.Controls.ForumPermissionsGrid.SaveViewState
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Forum.Controls.ForumPermissionsGrid.SaveViewState() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Page.SaveAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Servernavn: WEBSERVER

  26.02.2008 10:27:39   Module Load Exception   Webmaster     ModuleId: 547; ModuleDefId: 123; FriendlyName ...
ModuleId: 547
ModuleDefId: 123
FriendlyName: Editer forum
ModuleControlSource: DesktopModules/Forum/Forum_ForumEdit.ascx
AssemblyVersion: 04.07.00
PortalID: 4
PortalName: FDlg
UserID: 7
UserName: Webmaster
ActiveTabID: 116
ActiveTabName: Debatt
RawURL: /Debatt/tabid/116/ctl/ForumEdit/mid/547/forumid/8/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://webserver/Debatt/tabid/116/ctl/ForumManage/mid/547/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 77e94598-d295-4ec2-8f15-b1e7f02d9e23
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Forum.ForumEdit.PopulateForum
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Forum.ForumEdit.PopulateForum() at DotNetNuke.Modules.Forum.ForumEdit.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Servernavn: WEBSERVER

 

I've read and tried out the solution described in the following two posts, but none of them seems to make any difference (and yes, I've emtied the cache and restarted the application).
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/7/threadid/197003/scope/posts/Default.aspx
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/7/threadid/188589/scope/posts/threadpage/2/Default.aspx

PLEASE HELP! :)

 
New Post
2/26/2008 2:15 PM
 

Try this please.

DECLARE @ModuleDefID int
SELECT @ModuleDefID = ModuleDefID FROM {databaseOwner}{objectQualifier}ModuleDefinitions WHERE FriendlyName = 'Forum'

INSERT INTO {databaseOwner}{objectQualifier}Permission(PermissionCode, ModuleDefID, PermissionKey, PermissionName)
VALUES('FORUM_MODULE',@ModuleDefID,'FORUMADMIN','Forum Administrator')

INSERT INTO {databaseOwner}{objectQualifier}Permission(PermissionCode, ModuleDefID, PermissionKey, PermissionName)
VALUES('FORUM_MODULE',@ModuleDefID,'FORUMGLBMOD','Global Moderator')

GO

 
New Post
3/3/2008 4:06 AM
 

Sorry, I'm not able to execute the script (which I assume may be run from the SQL execute within DNN!?) The error returned is as follows:

System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_Permission'. Cannot insert duplicate key in object 'dbo.Permission'. Violation of UNIQUE KEY constraint 'IX_Permission'. Cannot insert duplicate key in object 'dbo.Permission'. The statement has been terminated.

Any idea?

 
New Post
3/4/2008 8:39 AM
 

You have to gone to the SQL Page in Host,  copy the script in the SQL Box and check the "run as script" checkbox.

 
New Post
3/5/2008 6:29 AM
 

I have the same problem, and when I run this script I have this error:

System.Data.SqlClient.SqlException: Line 7: Incorrect syntax near 'GO'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) DECLARE @ModuleDefID int SELECT @ModuleDefID = ModuleDefID FROM dbo.ModuleDefinitions WHERE FriendlyName = 'Forum' INSERT INTO dbo.Permission(PermissionCode, ModuleDefID, PermissionKey, PermissionName) VALUES('FORUM_MODULE',@ModuleDefID,'FORUMADMIN','Forum Administrator') INSERT INTO dbo.Permission(PermissionCode, ModuleDefID, PermissionKey, PermissionName) VALUES('FORUM_MODULE',@ModuleDefID,'FORUMGLBMOD','Global Moderator') GO

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumException when trying to manage forumsException when trying to manage forums


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