DotNetNuke Hosting with ASPHostPortal.com

BLOG about DotNetNuke CMS, latest technology and Special DotNetNuke Hosting Package with ASPHostPortal.com

DotNetNUke - ASPHostPortal.com ::How To Reset the Passwords for All Users in a DNN Site

clock Junie 30, 2016 20:01 by author Armend

How To Reset the Passwords for All Users in a DNN Site

Now, before I go any further, it would be an absolute best practice to have and you’d be irresponsible if you didn’t have a formal policy to protect yourself and the clients you’re providing services to.  Have a clear understanding of how you accept sites, how you maintain them, and when you destroy your copies of them.  If you’re in support, I’d suggest destroying your backups as soon as your client confirms that their issue is solved.  The rule of thumb here, don’t keep copies.  Destroy them at your earliest convenience.  That being said, I am not a lawyer either, so you’ll want to review your policies and the laws in your region.

Resetting the Passwords for All Users

The context of this DNN tip is to allow you access to literally impersonate the users on a DNN site.  If the number of users is low, I’d suggest leaving this article now to use my DNN Demo Skin Objects.  Seriously, they’re pretty cool.  You should check them out.
Ideally, it would be convenient if you knew all of the passwords of the users on the site, but we won’t and we shouldn’t.  Instead, we’ll change every password for every user to “password” using the ASPX file below.  All you have to do is create an ASPX file in the root of the site, paste this code into it, and then view it in a web browser of your choice.  From there, it’s a single click to reset all of the passwords to “password.”

WARNING!!!  Never do this on a production site for any reason or put this file on a production server, anywhere.  Also, it should only be used for LEGAL and ETHICAL purposes.
The code below does the meat of the work for you, but you can just download the file by clicking the button below and save yourself some time.  

