Paul Martin
wading in the water Posts:24
|
09-23-2010 11:32 AM |
|
DNN: 05.04.04 (2)
Dynamic Login: 3.30.10
Dynamic Registration: 4.0.71
I have a portion of my site that requires a specific role. I am using Dynamic Registration and Dynamic Login to set the permission for the user after completing a registration page for this part of the site. (This is not the general registration page for the entire site.)
When I click on the Register link as an unauthorized user, I am directed to the home page of my site rather than the Dynamic Registration. (The send password link works fine and so does the actual login.)
In Dynamic Login, I set Force Profile Change / Password Update Page-->Redirect Invalid Profile to my DynReg page. I also have Keep User on same page as Dynamic Login module set to true so I have no Default Redirect Link set.
In reading the forums, I added the DNN Login for Administrator view only, but still the Register link goes to the home page. No events are recorded in the Event Viewer for any of these scenarios.
I think this worked fine before I updated Dynamic Registration last night. Any ideas on how to get the Register link to arrive at my register page? |
|
|
|
|
Paul Martin
wading in the water Posts:24
|
09-24-2010 04:16 AM |
|
Further testing: I tried adding a Dynamic LogIn module to the regular DNN Login page (with the DNN Login module still active). I set up the module and clicked on Register while not authenticated and received a DNN error. Any ideas on ohow to get the Register link to work?
Here's the event viewer output:
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB0.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a401a89e-39b1-409b-a14e-40e79a5e6484
InnerException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Configuration.MachineKeySection.GetDecodedData
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 71.97.62.54 Port: 24680 User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB0.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C) ViewState: /wEPDwULLTE2NDIyOTEzMjkPZBYGZg8WAh4EVGV4dAV5PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25hbC5kdGQiPmQCAQ9kFg4CBA8WAh4HVmlzaWJsZWhkAgUPFgIeB2NvbnRlbnQFEFVzZXIgbG9nIGluIHBhZ2VkAgYPFgIfAgWTA2Fkdm9jYWNlLCBtZWRpYSwgYWR2b2NhY3ksIGNocmlzdGlhbiwgY2hyaXN0aWFuIHJhZGlvLCB1bmRlcndyaXRpbmcsIG5vbi1jb21tZXJjaWFsLCBuY2UsIG5vbmNvbW1lcmNpYWwsIG5vbiBjb21tZXJjaWFsLCBidXNpbmVzcyBkZXZlbG9wbWVudCwgbmF0aW9uYWwgcmVwcmVzZW50YXRpdmUsIHNhbGVzIHJlcHJlc2VudGF0aXZlLCBuYXRpb25hbCBzYWxlcywgbmF0aW9uYWwgYnVzaW5lc3MgZGV2ZWxvcG1lbnQsIGJyb2FkY2FzdCwgbGlzdGVuZXIgc3VwcG9ydGVkLCBsaXN0ZW5lci1zdXBwb3J0ZWQsIG1ham9yIGRvbm9yLCBtYWpvciBnaWZ0LCBsYXJnZSBnaWZ0LCBzYWxlcywgYWR2ZXJ0aXNpbmcsIHNwb25zb3JzaGlwLCB... ---> System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
|
|
|
|
|
Candace
river guide Posts:2431
|
09-27-2010 10:39 AM |
|
Hi Paul,
What do you have as your Registration Page and User Profile Page under Admin > Site Settings > Advanced Site Settings > Page Management?
Also, what do you have as your Login page? Thanks!
Candace |
|
|
|
|
Paul Martin
wading in the water Posts:24
|
09-27-2010 12:01 PM |
|
Thanks, Candace. Registration Page: Log In: Log In (DNN page) User Profile Page: User Profile I'm trying to have more than one Registration Page. Each one is a passage to content where specific permissions are required. Each of the Registration Pages will update the permissions, based upon the passage that the user is following. Just to be sure, here: Can DynReg have more than one Registration Page? If so, Can Dyn Login be placed in more than one place so that it can launch a user dow the 'passage'? (e.g., they login and get the content if the permission is already set; if the permission isn't set, the user will see a reg page that will set the permissions once the appropriate data is entered. If the user chooses to be a new registrant, then the new reg page will set the permissions) |
|
|
|
|
Chad Nash Posts:5260
|
09-27-2010 02:06 PM |
|
Hi guys, I do think that this is a bug... the code that generates this link (and that runs on many different versions of DNN) is apparently different depending on your DNN version and especially with some of the latest versions of DNN. My recommendation (especially until we can get a patch out) is to just use a standard hyperlink in the template and then make the link go to the correct page. Basically Dynamic Login provides the tokens for the link however since you have full WYSIWYG access you should be able to just create a hyperlink that goes to that page. Will this work as a work around for you? Thanks, Chad |
|
|
|
|
Paul Martin
wading in the water Posts:24
|
09-27-2010 03:50 PM |
|
Thanks for the idea, Chad. Unfortunately, I discovered some unexpected behaviors--perhaps from the Dynamic Registration module. When I click a link that directs to the registration page, I am presented with a totally different page. I had the DynReg module redirect pages set with the option 'Redirect to previous url after registration/update'. I have since tested with click the Redirect Registration and Update options to a URL (link to external resource), but still get directed to the same unintended page. Could the entire redirect piece for both Dyn Login and Dyn Registration be impacted? Can I try something else? (I'm a bit panicky because we have a new product launch slated for next week that requires online registration before we can deliver the product.) |
|
|
|
|
Chad Nash Posts:5260
|
09-28-2010 03:03 PM |
|
Hi Paul, I don't think we will be able to review this and get a patch out by then... Do you always want the user to be redirected to that page if they click on Register? If so you can change the Register Hyperlink to pass the "ReturnURL". If you notice the way Dynamic Registration and DNN work with the return URL is that its passed along the querystring as the querystring parameter "ReturnURL". You might click on 'Register' on our web site to get an idea for how this works and notice that it passes it. You could just include your hyperlink to already pass that in. Thanks, Chad |
|
|
|
|
Paul Martin
wading in the water Posts:24
|
10-03-2010 02:09 AM |
|
Thanks for the suggestion, Chad. This problem may have another cause. I suspect that the registration form is shunting to another page because the form was originally created in a previous version of Dyn Reg and may have been corrupted during the upgrade process. I am creating a new registration page to test. (Unfortunately, I'm running into new challenges with Dyn Reg which I will post on that forum.) |
|
|
|
|