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...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationProblems in Custome Module SqlDataProvider and DataProviderProblems in Custome Module SqlDataProvider and DataProvider
Previous
 
Next
New Post
12/4/2008 2:18 AM
 

 

i want to get records from database in other project. i add app_code.dll reference in this project but when i call the Module classes i give me such error

Unable to cast object of type 'PLM.Modules.GroupManagement.SqlDataProvider' to type 'PLM.Modules.GroupManagement.DataProvider'.

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 'PLM.Modules.GroupManagement.SqlDataProvider' to type 'PLM.Modules.GroupManagement.DataProvider'.

Source Error:

Line 47:             Dim lstgroup As List(Of GroupManagementInfo)
Line 48: 
Line 49:             lstgroup = group.SelectAllGroupManagements() Line 50: 
Line 51:             'Dim gr As New GroupManagementInfo

Source File: C:\DotNetNuke\Website\DesktopModules\AuthenticationServices\ActiveDirectory\WindowsSignin.aspx.vb    Line: 49

Stack Trace:

[InvalidCastException: Unable to cast object of type 'PLM.Modules.GroupManagement.SqlDataProvider' to type 'PLM.Modules.GroupManagement.DataProvider'.]
   PLM.Modules.GroupManagement.DataProvider.CreateProvider() +66
   PLM.Modules.GroupManagement.DataProvider..cctor() +13

[TypeInitializationException: The type initializer for 'PLM.Modules.GroupManagement.DataProvider' threw an exception.]
   PLM.Modules.GroupManagement.GroupManagementController.SelectAllGroupManagements() +14
   DotNetNuke.Authentication.ActiveDirectory.WindowsSignin.Page_Init(Object sender, EventArgs e) in C:\DotNetNuke\Website\DesktopModules\AuthenticationServices\ActiveDirectory\WindowsSignin.aspx.vb:49
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +9
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834

 
New Post
12/5/2008 1:40 AM
 

You would be better off creating your own provider to pull that information in as you're going to end up having to change the AD Provider so much it wouldn't be recognizable.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationProblems in Custome Module SqlDataProvider and DataProviderProblems in Custome Module SqlDataProvider and DataProvider


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