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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Navigation between modules?Navigation between modules?
Previous
 
Next
New Post
2/15/2013 10:50 AM
 
So I lied about the errors in the Event Viewer, sorry.  There were errors, both for the drop down list link from the toolbar, and the button link.

ModuleId: 481
ModuleDefId: 104
FriendlyName: Enter Title
ModuleControlSource: DesktopModules/HTML/HtmlModule.ascx
AssemblyVersion: 5.6.3
PortalID: 0
PortalName: Optima Solutions
UserID: 1
UserName: host
ActiveTabID: 108
ActiveTabName: Inactivity Manager
RawURL: /Default.aspx?tabid=108
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 402af9bb-2c97-41e2-b904-b77cc4eb7e4b
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Html.HtmlModule.Page_Load
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.Html.HtmlModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
 
New Post
2/15/2013 11:18 AM
 
Stephen,
Unfortunately via the forums here I am not following exactly what is going on.

Shoot me an email chris - chrishammond.com and we'll see if I can get you some assistance. Might need to do a screenshare session via skype (user:dnnvoice) to make that happen.

Chris

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/1/2013 9:29 AM
 
First off, thanks for all the help Chris!  After the help you gave me I added a few stored procedures to SQL and finally got the Inactivity Manager to display correctly.  Now I have a question about the code we changed.

If Not UserInfo.IsSuperUser And Not Page.User.IsInRole("demouser") And Not Page.User.IsInRole("dietarymanager") And Not Page.User.IsInRole("neel") Then Response.Redirect(ApplicationURL())

In the portion of the code that is underlined, as best as I understand it, we are saying that if you are not a superuser, you'll be redirected to the home page.  With the next the roles, I assume we are trying to say the samething.  And that is where I am losing it.  Now that I can navigate to the Inactivity Manager with a superuser account, I can't with the other user groups.  My question is can I code the rest of the user groups like we did the superuser? 

I have tried UserInfor.IsDemoUser, and what I get is a code error saying that DemoUser is not a member of the DNN.Entities.Users.UserInfo.  I see that IsSuperUser is a public property, but I'm not sure exactly what that means in all of this.  Do I need to maually add roles to these public properties?  Sorry for my ignorance once again, still learning and appreciate any help or lead in the right direction.
 
New Post
3/1/2013 11:55 AM
 
Ok, so I'm not sure if I am on the right track here but, in this line of code:

If Not UserInfo.IsSuperUser And Not Page.User.IsInRole("demouser") And Not Page.User.IsInRole("dietarymanager") And Not Page.User.IsInRole("neel") Then Response.Redirect(ApplicationURL())

It is basically saying that if the user is not one of these roles, then redirect them to the home page.  The problem is that it works properly as a superuser but not as any other user.  When I ran it in debug vb said that the other user roles were all returning a false even when I was in fact logged in as a dietarymanager and neel.  Could this be something within the module permissions I need to look at more closely?  Or is this another logic issue?

Thanks again for any help.
 
New Post
3/1/2013 2:54 PM
 
I switched the previous code to

If DotNetNuke.Security.PortalSecurity.IsInRole("neel") = False _
    And DotNetNuke.Security.PortalSecurity.IsInRole("demouser") = False _
    And DotNetNuke.Security.PortalSecurity.IsInRole("dietarymanager") = False Then
Response.Redirect(ApplicationURL())

This got me around the refresh issue with the different roles, not sure its exactly the fix I was looking for but it works for now.
The next thing was with the Readmit and Delete links within the datagrid.  These were issues with the stored procedures themselves and nothing to do with the actual modules.  Basically was calling columns out of order in the stored procedure.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Navigation between modules?Navigation between modules?


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