private int PortalId
    {
        get
        {
            return PortalController.GetCurrentPortalSettings().PortalId;
        }
    }
    protected void ProcessUsers(object sender, EventArgs e)
    {
        try
        {
            IterateThroughUsers();
        }
        catch (Exception ex)
        {
            Exceptions.ProcessModuleLoadException(this, ex, true);
        }
    }
    private void IterateThroughUsers()
    {
        var sb = new StringBuilder();
        var totalRecords = 0;
        sb.Append("
Updating Superusers
");
        var superUsers = UserController.GetUsers(false, true, Null.NullInteger);
        UpdateUserInfo(superUsers, ref sb);
        sb.Append("
Updating Normal Users
");
        var normalUsers = UserController.GetUsers(PortalId, -1, -1, ref totalRecords, true, false);
        UpdateUserInfo(normalUsers, ref sb);
        plcUserLog.Controls.Add(new LiteralControl(sb.ToString()));
    }
    private void UpdateUserInfo(ArrayList users, ref StringBuilder sb)
    {
        foreach (var user in users)
        {
            // convert the user object to UserInfo
            var oUser = (UserInfo)user;

            // update the password
            // REQUIRES: Change the enablePasswordRetrieval attribute to True in the web.config
            // for newer versions of DNN, use this:
            //MembershipProvider.Instance().ResetAndChangePassword(oUser, "password");
            var success = DotNetNuke.Security.Membership.MembershipProvider.Instance().ChangePassword(oUser, string.Empty, "password");
            sb.AppendFormat(
                success
                    ? "
{0} {1} ({2}) updated with a new password.
"
                    : "
{0} {1} ({2}) NOT UPDATED!
", oUser.FirstName, oUser.LastName,
                oUser.Username);
            // save the user
            UserController.UpdateUser(PortalId, oUser, false);
        }
    }

I hope this article helpful for you, happy Coding :)



ASPHostPortal.com Announces WordPress 4.5.3 Hosting Solution

clock Junie 28, 2016 23:03 by author Dan

ASPHostPortal.com is trusted web hosting provider since 2008. We strongly believe in high quality standards and hence, you’ll always find our services better than every other host in this industry. We understand the value of time and hence our ordering process is very simple. Customers can choose servers from multiple price levels to suit their business model. Today, we offer premium WordPress 4.5.3 hosting with fast speed, and uptime guarantee.

WordPress has grown into what would be called a content management system, or CMS. A CMS is a tool to store all of the information required for your website and present it to your visitors in a professional, organized way. Other content management systems include Joomla and Drupal, but the reality is that WordPress is the easiest to understand, the easiest to work with, and the most easily adaptable.

WordPress makes creating, editing and organising your content simple and, as a result, less time-consuming. That gives you more time to focus on other areas of your business. WordPress also gives you the chance to get a professional design to make your website look great - often free of charge.

The best way to see how WordPress streamlines setting up your website is to try it for yourself. WordPress is easy to install on your web hosting or, if you sign up on the WordPress website, you can explore its features with no set-up required.

ASPHostPortal.com provides Premium WordPress 4.5.3 Hosting plans on high performance servers and high-speed internet connection in the world. Every server is equipped with at least 2x Intel Xeon Quad-Core processors and massive amounts of memory. We are using SSD's for storage, which provides much higher performance in terms of I/O and data transfer speed. The servers are connected to the network using multiple 1Gbps ports (bond network). To learn more about their WordPress 4.5.3 Hosting, please visit http://asphostportal.com/WordPress-Hosting

About ASPHostPortal.com:

ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio, Latest ASP.NET Version, Latest ASP.NET MVC Version, Silverlight and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP, etc. Their service includes shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



DotNetNuke Hosting - ASPHostPortal.com :: 6 Steps to Make Your DotNetNuke Site SEO Friendly

clock Junie 28, 2016 21:55 by author Dan

Also often referred to as .NetNuke or DNN, DotNetNuke is essentially an open source platform for effective content management. Since this platform is proprietary, one can use it to create commercial as well as corporate websites e-publishing sites, extranets, intranets and even custom applications.

Microsoft SQL Server is the most commonly used database with this platform, however, DNN websites also often run on ASP.NET.

When one talks about website development using DNN, most DotNetNuke developers are of the opinion that this may not be the best platform since the basic integration comes with a range of issues related to search engine optimization. While this may be true to a certain extent, with DNN upgradation and customization, one can easily resolve these problems and develop a highly SEO friendly website for their business.

To be able to achieve this effectively, consider the following tips:

1. Remember to add meta-tags to all your web pages, especially for the description and page title. Make sure that the meta-tags include the primary keywords and that the titles are limited to 65 characters with all the spaces. It is strongly recommended that you select modules which help making the SEO simpler. A suggested module is that of Ventrian's News Articles which helps put in the title of the article on the page title automatically. You must also make sure that you provide unique page descriptions for each and every web page.

2. Make sure the content quality on your website maintains high standards. Make sure you select your keywords well. You can even do this with the help of one of the many tools that conduct comprehensive keyword research. Make sure that all the keywords you use are placed in a correct context. It is also important that you offer valuable and informative content to all your visitors.

3. With the help of your DotNetNuke Developers and SEO experts get as many quality back links as possible. This can also be pursued with the help of social media websites, e-publishing portals, blogs, forums and article directories. With the help of high quality and valuable content you will be able to attract attention from a range of high quality and authority websites from within your industry. While this may be a relatively time consuming process, the end result is totally worth the effort.

4. To create an SEO friendly website with DNN integration, it is important that you create an XML sitemap for your website. Make sure you submit this sitemap to all major search engines such as Yahoo!, Bing and Google. This sitemap is very different from the sitemap page that you create for your users. DNN helps create a sitemap file for submission dynamically.

5. DotNetNuke developers also need to create a robotos.txt file and place it in the root of your website. This will help the search engine spiders to crawl through your website.

6. Also have your developers write a decent and standard-complaint HTML code to help the spiders access and crawl through your website with ease. This can be done with the help of JavaScript and HTML layout tables and frames for your webpages.

Finally, make it a point to minimize all duplicate content by using the '301 redirect' effectively. With these tips you will be able to enhance the visibility of your DNN website.

DotNetNuke Hosting Recommendation

ASPHostPortal.com is Perfect, they have a suitable hosting plan for a starter in DotNetNuke Hosting. ASPHostPortal is the leading provider of Windows hosting and affordable ASP.NET Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.



DotNetNuke - ASPHostPortal.com :: Tips To Add jQuery To your DotNetNuke Skin

clock Junie 23, 2016 20:30 by author Armend

Tips To Add jQuery To your DotNetNuke Skin

At this point you’ll be hard pressed to find a site that does not use jQuery. It has become a requirement for many to bring flash like experience in the form of photo sliders or fast responding ajax applications.
Over that time adding jQuery to DotNetNuke (DNN) has not always been straight forward. DNN ships jQuery as part of the core framework and you might assume that it’s always available. But one of the most widely unknown issues is that it must be requested on every page in order for it to be available.

 

Common Symptoms:

  • Main menu does not show sub items.
  • Homepage slider does not rotate.
  • Layout is malformed.
  • Works fine when logged in but not when logged out.

When you login as an administrator jQuery will always be available since the control panel bar request it. However if you logout on that same page it might not have been requested by any module or skin object on that page.

Not Recommended Ways To Add jQuery

  • Do Not: Add script tag into page settings or in your skin file.
  • Why? This will potentially add multiple jQuery reference to your page. The real issue is if any plugins are registered between the first reference and the second reference they won’t be available after the second reference is instantiated.

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

Recommended Way To Add jQuery

In your skin file you you can reference and add the control for jQuery. This will ensure that jQuery is available on every single page and that it will only be referenced one time. You also get the benefit of the Client Dependency Framework (CDF).

<%@ Register TagPrefix="dnn" TagName="jQuery" src="~/Admin/Skins/jQuery.ascx" %>
<dnn:jQuery runat="server"></dnn:jQuery>

You can optionally add public properties to register jQuery UI, DNN jQuery Plugins and Hover Intent.

<dnn:jQuery runat="server" jQueryUI="true" DnnjQueryPlugins="true" jQueryHoverIntent="true"></dnn:jQuery>

Note: The search skin object will also register jQuery.



ASPHostPortal.com Announces Drupal 8.1.2 Hosting Solution

clock Junie 14, 2016 23:14 by author Dan

ASPHostPortal.com was established with the goal to provide high quality Drupal hosting services for everyone. They believe that providing high quality services should come at an affordable price. For this reason they have provided exceptional Drupal hosting plans, at the lowest prices, for the best services possible, on fastest nodes ever. Today, they offer Drupal 8.2.1 hosting with very easy installation.

Drupal is an open source CMS that gives its users a large degree of flexibility to modify, share, and distribute content (text, video, data, business services). Still, Drupal is more than a CMS. It is a Software as a Service (SaaS) solution that is perfect for a small business and scalable for any large enterprise.

Unlike many website content management systems that offer narrow frameworks and custom coding, Drupal comes out of the box ready to showcase your brand in an interactive, highly-useable environment. You can design your Drupal web design to match your business needs without many of the restrictions of previous CMS tools.

ASPHostPortal.com is a web hosting provider dedicated to providing high quality Drupal hosting at an affordable price. They care for the clients, ensuring each and every client is more than just satisfied day in and day out. They only use the best hardware, super fast network, covered by 24/7 Support Team. They have 12 world class data centers, located in USA, Europe, Asia and Australia. Each of locations will provide with amazing performance to make Drupal website more powerful. To learn more about their Drupal 8.1.2 Hosting, please visit http://asphostportal.com/Drupal-8-1-2-Hosting

About ASPHostPortal.com:
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio, Latest ASP.NET Version, Latest ASP.NET MVC Version, Silverlight and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP, etc. Their service includes shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



DotNetNUke - ASPHostPortal.com :: How To Create An Announcement With A Slider

clock Junie 8, 2016 20:57 by author Armend

DotNetNuke has come a long way recently with making things much more w3 compliant. This has allowed for more than just cleaner code; it has also allowed for much more control of your website through jQuery and CSS. Also, according to the forums, it looks like things are getting even better for compliance and control. In this tutorial, we will tell you how to create an announcement with a slider in DotNetNuke.

 

One of our favorite updates of DNN modules to this new compliance, is the DNN Announcements module. With the latest release, we now have the ability to set up the announcements as a list and apply some cool jQuery to it. We decided that we wanted to have the main image fade in and out and the title and description to slide in from the bottom. We came across the s3Slider jQuery plugin which seemed to provide exactly what I was looking for. We have outlined the steps below on how to add it to your DotNetNuke site.

The HTML

  • Add the Announcements module to your page.
  • Click the “Settings” link.
  • Expand the “Announcements Settings”
  • Remove exisiting code from Header Template, Item Template, and Footer Template.
  • In the “Header Template:” text area, enter the following code:

<div id="s3slider">
<ul id="s3sliderContent">

  • In the “Item Template:” text area, enter the following code:

If you want your description area to be at the top of the image area, use the class top in the span.
If you want your description area to be at the bottom of the image area, use the class bottom in the span as I have here.

<li class="s3sliderImage">
[IMAGESOURCE]<span class="bottom"><strong>[TITLE][EDIT]</strong><br />
[DESCRIPTION]<br />
[READMORE]</span>
</li>

  • In the “Footer Template:” text area, enter the following code:

<li class="clear s3sliderImage"></li>

  • Also, in the “Footer Template” area close out the ul and div that was started in the “Header Template” area

The CSS

In your skin.css file, insert the following styles: (note the widths and heights in the CSS. They need to be exactly the same as the image for the announcemnts.)

#s3slider { width: 500px; height: 242px; position: relative; overflow: hidden;}
#s3sliderContent { width: 500px; position: absolute; top: 0; margin-left: 0;}
.s3sliderImage { float: left; position: relative; display: none;}
.s3sliderImage span { position: absolute; font: 14px/21px Arial, Helvetica, sans-serif; padding: 10px 13px;  width: 500px; background-color: #000; filter: alpha(opacity=70); -moz-opacity: 0.7; -khtml-opacity: 0.7; opacity: 0.7; color: #fff; display: none;}
.top { top: 0; left: 0;}
.bottom { bottom: 0; left: 0;}

The jQuery

Now that we have all of that in place, we can add the jQuery to make it work.

  • Include a refrence to jQuery in your skin. This is already done if widgets are inabled on your site.
  • Download the files from the s3Slider site. http://www.serie3.info/s3slider (link opens in new window)
  • Upload the s3Slider.js file to your skin folder.
  • In your skin file (for example: skin.ascx), enter the following code: (you can put this at the top or the bottom of your skin)

<script type="text/javascript" src="<%= SkinPath%>s3Slider.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
       $('#s3slider').s3Slider({
          timeOut: 7000
       });
    });
