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.0Visual Studio and the new Compiled Modules templateVisual Studio and the new Compiled Modules template
Previous
 
Next
New Post
3/6/2007 10:28 AM
 

I am having an interesting time with DNN and using the new compiled modules template. I have read the ADefwebserver tutorial on using the new (er...or old)  Web Application Projects (WAP) way of ASP developement. But I have several oddities and strangenesses that I was wondering if anyone could shed some light on.

I am using Visual Studio 2005 Team Edition with the whole Team System set up in place. I started my application as the DNN 4.4.1 Starter kit, and I place it in its own folder under Inetpub\wwwroot. It is set up as a web application in IIS (at least to the best of my ability. I have had some trouble with that as well). After I used the Starter kit by going to File - New - Website, and maded sure the website ran in IE, I went to Project - New Item - and chose the New DNN Compiled Module template. Visual Studio asked where I wanted the project placed. After reading the ADefwebserver tutorial I now knew to put it under the Desktop Modules folder under Inetpub\wwwroot\AppName. Before that I had put them in other locations and then DNN never seemed to work with them.

Now a new solution is automatically created for me since I now have one project and one website in the solution. I had not originally opened the DNN solution that came with DNN, as I used the starter kit to create the web site. The interesting thing at this point is that each file that was created with the Compiled Module is listed twice in the solution. This is because each file is listed in the project I just created but its also listed under the Desktop Modules folder in the web site because it's physically under the Desktop Modules folder. You can't edit the same file from both places in the solution as you will get a message saying that the file is opened in another project. I find this "double listing" of a single source file to be odd, but, I assume, who ever wrote the Compiled Module template must know this. I can only assume that it's by design, but I think this is the beginning of Visual Studio getting confused.

At this point I have several issues with References but eventually I got it sorted out. I also reset the output directory for the compiled dll to the AppName/bin folder so that the web site could see it. DNN seemed to work before but sometimes my changes didn't seem to show up in other parts of the code.

I am trying to use Telerik controls and I found that I can't drag the RadGrid off the Toolbox and drop it on a View.ascx control from inside the project. I have to do it from the copy of View.ascx inside of the Desktop Modules\ModuleName folder. If I attempt to do it from the Project copy, I will get a Visual Studio error saying that the control can't be found in the 'Control Assembly'. The forums on the Telerik website say this is a Visual Studio problem. Maybe, but I still haven't seen a way to fix it.

In my solution I add another project, and I don't know if this problem is before or after I add the second project. But I start getting squiggly lines under the 'DataProvider' variable that says that it's ambiguous in the '<MyCompany>.Modules.<ModuleName> namespace. I have had a couple of projects within this solution that I have subsequently removed from the solution that had similiar names as the current projects but the names are not exactly the same. So I don't think this should have anything to do with this. But now I have two projects under DNN that both have two source files named exactly the same and both defining classes with the exact same name: DataProvider.vb and SqlDataProvider. They are under different namespaces at the class level, but the 'Root Namespace' under the Project properties tab was blanked out (as I followed the directions that the template gave after using the Compiled Module template. Don't know if this has anything to do with it or not)

Due to the above ambiguous problems I started messing with the namespaces at the class level. So instead of a 'Ticket' module having the original name of 'YourCompany.Module.Ticket' I changed it to 'BobsCompany.Module.Ticket'. At that point and even after recompiling, lots of references seem to get lost and I have to 'Clean' the solution and recompile several times before the references can resolve themselves. Sometimes I delete the relevent dlls in the bin directory also.

I guess the main thing I would like to clear up here is why is DataProvider ambiguous, and with what? And is this double listing of source files done on purpose and could that be the source of any of these problems? Isn't this Solution - Project structure a little strange?

Your thoughts would be appreciated...

Thanks,
Tom

 
New Post
3/6/2007 3:07 PM
 

Is this with the VB Compiled module or the C# one?  I had the same problem with the C# version.  I started to look into the issue, but side tracked.

Rob

 
New Post
3/8/2007 11:23 AM
 

This is with the VB compiled module.

I have also just discovered something else odd. I have been doing the visual design in the \DesktopModule directory under the web site rather than in the project as the Telerik controls can't display in the Compiled Module project. And anytime I put a control on the ascx the designer.vb file doesn't seem to know it exists and so I have to manually declare the same control in the code behind file. But I see now that if I either drop the control on the ascx in the project itself, or if after adding controls in the web site copy of the same file, that the designer file suddenly sees the controls and adds them to the designer.vb file. So it looks like I need to add the controls in the project file, then actually do the coding in the web site copy of the file.

Is this just me? The one reply to the original post said someone else was having the same trouble. Anyone else tried using the Starter kit and Compiled Modules together? Any experiences might be helpful in at least finding the best way to work in this situation.

 

Thanks,

Tom

 
New Post
3/9/2007 12:47 AM
 

I'd have to go back and read Michael's tutorials but I thought the Compiled Module template was supposed to used with the Source vs. the Starter Kit or Install version of DNN.

 
New Post
3/9/2007 12:37 PM
 
The compiled module can use any of the three versions, it's just using a dll reference.

Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Visual Studio and the new Compiled Modules templateVisual Studio and the new Compiled Modules template


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