s
Contact Login Register
h M

Data Springs Modules Community Questions & Answers

Registration Error when using ADD Role on submission

I get the following error when using the ADD ROLE on submission.

Any help or ideas would be appreciated.

----

Server Error in '/' Application.
Unable to cast object of type 'System.Collections.Generic.List`1[DotNetNuke.Entities.Users.UserRoleInfo]' to type 'System.String[]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[DotNetNuke.Entities.Users.UserRoleInfo]' to type 'System.String[]'.

Source Error:


[No relevant source lines]

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6ebbfec5\cc0135ac\App_Web_oeqf1z4t.0.cs    Line: 0

Stack Trace:


[InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[DotNetNuke.Entities.Users.UserRoleInfo]' to type 'System.String[]'.]
   DataSprings.Modules.DynamicRegistration.DynamicRegistration.ProcessEvents(Int32 MyUserID, Boolean blnCancel, Boolean blnRedirectOnly, Boolean blnPaymentGateway, String strPaymentStatus, String strResponseID, Int32 intPaymentUserID) +60231
   DataSprings.Modules.DynamicRegistration.DynamicRegistration.ExecuteRegistration(Boolean ProcessPaymentNotification, String strResponseID) +6752
   DataSprings.Modules.DynamicRegistration.DynamicRegistration.lnkRegister_Click(Object sender, EventArgs e) +13
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +121
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +108
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9856488
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1696

[PageLoadException: Unable to cast object of type 'System.Collections.Generic.List`1[DotNetNuke.Entities.Users.UserRoleInfo]' to type 'System.String[]'.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +451
   DotNetNuke.Framework.PageBase. (EventArgs e) +471
   System.Web.UI.Page.HandleError(Exception e) +86
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6787
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +250
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
   System.Web.UI.Page.ProcessRequest(HttpContext context) +62
   ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6ebbfec5\cc0135ac\App_Web_oeqf1z4t.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4210.0


 

 

 

Dynamic Registration
critical error has occurred
asked 2/10/2021
david coulter41
david  coulter
  • I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy FOR MORE DETAILS.
    - Ginnynw 4/13/2022

0 Answers

Your Answer

In order to provide an answer to this question, you must Login

I am flagging this question because...

10 inform moderator flags remaining

I am deleting this question because...

I am flagging this answer because...

10 inform moderator flags remaining

Flagging a Post

You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.

I am deleting this answer because...

Looking for a DNN Module?

If you’ve used Data Springs modules before, you know how easy they are to install and use. We have built each individual module in our collection with integration in mind, so when you opt for Collection 7.0 you’ll be able to install our entire toolbox quickly and start putting it to work for your business today.Yes, in the blink of an eye you will arrive on the scene like a Superhero!

Data Springs has long been recognized as a leader in the DotNetNuke (DNN) community through hard work, integrity, and commitment. We’ve helped thousands of people POWER UP their website and our Collection 7.0 will do the same for you.

You deserve more than just an average website. You deserve a MACHINE!

Enter your email below AND grab your spot in our big giveaway!

The winner will receive the entire Data Springs Collection 7.0 - Designed to get your website up and running like a DNN superhero (spandex not included).

Subscribe