</script>

  • Now just start adding the content of your announcements! Be sure to make your images the same size as what is set in the CSS.

DotNetNuke Hosting Recommendation

ASPHostPortal.com

ASPHostPortal.com is Perfect, they have a suitable hosting plan for a starter in DotNetNuke Hosting. ASPHostPortal is the leading provider of Windows hosting and affordable ASP.NET Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

 



DotnetNuke Hosting - ASPHostportal.com :: How to Integrate DotNetNuke with Sharepoint?

clock Junie 7, 2016 23:21 by author Dan

DotNetNuke has already established itself as one of the most popular as well as preferred web content management systems, based on Microsoft. Net. DotNetNuke websites are known to offer excellent user experience while also letting the brands enhance their identity. The recent trend is that of integrating this content management system with that of Microsoft SharePoint, of which the latest version has recently come out in the form of SharePoint 2013.

The integration is quite helpful for the businesses in a number of ways. Here is a brief overview of how the integration of DotNetNuke with SharePoint can be executed with success.

Effective Document Management with SharePoint

SharePoint is undoubtedly the most preferred as well as even sought after system for document management, helpful for businesses of varying size or nature. Now, this platform is built into cloud, which allows maximum storage and accessibility. Consequently, the professionals in a team have an opportunity to share as well as collaborate on apparently large amounts of data and documents. Additionally, the platform integrates effectively with Outlook and this enables enhancement of the significance of the social tools. All this leads to a carefully organized atmosphere. The team members can also convert the raw data into important interactive reports.

