Mitchel's Forums

Subject: URGENT: Using DNN LabelControl, TextEditor etc. controls in WAP projects
Prev Next
You are not authorized to post a reply.

AuthorMessages
r_honeyUser is Offline
Regular User
Regular User
Posts:73

06/13/2008 8:20 AM  

I am developing a DNN WAP module. As outlined in Michael Washington's DNN Help Website (http://www.adefwebserver.com/DotNetNukeHELP/DNN4_WAP/), I create my Module Project in the DNN Solution under DesktopModules folder.

However, when I register a DNN Control from "~/controls/" folder in my project

(e.g. <%@ Register Src="~/controls/labelcontrol.ascx" TagPrefix="dnn" TagName="Label" %>)

VS shows a error, that the control is not defined. I guess this is because, the control does not belong to the same project as my Module. Is that true??

How do I get rid of this error?? I am also trying to use controls from "~/admin/Users" folder (like Profile.ascx) in my custom module, but I get the same error.

I guess there should be a way around this, because all DNN modules use these controls, and most of them are WAP compiled...

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

06/13/2008 10:01 AM  
VS will show an error, however, they still work and intellisense will still update and show the proper information.

All of my modules show the error, but all work just as expected.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
r_honeyUser is Offline
Regular User
Regular User
Posts:73

06/13/2008 12:13 PM  

But my WAP module is not compiling???

Remember, I mentioned, I am using "~/admin/users/" controls also in my module, and I am getting following errors:

Error    20    Type 'DotNetNuke.Modules.Admin.Users.Password' is not defined.   
Error    21    Type 'DotNetNuke.Modules.Admin.Security.MemberServices' is not defined.   
Error    23    Type 'Password.PasswordUpdatedEventArgs' is not defined.   
Error    24    Type 'Password.PasswordUpdatedEventArgs' is not defined.   
Error    25    Type 'Admin.Security.MemberServices.SubscriptionUpdatedEventArgs' is not defined.   
Error    26    Type 'DotNetNuke.Modules.Admin.Users.User' is not defined.   
Error    27    Type 'DotNetNuke.Modules.Admin.Users.Membership' is not defined.   

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

06/16/2008 10:05 AM  
Ah, the admin controls might be causing some issues....

Ensure that you have proper references to all assemblies that are related to the controls....

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
r_honeyUser is Offline
Regular User
Regular User
Posts:73

06/16/2008 10:47 AM  

Mitch, all admin controls are WSP developed, none has any compiled assembly related to it.

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

06/17/2008 4:43 PM  
Hm...I am not 100% sure on the nature of this error then...

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > URGENT: Using DNN LabelControl, TextEditor etc. controls in WAP projects



ActiveForums 3.7