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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...WAP project with LINQ - canWAP project with LINQ - can't seem to run project in DesktopModules/Module folder
Previous
 
Next
New Post
2/17/2009 7:49 PM
 

This is concerning the advantages & disadvantages of storing the VS project for a DNN module in the DesktopModules/Module folder of your dev site, or completely outside the site.

I have seen a number of tutorials recommending the former, and I used to do this, but hit a problem in my latest project which uses LINQ to SQL. By the way I am using VWD 2008 SP1, and the project is a WAP project in C#.

In VWD 2008 when you create a new WAP project, a web.config file is automatically created in your project folder. I used to find I could delete this, however it seems essential for LINQ to work. If I remove it, all LINQ controls (such as asp:LinqDataSource) become unrecognised, and the .dbml designer stops working.

However, if I leave the web.config file alone, the DNN site cannot run. It throws some error (something about virtual directories not being configured as applications - whatever it is it indicates that you have more than 1 web.config in the application).

So the only solution seems to move the project outside the website. The incovenience of this is that I have to copy files into the site to test after each build. I also can't seem to get debugging to work. I have configured the project per Charles Nurse's guide, but when I attempt to save the Web settings I am always prompted to create a virtual directory.

So, do you know of any way I can move the project back into the DesktopModules/Module folder and have it work, or how to get debugging working with it outside the website?

Many thanks.

 
New Post
3/7/2009 9:24 AM
 

Laurence, has someone contacted you privately on this? (seeing that you're on a project team)

I am having EXACTLY the same issue and need some guidance. I've always used WAP and recently moved up to VS2008.

Even if it means NOT using LINQ and just stick to the std DNN data provider model. I don't care, I just want to create modules using WAP in VS2008.

Any ideas, links, being pointed in the right direction would be great!
 

THANKS

 

 
New Post
3/9/2009 2:24 PM
 

You need to delete the web.config file that VS adds and modify the DNN web.config manually or you could use MIchael Washington's tool.

www.adefwebserver.com/DotNetNukeHELP/Misc/LinqPrep/

Or move to DNN 5.0 .Net3.5 which I belive can take care of that for you.

 

 
New Post
3/13/2009 5:52 AM
 

Lindsay - sorry, no joy yet. I still have the same problems - am storing LINQ WAP modules outside DesktopModules and can't get debugging to work :(

Bobby - if you delete the web.config file that VS adds it just comes back later as you are working on the project. Also, I have already updated the site's web.config using LinqPrep.

If anyone has any insight into this I would really appreciate it.

 
New Post
3/13/2009 8:21 AM
 

I must admit that I have never developed with this sort of project structure; my data mediation almost always resides in a separate assembly.  I also don't believe that I've ever once used a LinqDataSource.

That said, I wonder if you might be able to work around this issue with a post-build action (or msbuild modification) that removes/renames the web.config.  Also, it would be useful to determine exactly what in your web.config is needed in your environment; many times you can declaratively specify these values directly in an ASCX control (such as registering the Linq presentation assembly).  

Finally, you might consider a workaround where you create a separate class library in a subdirectory of your module, thereby avoiding many of these issues.

Just a few ideas I thought you might want to explore -- hope they help!

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...WAP project with LINQ - canWAP project with LINQ - can't seem to run project in DesktopModules/Module folder


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