Integration of DotNetNuke with SharePoint

The best thing about integrating the web content management system with the web application development platform is that the two of them integrates quite seamlessly. An automatic integration implies that no further efforts are required when it comes to operating the system. The DNN Community can merge with the platform in a rather hassle- free manner by means of using the custom modules. The primary idea, here, is to design a system that allows the platform to communicate from behind a firewall with the people facing the website. Now, all this means that the documents can be pushed into the portal on the DotNetNuke website with higher level of safety and efficiency. At the same time, the filter rules can be designed to track down the individual documents to find out as to where they go.

DNN Enterprise and SharePoint Connector

In instances where the platform is used as the document management system, integration of the same with DotNetNuke Enterprise Edition is actually of real benefits. The custom integration saves a lot of money of the enterprise while investment that is made is actually worthy.

The DNN Enterprise SharePoint connector comes up as a powerful and significant feature, supporting both 2007 and 2010 versions of the platform. The firewall issues can be avoided at the same time. Content, on the other hand, stays fresh and is published directly from the SharePoint Document Library. It is the DotNetNuke role- based security network that performs the essential function of protecting the published documents.

Making Use of the SharePoint Folder Provider


The SharePoint Folder is particularly useful in integration with DotNetNuke 6. It enables the DNN users to store as well as synchronize the files contained in the document libraries, located in 2010 version of this platform.

