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 ...The 7.2.1 installer stops at 35% ERROR:Attempted to divide by zero.The 7.2.1 installer stops at 35% ERROR:Attempted to divide by zero.
Previous
 
Next
New Post
3/11/2014 8:29 AM
 

As one might expect - you were right!

 ... I'd missed out step F3. [   such a small error :)  ] . Text blindness has a lot to answer for....

I don't usually use the dnn source code, but I wanted to look at the way the taxonomy library code was being used ...

 Thanks for the continued support.

regards,
Duncan.

 
New Post
3/28/2014 8:47 PM
 

Cathal,

Just thought I'd mention the procedure I follow doesn't say to build the code in release mode, though that makes perfect sense.  I'm the same guy with the IIS issues, got that solved obviously since I'm up to THIS post. :)  The issue there is, and I'll put this as a separate reply, is that building the site with localhost was causing the default "default" site -- the one live one we don't have assigned to an IP yet, to confuse itself with the new site.  The errors were coming from ITS web.config.  Again, more when I reply to the other post.

I'm following the full source install procedure at http://www.dnnsoftware.com/wiki/page/how-to-install-the-source-package-of-dotnetnuke and it says:

1. Now you can open the solution file you just modified in Visual Studio. It is a large and complex multiple-project solution so be patient and allow all of the projects to be loaded. Since project files may import several custom MS Build target files you may receive one or more warnings regarding the security risk of modified build files. If you downloaded your DotNetNuke source package from the CodePlex downloads page, you can safely ignore those warnings. If you have selected an ASP.Net v 4.0 App Pool in IIS, you may see a dialog box indicating that the website is configured for a different (v 4.0) of ASP.Net than the solution and project files (v 2.0/3.5). DO NOT select “Yes” to change the target version of the solution to v 4.0 unless you understand that you will be creating a non-standard build of the DotNetNuke library and other projects and fully understand the consequences of such a change.
2. The DotNetNuke source packages do NOT include compiled assemblies of all of the various projects in the Website\bin folder (and in v 5.06.00 and later do not even include a Website\bin folder). Therefore you must build the solution and its multiple-projects before starting the actual installation procedure. If you take a look in the solution’s Build Configuration Manager you will note that the website itself (http://localhost/ . . .) is not included in the build. This is correct as it is not currently possible to pre-compile the website itself – only the library code and the various support projects. The website code will be just-in-time compiled when it is loaded upon the first visit and on subsequent visits if it the ASP.Net worker process has been unloaded or recycled.
3. Finally, click on Build … Build Solution. All projects in the solution should now build without error – but perhaps with a few warnings regarding methods marked obsolete, etc. which can be ignored.
4. Close Visual Studio and save the solution/project files if so prompted.

 
New Post
3/29/2014 1:11 AM
 
drop your database and create new one and copy fresh install folder and try to build first in visual studo and then try installing..... it will solve your problem
 
New Post
6/13/2014 1:12 AM
 
cathal connolly wrote:
FYI the source package is not installable by default - you must compile in release mode to build the various dlls for the project (this allows vs.net to optimize them for your os version/.net version and whether it is 32 or 64bit) - there are some notes on this at http://www.dnnsoftware.com/wiki/page/...

I am back to this because I installed the 7.3 from the source code and got the divide by zero error. I remembered that I had to copy the install zip first.

Anyway, the link mentioned is outdated and doesn't include the stuff Cathal pointed out. It doesn't mention you have to compile in release mode. In fact you don't have to. My 7.2.2 installation is based on the source package and all the projects are in debug mode. Why do you have to build in release mode? Debug or release mode create the same assemblies. Optimizations doesn't affect how DNN works. The wiki page is  also outdated because it doesn't mention dnndev.me.  DotNetNuke_Community_2008 & DotNetNuke_Community.sln don't exist anymore.

There's no mention anywhere on this site what is actually the source of the divide by zero error. Just what the workaround is.

Last, whether the installation had errors or was successful, the installation page always says 'No Installation Log'. Not helpful!

 

 

 

 

 

 

 


 

 
New Post
6/13/2014 5:59 PM
 
Tony Henrich wrote:

cathal connolly wrote:

FYI the source package is not installable by default - you must compile in release mode to build the various dlls for the project (this allows vs.net to optimize them for your os version/.net version and whether it is 32 or 64bit) - there are some notes on this at http://www.dnnsoftware.com/wiki/page/...

I am back to this because I installed the 7.3 from the source code and got the divide by zero error. I remembered that I had to copy the install zip first.

Anyway, the link mentioned is outdated and doesn't include the stuff Cathal pointed out. It doesn't mention you have to compile in release mode. In fact you don't have to. My 7.2.2 installation is based on the source package and all the projects are in debug mode. Why do you have to build in release mode? Debug or release mode create the same assemblies. Optimizations doesn't affect how DNN works. The wiki page is  also outdated because it doesn't mention dnndev.me.  DotNetNuke_Community_2008 & DotNetNuke_Community.sln don't exist anymore.

There's no mention anywhere on this site what is actually the source of the divide by zero error. Just what the workaround is.

Last, whether the installation had errors or was successful, the installation page always says 'No Installation Log'. Not helpful!

 

 

 

 

 

 

 



 

 release and debug do NOT do the same thing - they are separate configurations intended for different usages. When you build in release mode, all the projects are compiled, but in addition the MSbuild tasks are triggered which package the modules and copy them into the website "install" folders. In addition, any "external" packages such as DDRmenu are also copied across i.e. "release" mode ensures that the website folder contains a site ready to be installed. Finally, "release" mode copies release.config to create the web.config file.

When you use "debug" mode, the projects are compiled, and the project assemblies are copied across to the "website" folder i.e. the dll's not the zip file installs.  "debug" mode copies development.config to create the web.config file.

Both configurations also create pdb debug files and copy those over.

The 35% error is causing by someone hitting the site and treating it as a fresh install (i.e one created by "release" mode) when in fact it does not contain expected (dependant) packages (as it was only compiled in "debug" mode) e.g. it doesn't contain DDRmenu for a start so even if it completed you would not have a menu.

This is why when you use a source package you must build in "release" mode to ensure all the *.zip and *.resources files are in the website/install folder structure otherwise the installer hits a point that it expects something has been installed and it has not -AFAIR the installer has passed the point where it installs all the *.zip files from the install/modules folder and assumes that the html module will be installed and attempts to add html content and borks as it cannot find the html module as expected.

Most of the engineers who work with the solution package use simple scripts which either uncompress a source zip or pull down the latest from githib, build in "release" mode, delete the web.config and build in "debug" mode and then hit localhost/dotnetnuke_platform to install. That way we have a fresh build, which installs with all the dependencies, but also has debug set in web.config .


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...The 7.2.1 installer stops at 35% ERROR:Attempted to divide by zero.The 7.2.1 installer stops at 35% ERROR:Attempted to divide by zero.


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