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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using DNN LabelControl, TextEditor etc. controls in WAP projectsUsing DNN LabelControl, TextEditor etc. controls in WAP projects
Previous
 
Next
New Post
6/13/2008 8:28 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...

 
New Post
6/13/2008 9:59 AM
 

The module should still compile so long as your module resides in the DesktopModules folder when you are developing it... the error is more of a warning and once you actually run the module it loads in the controls just fine and everything works dandy.  I'll agree that it is an annoying warning especially when your module is chock-full of those controls, but it is just something I've learned to live with and ignore.

On that note, there *may* be a way to get rid of the warning message in the WAP mode, but I haven't gone digging for it.  Maybe somebody else here can shed some light?


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
6/13/2008 12:24 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.   

 
New Post
6/14/2008 11:00 AM
 

Hi r_honey,

I faced the same dilemma yesterday, while developing my first wap. I found out that you have to create an app under IIS because the meaning of the "~" is the app's root, then set http://localhost/mytestdnn (or whatever virtual dir you created) as the startup url of the project. Let me know if this makes the trick for you too.

Best regards,
Dario Rossa

 
New Post
6/15/2008 12:11 PM
 

Hi Dario,

I believe your solution should work. I gave a quick try to it, and could not get the settings configured properly. Can you detail the exact settings & where to set them??

Thanx for taking time to reply, but the following problem

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/65365/scope/posts/threadpage/2/Default.aspx

has taken my project off-schedule, and so I dont have time to experiment.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using DNN LabelControl, TextEditor etc. controls in WAP projectsUsing DNN LabelControl, TextEditor etc. controls in WAP projects


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