Here is an overview of the features of this Folder and the way it helps:

The communication between the web application development platform and the DotNetNuke 6 becomes faster and more direct by virtue of the folder. It paves the way for multiple providers to indicate to different document libraries from either the similar platform based sites or from the different ones.

The SharePoint Folder facilitates a number of functionalities such as addition cum deleting of folders, uploading, downloading, renaming of files along with synchronization of the files and folders. Above all, this Folder actually acts as a strong base for several DNN modules, which make use of the DotNetNuke file system. Custom SharePoint development teams can help you build projects within allocated budgets and time schedules.

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



ASPHostPortal.com Announces SQL 2016 Hosting Solution

clock Junie 7, 2016 20:16 by author Dan

ASPHostPortal.com provides affordable and high performance SQL 2016 hosting to customers around the world. We have ASP.NET Hosting, Plesk Hosting, Reseller Hosting, Cloud Hosting, Dedicated Hosting plans for small to large to fit peoples' requirements. Our company is passionate about hosting and strive to deliver an excellent level of service to each customer. Today, we launch SQL 2016 hosting with cheap price and great support.
Microsoft SQL Server 2016 turns your mission-critical applications into intelligent applications with in-memory performance and advance analytics built in. SQL Server 2016 comes with a suite of new features over its predecessor, including a new Stretch Database function that allows users to store some of their data in a database on-premises and send infrequently used data to Microsoft's Azure cloud. An application connected to a database using that feature can still see all the data from different sources, though.

Many of the new features in SQL Server 2016 like Always Encrypted and Stretch Database are already available in Microsoft's Azure SQL Database managed service, but the virtual machine will be useful for companies that prefer to manage their own database infrastructure or that plan to roll out SQL Server 2016 on premises and want to test it in the cloud.

ASPHostPortal.com has served people since 2008 and we know how to deliver Powerful, Fast and Reliable SQL 2016 Hosting with the Superior Customer Support. Our superior servers are housed in the US, UK, France, Germany, Netherlands, Italy, Canada, Brazil, India, Australia, Hongkong and Singapore with up to 100MB/s connection and Cisco Hardware Firewalls. Fully managed and monitored around the clock, Our servers run on Windows Operating system with lots of memory (RAM) and up multiple Quad-Core Xeon CPU's, utilizing the power of the Cloud Services. Our SQL 2016 Hosting plans come with up to 99.99% uptime and 30-Day Full Money Back Guarantee. To learn more about Our SQL 2016 Hosting, please visit http://asphostportal.com/SQL-2016-Hosting

About ASPHostPortal.com:

ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio, Latest ASP.NET Version, Latest ASP.NET MVC Version, Silverlight and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP, etc. Their service includes shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



DotNetNuke - ASPhostPortal.com :: How To Create A Web farm For Your DotNetNuke Website

clock Junie 3, 2016 20:40 by author Armend

How To Create A Web farm For Your DotNetNuke Website

With a little luck and a lot of hard work there will come a time when your website’s popularity outgrows the capabilities of a single server. It’s time then to consider moving to a server-cluster also called web farm where you can host your website over multiple servers, balancing and shifting the load all across them so that your visitors continue getting the fast website experience that they’re used to.

Server clustering is now a part of Windows Server and IIS 7, so you can easily set up your web farm and get a dramatic boost in your website’s performance by setting up shared configuration for your website with 2 or more servers.
By using a server farm you can also avoid buying newer and costlier hardware, putting older servers to work to share the load at a lower cost. Additionally a web farm also enhances the security by creating redundancy which will keep the website online and functioning even if one of the server fails.
In this article we will learn how to set up your web server farm through IIS 7 Shared configuration feature for your DotNetNuke website.

 

Requirements for a DotNetNuke Web Farm

Setting up a web farm for DotNetNuke requires a setup in which there are at least two servers to handle the client requests. The servers access the files from a separate file server and the database from a special database server.  The requests are routed to the servers by a special load balancer which makes sure that the requests are evenly divided between the servers.

