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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Visual Studio 2010 Create Module Project ErrorVisual Studio 2010 Create Module Project Error
Previous
 
Next
New Post
8/10/2012 7:48 PM
 

Hello,

I cannot create a DNN module project inVisual Studio 2010.  I have read andwatched tutorials without being able to succeed.  Why does the module project look for http://dnndev/desktopmodules  etc… My website is not under “dnndev”

 Install and configure DotNetNuke 6.2.2

  1. Install package is: DotNetNuke_Community_06.02.02_Install.zip
  1. Unzip install package to: D:\My Websites\dnntest
  1. Configure IIS.
    1. Add website…
    2. Site name: dnntest
    3. Physical path: D:\My Websites\dnntest
    4. Host name: dnntest
    5. App Pool  - .NET Framework: v4.0.30319
    1. Managed pipeline mode: Integrated
  1. Edited: System32\drivers\etc\hosts = 127.0.0.1 dnntest
  1. Set security permissions on D:\My Websites\dnntest = iis apppool\dnntest
  1. Start website: http://dnntest/
  1. Installation wizard: Auto

 

Create a module project in Visual Studio2010

  1. Copied the DNN C# template to D:\My Data\Visual Studio\2010\Templates\ProjectTemplates\Visual C#\Web\ DotNetNuke C_ Compiled Module.zip
  2. Start Visual Studio 2010
  3. New Project
    1. Web Template: DotNetNuke C# Compiled Module
    2. Location: D:\My Websites\dnntest\DesktopModules\
    3. Name: ModuleTest
    4. .Net Framework 3.5
    5. Unchecked: Create directory for solution
    6. Click OK

 

At this point VisualStudio throws an error popup message, “The Web Application Project ModuleTestis configured to use IIS. The Web server http://dnndev/desktopmodules/ModuleTe...could not be found.”

 

How do I get pastthis error?

 

Thank you!

David

 
New Post
8/12/2012 12:47 PM
 

Well, I found a way to resolve the problem and will post it here.  I hope this is not just a hack, so if anyone has a better solution then please let me know.  This works with Visual Studio 2010 and DotNetNuke v6.2.2.

1. Unzip "DotNetNuke C_ CompiledModule.zip" and extract the files.
2. You will see a file called, "ModuleName.csproj".
3. Open this file in Notepad and find “dnndev” in two places.
4. Change it to suit your needs.
5. Save the project file and zip the files back up.
6. Put the zip file into the Visual Studio 2010 template folder as usual.

I have been frustrated that there is no documentation alerting one to edit the Visual Studio project file, because it is not reasonable to assume everyone will host their website at http://dnndev/. I would like to see instructions added to the web page (linked above), "Customizing a Visual Studio Project Template."

 
New Post
8/13/2012 12:29 PM
 

I found documentation on how to customize the templates when I was originally deploying.  My problem remains that the http://dnndev site exists and is available, but Visual Studio does not like the address.

Is the URL you are using in your template/projects the root DNN site, or is it something else?

Thanks,

Kyle

 
New Post
12/14/2012 3:44 PM
 
I got past it by disabling the virtual tie in the project.  That allowed it to be added to the solution.  I can attach to the correct IIS worker process to debug.  Since deployment really happens at the file system level, the web setting was more flexible.  I do have my site as the custom web server for the project.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Visual Studio 2010 Create Module Project ErrorVisual Studio 2010 Create Module Project Error


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