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 StartedNew to DNN Plat...New to DNN Plat...How To Open An Existing DotNetNuke Website?How To Open An Existing DotNetNuke Website?
Previous
 
Next
New Post
3/6/2015 10:37 PM
 
DNN and Visual Studio - the 1 line guide.

You should NEVER try to execute, compile or run a live DNN installation from inside VISUAL STUDIO - it will not work.

The more verbose conversation ...

DNN is built around 2 separate and very different components.

The first component is a set of compiled libraries that form the core resources - these are represented by dotnetnuke.dll and a couple of supporting dll libraries.
If you ever download the dnn source package these are what you will find the code for. This is source code is built and compiled in visual studio as a (WAP) Web Application Project.

The second component is a Web Site Project (WSP) which contains a lot of front end site layout components and which consumes the core libraries.
When you download the dnn install package - this is the main component of the download - PLUS a copy of the compiled libraries from the first component.
The thing to understand about WSP systems is that they are NEVER pre-compiled as a rule - instead - the asp.net runtime engine compile's the elements dynamically a runtime.

If you try to OPEN a WSP project in visual studio - and then hit RUN - what will happen is that by default visual studio will try to start compiling the WSP pages - and will eventually error out - as there are a number of elements that are just not designed to work that way. (Yes there are ways to work with WSP sites in VS - you turn of the compile before execute options)

------------------------------

But, regardless the real question should be - what exactly are you trying to achieve.

Or more to the point - what do you exactly mean by DEVELOP in DOTNETNUKE.

------------------------------

At a guess 99% of all DNN web sites are run by people that have never done a line of coding or even know what visual studio is.
And of the remaining 1% less that maybe 1% of those would ever have a need to actually delve into the dnn source code to recompile it.

The reason for this - is that DNN is based largely on the concept of modules - and for most people the wealth of existing modules is more than they ever need to consider using.

And even for those that have some very specific site needs - just about any possible new feature or function can be implemented by building an extension module or component that plugs into the core system.

-------------------------------

So to "develop" or make changes to a DNN website for most people means logging in and making changing the content - by adding or editing existing tabs, and by adding or editing the different modules placed on those tabs - and by extension editing the content published by those modules.

All this is done using a web browser while connected to a running web site.

About the only time you would ever require visual studio is if you had a custom module which you specially needed to alter some functionality of - in which case you would do some by editing the MODULE source code - and compiling it if required depending on if the module is WAP or WSP based. At not time though would you need to actually touch DNN itself as a rule.

------------------------------------

SO to wrap this all up - what you need to do - is get a copy of the WEB SITE running and then start to experiment.

log into the live website
go into admin and add an additional alias something like devdnn.me (this will let you access the test side u create)

Copy the MS SQL database
Copy all the files from the root hosting point down

create a new MS SQL database - and import the tables etc
create a new root hosting folder and copy all the files in
make sure the folder has full read/write permissions allocated to asp.net

edit the web.config in the test folder to point to the new database table

using IIS - configure a new website and point to the new root folder
set the bindings to devdnn.me

-----

if you followed the steps - you should now be able to browse to devdnn.me and see a full copy of your live site running.

Westa




 
New Post
6/12/2015 4:54 AM
 
Hello everyone,

I have an existing DNN Project with custom modules in the DesktopModules folder and of course a Database running on a webserver.
Now I have made a copy of the whole project on my local machine and need to start developing a new modul in Visual Studio 2012 or 2013 on my local machine using IIS Express or the Development Server from Visual Studio. Unfortunately I'm unable to make the project run on my machine. After some trail and error I can see the folders and files of the project in the browser but no real content.

So it seems I still have some errors in the properties of the modules in Visual Studio can someone please provide me with some informations about the correct settings to make the stuff run or post a link to a tutorial.

I searched a lot but so far I was unable to find the needed informations.

So long !
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How To Open An Existing DotNetNuke Website?How To Open An Existing DotNetNuke Website?


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