If your application does not have major file writing operations you can also store the files locally on the two servers and remove the file server from the configuration. This server setup uses file replication to store the files across all front-end servers and any file change on one of the servers is replicated across all servers. This scheme is not suitable if your servers need a lot of file updates and changes because of the extra load that will impose.
Setting this up on IIS7 has become easier than ever thanks to the new Shared configuration feature of IIS7 which allows you to place a common configuration file that will automatically configure all the front-end server you possess.

There are two stages to setting up a web farm for DotNetNuke. You have to configure DotNetNuke to work with a web farm and you have to configure a web farm environment At the server level.
Let’s discuss the configuration of DotNetNuke first. We’ll learn how to configure IIS7 shared configuration a little while later.

Setting up DotNetNuke for Web farm

Modifying the Web.config File to Enable Web Farm Support for DotNetNuke
DotNetNuke uses the web.config to store application settings that decide how it will work. To enable the support for web-farms you have to tell DotNetNuke that it’s in a farm environment. To do this you need to enable web farm support in the Config file.

  • Create Common Machine Keys : DotNetNuke requires that the machine keys of all the frontend servers in the web farm be identical. You can choose the machine keys of any server and must copy it across the servers. The machine two keys to replicate are ‘MachineValidationKey’, and ‘MachineDecryptionKey’.

  The Keys are in configuration->appsettings section of the web.config file.

  • Enable Web Farm : Check that the EnableWebFarmSupport setting is set to ‘True’ in the Configuration->AppSettings section of the configuration file. If this setting does not exist then add it.

  • Add Support for DB Logging Provider : In a farm environment the logs must be kept in a database. You need to setup DotNetNuke to keep the logs in a database. To do this make sure that the value of the defaultProvider node in configuration->dotnetnuke->logging node is set to ‘DBLoggingProvider’.
  • Setting up the Scheduler : DotNetNuke’s scheduler which looks after the regular maintenance tasks needed to keep the website running popularly must also be configured according to the needs of the web farm. Some of the tasks must be run on each machine, while others must be run on specific ones. You’ll need to change the schedule manually.

To change the task schedule first log in as the Super User and go to the Schedule option of the Host menu. Clicking on the button ‘Run on Servers’ will bring a text-box where you can fill the server name where you want each task to run.

The tasks that you may need to modify include : DotNetNuke.Services.Scheduling.PurgeScheduleHistory, DotNetNuke.Services.Log.Eventlog.SendLogNotifications, DotNetNuke.Services.Search.SearchEngineScheduler, DotNetNuke.Modules.Admin.ResourceInstaller.InstallResources, and DotNetNuke.Services.FileSystem.SynchronizeFilesSystem.

You’ll also need to enable the task DotNetuke.Services.Cache.PurgeCache. Make sure this task is enabled and updated.

  • Enable File Based Caching : DotNetNuke does not support database based caching in a web farm scenario. To optimize the caching performance the caching should be file based only. Make sure the node configuration->dotnetnuke->caching has the value ‘FileBasedCachingProvider’ for the attribute ‘defaultProvider’.

Configuring IIS 7 To Work With Your Web farm

Before IIS7 setting up a web farm on IIS was a non-trivial affair because IIS offered no automated replication and configuration across all servers. From IIS7 you can create a standard configuration on one server and replicate it across all servers by sharing only some configuration files. This makes it much more easier to create a web farm for your websites.

First configure your web server as usual to host the website, and when you’ve set up everything use the ‘Shared Configuration’ facility of IIS to export the server configuration files. The files should be exported to a UNC Share location which will be accessed by all the servers in the web farm for the configuration settings.
You will have to similarly enable shared configuration across all your servers and point to the same location where you have the original configuration settings saved. All the servers will copy those configuration settings.

You can easily setup the file server using the following command on the command prompt of the server which you want to use as the file server. Otherwise you can also use the windows graphical interface to set the necessary user permissions for the shared area.

md %SystemDrive%\serverconfig
net share serverconfig $=%SystemDrive%\serverconfig /grant:Users,Change

Note that we are also granting the users the right to modify the shared  contents.

The UNC share will also act as a file shared server, and the servers will grab the files from the share to serve to the client requests. Make sure that you set the file server location as the Home directory of the web server to enable this. A file share is essential to a DotNetNuke web farm.

This concludes the tutorial to establish a Web farm for your DotNetNuke website. If you have made the configuration changes to both DotNetNuke and IIS then your web farm environment should be up and running.



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions


Author Link


Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Tag cloud

Sign in