DotNetNuke Hosting with ASPHostPortal.com

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

DotNetNuke 6 Hosting - ASPHosPortal :: Upgrading DotNetNuke 4.9.5 to DotNetNuke 6.0

clock March 27, 2012 07:18 by author Jervis

DotNetNuke is a content management based on Microsoft's .Net Technology that allow non-technical users to create, modify and customize the appearance and working of their websites. DotNetNuke Corp recently released DotNetNuke 6 that allows much more simplified user interface and increases productivity by making it much easier for the user to build and maintain websites.

In this tutorial we will walk you through a detailed step-by-step process to how to download and upgrade existing DotNetNuke 4.9.5 to the latest version, DotNetNuke 6.0.


Before formally starting the process let us make this very clear that it is possible for the user to directly upgrade DotNetNuke 4.9.5 to DotNetNuke 6.0. Most of the tutorials published over the internet would suggest that it is either not possible or requires to install number of enhancement packages to directly upgrade DotNetNuke 6, which is fortunately not the case. Many would suggest to go step-by-step from DotNetNuke 4.9.5 to 5.5 and then to DotNetNuke 6.0. Here we will show with the help of screenshots that if you have IIS configured properly and have all matching specifications then there is no issue in upgrading DotNetNuke 4.9.5 to DotNetNuke 6.0 using the platform of Windows 7.


Specifications:

In this tutorial we are assuming that:


- Users have Microsoft SQL Server 2005/2008 or SQL Express.

- Currently using DotNetNuke 4.9.5 on Windows 7. It should be noted that DotNetNuke 4.9.5 is perfectly workable on Windows 7.
- Microsoft IIS (Internet Information Services) 5+, IIS 7 are recommended.
- Microsoft .NET 3.5 SP1 ( can be obtained via Windows Update).

Before starting the upgrade process you must, as always, first create a backup of the website and the database. Never ever try to upgrade DotNetNuke on live site without creating the backup. There are number of ways that can be used to create backup for your website. We will elaborate few most common and easy methods to create backups.


Database backup:

As you can see in the screen shot that we are using Microsoft SQL Server Management Studio 2008. To have a backup of your existing database navigate to your specific database in Enterprise Manager, right click on the database and select "All Tasks" >> “Backup" and save the “.bak” file at a secure location.




SQL Backup to app_data:


One common method is to copy the database backup in app_data folder with ".resources" extension. The will enable you to copy the compete website including database as a single unit (zip file).


Taking your site offline:

If your site is online and have regular visitors then it is better to leave a message that will let the visitors know of any back end enhancements. All you have to do is to place "app_offline.htm" in the root directory. ASP.NET will itself display the visitor a friendly message that the website is currently under maintenance or you can edit the file to left a message that suits you. Once the upgrade is complete you can simply rename the file "app_offline.htm" to "app_offline.htm.exclude" or can even delete the file.


Upgrading DotNetNuke 4.9.5:

The backup has been created and we are all set to move forward with the upgrade process.


Downloading the upgrade package:

DotNetNuke 6 upgrade package can be downloaded from
http://www.codeplex.com/. All we need is to visit the website, search with the keyword "DotNetNuke 6" and the top most result would be the one we should be looking at. Navigate to the download tab at the top of the page and make sure that you download the latest version upgrade. For your ease here is a link that will navigate you directly to the upgrade page.



Once the upgrade package has been downloaded, the next step is to extract the contents of the ZIP archive to any local folder. Make sure to uncheck the "block option" under properties, sometime this option comes as "checked" when zip files are downloaded.


Upgrade to DotNetNuke 6:

To begin the upgrade processes we will navigate to our local root directory where the files of DotNetNuke 4.9.5 exist, “c:\inetpub\wwwroot\”, which would look like this c:\inetpub\wwwroot\dnn4\. Now we will copy all the files from the upgrade package that we have just downloaded and replace them in the directory where DotNetNuke 4.9.5 was installed “c:\inetpub\wwwroot\dnn4\”.




Running the upgrade wizard:


Once the files are replaced we are going to recall the website in the web browser or simply strike this link “
localhost/Install/Install.aspx?mode=upgrade” into your web browser.



You will realize, as can be seen in the snapshot, that the upgrade process has been triggered itself. You don’t need to do anything but to wait for few minutes until a message at the bottom shows the status as “Upgrade Complete”.




Click at the bottom to access you portal, enter your credentials and you are good to go.






Dotnetnuke has now made it easier for the users to upgrade from one version to another without facing much issue. But there might be some permission problems during the upgrade process. To overcome such scenarios make sure that you have set all the required permissions to give user full control on the website. Navigate to "Security" tab of your DNN folder under “wwwroot” directory to confirm that you have all the required permissions fully configured.


Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.


You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:


- DELL Hardware

Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.

- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.

- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.

- Data Center

ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.

- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.

- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.

- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.

 



DotNetNuke 6 Hosting - ASPHosPortal :: Upgrading DotNetNuke 4.9.5 to DotNetNuke 6.0

clock March 27, 2012 07:18 by author Jervis

DotNetNuke is a content management based on Microsoft's .Net Technology that allow non-technical users to create, modify and customize the appearance and working of their websites. DotNetNuke Corp recently released DotNetNuke 6 that allows much more simplified user interface and increases productivity by making it much easier for the user to build and maintain websites.

In this tutorial we will walk you through a detailed step-by-step process to how to download and upgrade existing DotNetNuke 4.9.5 to the latest version, DotNetNuke 6.0.


Before formally starting the process let us make this very clear that it is possible for the user to directly upgrade DotNetNuke 4.9.5 to DotNetNuke 6.0. Most of the tutorials published over the internet would suggest that it is either not possible or requires to install number of enhancement packages to directly upgrade DotNetNuke 6, which is fortunately not the case. Many would suggest to go step-by-step from DotNetNuke 4.9.5 to 5.5 and then to DotNetNuke 6.0. Here we will show with the help of screenshots that if you have IIS configured properly and have all matching specifications then there is no issue in upgrading DotNetNuke 4.9.5 to DotNetNuke 6.0 using the platform of Windows 7.


Specifications:

In this tutorial we are assuming that:


- Users have Microsoft SQL Server 2005/2008 or SQL Express.

- Currently using DotNetNuke 4.9.5 on Windows 7. It should be noted that DotNetNuke 4.9.5 is perfectly workable on Windows 7.
- Microsoft IIS (Internet Information Services) 5+, IIS 7 are recommended.
- Microsoft .NET 3.5 SP1 ( can be obtained via Windows Update).

Before starting the upgrade process you must, as always, first create a backup of the website and the database. Never ever try to upgrade DotNetNuke on live site without creating the backup. There are number of ways that can be used to create backup for your website. We will elaborate few most common and easy methods to create backups.


Database backup:

As you can see in the screen shot that we are using Microsoft SQL Server Management Studio 2008. To have a backup of your existing database navigate to your specific database in Enterprise Manager, right click on the database and select "All Tasks" >> “Backup" and save the “.bak” file at a secure location.




SQL Backup to app_data:


One common method is to copy the database backup in app_data folder with ".resources" extension. The will enable you to copy the compete website including database as a single unit (zip file).


Taking your site offline:

If your site is online and have regular visitors then it is better to leave a message that will let the visitors know of any back end enhancements. All you have to do is to place "app_offline.htm" in the root directory. ASP.NET will itself display the visitor a friendly message that the website is currently under maintenance or you can edit the file to left a message that suits you. Once the upgrade is complete you can simply rename the file "app_offline.htm" to "app_offline.htm.exclude" or can even delete the file.


Upgrading DotNetNuke 4.9.5:

The backup has been created and we are all set to move forward with the upgrade process.


Downloading the upgrade package:

DotNetNuke 6 upgrade package can be downloaded from
http://www.codeplex.com/. All we need is to visit the website, search with the keyword "DotNetNuke 6" and the top most result would be the one we should be looking at. Navigate to the download tab at the top of the page and make sure that you download the latest version upgrade. For your ease here is a link that will navigate you directly to the upgrade page.



Once the upgrade package has been downloaded, the next step is to extract the contents of the ZIP archive to any local folder. Make sure to uncheck the "block option" under properties, sometime this option comes as "checked" when zip files are downloaded.


Upgrade to DotNetNuke 6:

To begin the upgrade processes we will navigate to our local root directory where the files of DotNetNuke 4.9.5 exist, “c:\inetpub\wwwroot\”, which would look like this c:\inetpub\wwwroot\dnn4\. Now we will copy all the files from the upgrade package that we have just downloaded and replace them in the directory where DotNetNuke 4.9.5 was installed “c:\inetpub\wwwroot\dnn4\”.




Running the upgrade wizard:


Once the files are replaced we are going to recall the website in the web browser or simply strike this link “
localhost/Install/Install.aspx?mode=upgrade” into your web browser.



You will realize, as can be seen in the snapshot, that the upgrade process has been triggered itself. You don’t need to do anything but to wait for few minutes until a message at the bottom shows the status as “Upgrade Complete”.




Click at the bottom to access you portal, enter your credentials and you are good to go.






Dotnetnuke has now made it easier for the users to upgrade from one version to another without facing much issue. But there might be some permission problems during the upgrade process. To overcome such scenarios make sure that you have set all the required permissions to give user full control on the website. Navigate to "Security" tab of your DNN folder under “wwwroot” directory to confirm that you have all the required permissions fully configured.


Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.


You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:


- DELL Hardware

Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.

- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.

- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.

- Data Center

ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.

- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.

- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.

- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.

 



DotNetNuke 6 Hosting - ASPHostPortal :: How to Make Secure a DotNetNuke Installation

clock March 6, 2012 06:36 by author Jervis

In this post I'll walk through the simple process of changing your configuration to go from Encrypted Passwords to Hashed passwords and a bit of detail as to "why" you want to make the change.

Why Hashed Instead of Encrypted?

This is a pretty common question that I get from people and the short, simple answer is with regards to how the passwords can be used. If you have Encrypted passwords, it is possible to retrieve the users current password and e-mail it to them. It is equally as easy for any custom module to read the passwords of user accounts with a simple API call.


Hashing the passwords uses a forward-only method to store the passwords in a secure pattern, and when users login the same hashing process is used to validate the password, rather than decrypting the password and comparing it. Additionally when hashed password resets from the core will send users a new password, which helps to reduce the risk exposed by sending passwords via e-mail in that at least you are not potentially giving away a users "common" password.

Where Is This Configured?

The configuration of the Membership system is done in the web.config, and a default DotNetNuke configuration section looks like this.

<add name="AspNetSqlMembershipProvider"
    type="System.Web.Security.SqlMembershipProvider"
    connectionStringName="SiteSqlServer"
    enablePasswordRetrieval="true"
    enablePasswordReset="true" r
    requiresQuestionAndAnswer="false"
    minRequiredPasswordLength="7"
    minRequiredNonalphanumericCharacters="0"
    requiresUniqueEmail="false"
    passwordFormat="Encrypted"
    applicationName="DotNetNuke" />

 The property we are concerned with is the "passwordFormat" field as well as the "enablePasswordRetrieval" property. We need to be concerned with both, as it isn't possible to 'retreive' your password when they are hashed, so failing to change both properties will result in errors.

How/When to Make the Change

Now, on the surface this looks like a really simple change, update two values, and we are done, right? Well it isn't quite so easy as there are a number of things you need to look at, so I'll discuss the actual change and situations to consider.

The Change

For all scenarios the changes are the same, enablePasswordRetrieval should be set to false and passwordFormat should be set to "Hashed". As with any change of this nature, be sure to take a full site and database backup, just in case it doesn't workout as planned.

New Installs - Before Installation

When working with a new install, if you make the changes noted above BEFORE you run the install wizard, you will have a portal setup from the beginning with the proper configuration. This way is the most preferred as it is simple, quick, and doesn't expose you to any risks at all. Once the portal is installed, simply use as you would normally.

New Installs - Limited User Base

If you have a newer installation but don't yet have a large number of users on the system you can still make the change, your existing users will be able to login to the portal, but their passwords will forever be in the "Encrypted" state. (Per my testing). Once you make the change, it is recommended that you create "different" users for each of these user accounts, which will keep all users secure, and all users with the same password format. You can simply delete the old user accounts.

Now, as you can imagine this is not an ideal situation, so doing it before you install is the best option overall

Existing Installs - Large User Base

This conversion requires a lot more effort to change and coordinate. I have written a module that does this, but am working through issues on DNN 5.5.x and later where it isn't working as it should. Regardless, a more manual process is needed to temporarily decrypt the passwords, then one-by-one reset the user passwords back to the same thing, just hashed this time around.

Conclusion

I hope that you find this helpful. Keeping user information secure is a very important task, and this is just one way that we can help keep things secure.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what
ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:


-
DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.

- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.

- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.

- Data Center

ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.

- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.

- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.

- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.





DotNetNuke 6 Hosting - ASPHostPortal :: Skinning Containers in DNN6

clock February 21, 2012 09:30 by author Jervis

With the latest major update to DotNetNuke, there have been some questions as to what has changed in skinning for DotNetNuke 6.0. One big change has been the introduction to the new Manage button automatically into the containers. Some love it, some hate it, and others seem to still be undecided.

I actually like it. Although, the lack of placement control has been a little annoying. It was said the reason to purposefully take this out of the skinner’s hands was to help provide consistency. While I can understand that, as I am a huge proponent of consistency, there are several scenarios where having control would be helpful. Just one example would be when the module and container have a very small amount of content. The manage buttons and text seem to get a little lost.

Simplified Container Coding

The introduction of the Manage button introduces a couple of other changes to skinning a container. There is now no need to have a DNNActions menu, as this is directly replaced by the Manage button. There is also no need for the Action buttons, as these are now also located within the Manage button menu. This leaves skinning for the new DNN6 container, extremely simple, which I love! Here is my code for a normal container:

<%@ Control language="vb" CodeBehind="~/admin/Containers/container.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Containers.Container" %>
<%@ Register TagPrefix="dnn" TagName="TITLE" Src="~/Admin/Containers/Title.ascx" %>

<DIV class=NormalContainer>
    <H2><DNN:TITLE id=dnnTitle runat="server"></DNN:TITLE></H2>
    <DIV id=ContentPane class=ContentBody runat="server">
</DIV></DIV>


That’s it! Nothing else is needed. That is the kind of improvements I can embrace!

Overcoming the DNN 6 Manage Button Alignment

Now, back to my issue with the positioning of the aforementioned Manage button. I am sure the guys at DotNetNuke had a reason for placing the Manage button where they did, however, I personally feel that it would be best placed on the top right of the container. Module titles and text don’t always extend to the right edge of the container making it easier to spot. Just add this CSS to your stylesheet.

.dnnActionMenu { right:10px; left:auto; width:95px;}

Explanation of the CSS


The “right:10px” moves the button to the right side with a margin of 10px from the edge. The “left:auto” overrides the default CSS for the manage button. And, the “width:95px;” is the width of the button and is necessary to keep the manage button from growing with the right side of the button planted to the right edge of the container as you drag the Manage button around.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.


You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



DotNetNuke 6 Hosting with ASPHostPortal.com

clock November 28, 2011 05:18 by author Jervis

ASPHostPortal.com is a hosting company that specialized in Windows and ASP.NET-based hosting only. Now ASPHostPortal.com supports DotNetNuke 6 hosting.

This great opportunity is available for all our new and existing customers. You can start to host DotNetNuke website from $5.00/month only. Moreover, we have Christmas’ PROMOTION. You can get UNLIMITED feature with us. Please visit our site at
http://www.asphostportal.com for more information.

The simplified DotNetNuke 6 user interface dramatically increases productivity by making it much easier to build and maintain Web sites.  A new, more complete site template makes it easy to launch a site in minutes.  Modal windows, pop-up dialogs, an updated administration module, and mega-menus deliver a highly modern platform for building and operating websites.  A new pages administration interface delivers an enhanced user experience plus new capabilities that make page management and creation within DotNetNuke easier than ever before. And also The new release also empowers customers for the first time to cost-effectively and securely publish files managed in Microsoft Office SharePoint to external Web sites, seamlessly integrating the best in class enterprise content management capabilities of SharePoint with the market leading WCM capabilities of the DotNetNuke Enterprise Edition.

You can find all the benefits of DotNetNuke hosting with ASPHostPortal.com plus UNLIMITED Feature Hosting. Please email us at
sales@asphostportal.com if you have any inquiry.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

-
DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



DotNetNuke 6 Hosting - ASPHostPortal :: Refining User Interface in DNN 6

clock September 19, 2011 08:24 by author Jervis

DotNetNuke 6 has been a release experience unlike any in the history of DotNetNuke.  We have had more packaged releases, more visibility into the code, more discussions with the community and a greater iterative approach to development than at any point in our past.

The community has been able to follow along with us as we progressed from the early UI concepts to a much more polished and refined look.  If you were really adventurous, you could watch this transition on almost a daily basis as we kept up a steady stream of code updates on
CodePlex.  Because we intentionally moved to a longer release cycle, we have been able to go through many iterations, getting community feedback all along the way.  With each release our community has told us what they liked, and what they didn’t.  After each CTP we have been able to incorporate some of the feedback to help arrive at a much better product.  As a result we have been able to progress to what we think is a much more contemporary look, even while taking into account the needs and desires of the overall community.   This is just not something that was possible when we were operating under shorter release cycles.

In order to truly appreciate how dramatic this transition has been I thought I would share the progression of one of the central UI elements for DotNetNuke – the login screen.



In CTP 1 we had not begun any of the major UI changes and you can see the same login experience we have had since DotNetNuke 3.0.  There have been some changes to the way that logins work under the covers, but the UI appearance has been relatively static for a long time.   Notice the harsh contrast between the labels and the background as well as the blocky appearance of the login button.  The default red used for the link buttons is also overly harsh and distracts the user from what should be their primary focus.  Overall, this is not a very polished look and personally I will be happy to leave it behind.



In CTP 2 we introduced the concept of modal popups as a key element of the new UI makeover.  Our first foray into the use of popups relied heavily on
Telerik ASP.NET AJAX components.  This was ok but didn’t provide a very contemporary look.  We were also not overly excited about the HTML that was generated by the use of the Telerik window.  It made the page heavier than we liked, and was not as designer friendly as other alternative approaches. 

One of the great features of the Telerik window is that it allowed the user to resize and move the popup window.  It also allowed the window to resize itself to accommodate different pages that might be displayed in the window.  Other than the use of a popup, we didn’t spend much time on styling the login control itself.  CTP 2 was a good first effort but clearly needed a lot more work.



CTP 3 saw a number of dramatic changes.  In this release we transitioned to the use of
jQuery UI based popups.  We also started applying some new styling to the login form itself.  What is not apparent from this screen shot is that our popup forms were a fixed size.  Since there was no auto-sizing available with the jQuery UI, we had to pick a popup size which would accommodate many of the larger pages like Admin and Host settings.  This created a very unappealing experience on the login screen which looked very odd with all that extra white space.

In addition to the change in the popup style, we also started work on styling the rest of the screen.  Here we can see very preliminary work.  Colors are more muted, corners are a little less harsh and the page looks a little more stylish, however there was still lots of room for improvement (pun intended).



In the upcoming Beta 1 release, you will see a much more polished UI.  The login screen is back to being sized more appropriately and the screen is now completely styled using the new DotNetNuke 6 design. 



DotNetNuke 5 Hosting - ASPHostPortal :: How to Integrate PayPal with Your DotNetNuke Site

clock August 19, 2011 07:14 by author Jervis

This tutorial describes brief information about how to integrate PayPal with your DotNetNuke. Ok, let’s start it.

1. You need to remove <Form> </Form> from your PayPal “Buy Now” code.

2. Please add this code below to buy now input button.

Add onClick="this.form.action='https://www.paypal.com/cgi-bin/webscr';   
                      this.form.submit();"

3. Paste what is left into the html module. See this example:

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="
payments@asphostserver.com">
<input type="hidden" name="item_name" value="Buy Zara Bag">
<input type="hidden" name="item_number" value="Bag">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image"


   onClick="this.form.action='https://www.paypal.com/cgi-bin/webscr';this.form.submit();"

src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="
https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">


Hope it helps!!

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

-
DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



DotNetNuke 5 Hosting - ASPHostPortal :: Get Design-Time Support for DNN Controls

clock August 5, 2011 06:21 by author Jervis

Problem:

This is the figure to illustrate the problem:



The green line means that Visual Studio was not able to find the reference for the control listed.  If you switch to design view you will get an issue about not being able to render the control.

The Solution

To fix it, it is very easy. Just right click on your project and select “Properties”, and then switch to the “Web” portion of the settings and you should see the following section.



Simply copy the above listed settings.  The first option "Project Url" specifies the path to the module you are working on, in standard development environments you will just replace "yourmodule" with the name of the module.  The key piece of functionality here is with the "Override application root URL".  This provides design time support to re-map the ~/ application root identifier.  This will allow Visual Studio to properly find the references.

After making this change, you can switch to design view on your project and should see full support for the control, for example the DNN Label Control:



Hope that tutorial above can help you to get design time support for common DNN user controls.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

-
DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



DotNetNuke 5 Hosting - ASPHostPortal :: Caching in DNN 5

clock July 26, 2011 06:28 by author Jervis

One of the hidden gems in DotNetNuke 5.0 is the new caching support in the CBO (Custom Business Objects) class. During the refactoring of DotNetNuke for the Cambrian release, caching was one of the things that was closely looked at, since caching was starting to cause major issues in the DNN 4.x branch.

Lets take a look at how caching was done in DNN 4:

Public Shared Function GetSecureHostSettings() As HashtableDim h As Hashtable
h = CType(DataCache.GetCache("GetSecureHostSettings"), Hashtable)
If h Is Nothing Then
h = New HashtableDim SettingName As StringDim dr As IDataReader =
DataProvider.Instance().GetHostSettingsWhile dr.Read()

If Not Convert.ToBoolean(dr(2)) Then
SettingName = dr.GetString(0)
If SettingName.ToLower.IndexOf("password") = -1 ThenIf Not dr.IsDBNull(1) Then
h.Add(SettingName, dr.GetString(1))
Else
h.Add(SettingName, "")
End IfEnd IfEnd IfEnd While
dr.Close()
DataCache.SetCache("GetSecureHostSettings", h)
End
IfReturn hEnd Function

This is code from the class DotNetNuke.Entities.Host.HostSettings in DNN 4.9.3. In fact this is a pattern that is used throughout the application in DNN 3.x – 4.x. The problem with this pattern is that it is not completely thread safe, especially if it is used in larger routines, and specifically on large and busy sites. There might be a chance that the object you get from the cache is removed from cache when you want to use it.


In DotNetNuke 5.x, the CBO class was beefed up with a new caching function:

Public
Shared Function GetCachedObject(Of TObject)(ByVal cacheItemArgs As CacheItemArgs, ByVal cacheItemExpired As CacheItemExpiredCallback) As TObjectReturn DataCache.GetCachedData(Of TObject)(cacheItemArgs, cacheItemExpired)
End
Function

which in turn calls a new method of DataCache, GetCachedData. This method looks like this:

Public
Shared Function GetCachedData(Of TObject)(ByVal cacheItemArgs As CacheItemArgs, ByVal cacheItemExpired As CacheItemExpiredCallback) As TObject'Declare Local Variable and try and retieve it from the cacheDim objObject As Object = GetCache(cacheItemArgs.CacheKey)
Dim
timeOut As Integer = cacheItemArgs.CacheTimeOut * Convert.ToInt32(Host.PerformanceSetting)
'If Item is not cachedIf objObject Is Nothing Then'Prevent other threads from entering this block while we regenerate the cacheSyncLock objLock'Try to retrieve object from Cache again (in case another thread loaded the object since we first checked)
objObject = GetCache(cacheItemArgs.CacheKey)
If
objObject Is Nothing Then'Get Object from data Source using Delegate
objObject = cacheItemExpired(cacheItemArgs)
If
objObject IsNot Nothing AndAlso timeOut > 0 Then
DataCache.SetCache(cacheItemArgs.CacheKey, objObject, cacheItemArgs.CacheDependency, Cache.NoAbsoluteExpiration, _

TimeSpan.FromMinutes(timeOut), cacheItemArgs.CachePriority, cacheItemArgs.CacheCallback)
'Check if Item was actually saved in the cacheIf DataCache.GetCache(cacheItemArgs.CacheKey) Is Nothing ThenDim objEventLogInfo As New LogInfo
objEventLogInfo.LogTypeKey = EventLogController.EventLogType.CACHE_ERROR.ToString()
objEventLogInfo.LogProperties.Add(New LogDetailInfo(cacheItemArgs.CacheKey, "Not Created"))
Dim
objEventLog As New EventLogController()
objEventLog.AddLog(objEventLogInfo)
End
IfElseIf objObject Is Nothing ThenReturn NothingEnd IfEnd IfEnd SyncLockEnd IfReturn DirectCast(objObject, TObject)
End
Function

As you can see, this is basically still the same pattern as the “old” pattern in DNN 3.x/4.x, however, with a few enhancements:

- Thread safety. Using Synlock, other threads are prevented to intrude when we are handling the object
- automatic callback is used, that will get called when the object is not found in cache
- check to ensure object was saved to cache correctly

As an example of the usage of the new pattern, let’s see how Host.GetSecureHostSettings was modified in DNN 5:

Public Shared Function GetSecureHostSettingsDictionary() As Dictionary(Of String, String)
Return CBO.GetCachedObject(Of Dictionary(Of String, String))(New CacheItemArgs(DataCache.SecureHostSettingsCacheKey, _
DataCache.HostSettingsCacheTimeOut, _
DataCache.HostSettingsCachePriority), _AddressOf GetSecureHostSettingsDictionaryCallBack)
End Function

And the corresponding callback function:

Private Shared Function GetSecureHostSettingsDictionaryCallBack(ByVal cacheItemArgs As CacheItemArgs) As ObjectDim dicSettings As New Dictionary(Of String, String)
Dim dr As IDataReader = DataProvider.Instance().GetHostSettingsTryWhile dr.Read()
If
Not Convert.ToBoolean(dr(2)) ThenDim settingName As String =
dr.GetString(0)

If settingName.ToLower.IndexOf("password") = -1 ThenIf Not dr.IsDBNull(1) Then
dicSettings.Add(settingName, dr.GetString(1))
Else
dicSettings.Add(settingName, "")
End IfEnd IfEnd IfEnd WhileFinallyIf Not dr Is Nothing Then
dr.Close()
End
IfEnd TryReturn dicSettingsEnd Function

As you can see, the callback function GetSecureHostSettingsDictionaryCallBack is essentially the same as the old method, minus the caching logic. It has become far more easier to use caching in your own module using this pattern. A few lines of code will do the trick.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

-
DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



DotNetNuke 5 Hosting - ASPHostPortal :: How to Call Web Service from your DotNetNuke Module

clock July 18, 2011 06:55 by author Jervis

There are times when you’d like to make a call to an external web service from your DotNetNuke module to process or get some data.

Add a Service Reference to your Module Project

In your module solution, right-click on the “References”, folder and select “Add Service Reference…



The “Add Service Reference” dialog will open, paste the URL of the web service you want to access in the Address field and click the “Go” button.  If the service is available, you will see the publicly available services listed in the “Services” list box on the left.



At the bottom of the dialog box, enter a namespace that you will be using to reference the service. In this example, I enter “WeatherService”.  Later on , I will be using that Namespace and the Service name as shown in the dialog to create a client proxy that I can use to execute the functions exposed by the service. Click the “OK” button to have Visual Studio add the reference to your project.



Now, back at our project, you will see the “WeatherService” listed under the “Service References” folder.



Copy the web.config generated settings to the root web.config of your DNN site

You’ll also notice that a new web.config file has been added to your project. Open the web.config file and you’ll see a bunch of settings that your DNN web site needs in order to be able to access the web service. However, these settings need to be in the web.config that resides in the root folder of your DNN web site. So copy the system.serviceModel section from the web.config in your project folder and paste it at the end of the web.config file in your DNN web site root folder, just after the closing </dotnetnuke>  tag, and before the closing </configuration> tag.

If the web.config in your DNN root folder already has a system.serviceModel section, you’ll have to “merge” the tags from your module into the root config file.

NOTICE: In the <client> section, take a look at the client endpoint configuration data, in particular, the “name” property. You’ll need that name later on, so you might want to copy it to your clipboard for later use.

<client>

  <endpoint address=http://www.webservicex.net/WeatherForecast.asmx
    binding="basicHttpBinding"
    bindingConfiguration="WeatherForecastSoap"
    contract="WeatherService.WeatherForecastSoap"
    name="WeatherForecastSoap" />
</client>

Once you’ve pasted the web.config settings into the root web.config, Delete the web.config file from your project folder.

Write the code-behind to access the web service

That’s all we need to do to be able to access a web service from our module. So, for this example, we’ll use the service to lookup a town name based on a zip code. The service exposes a method

At the top of our module, add a using statement and pull in the namespace of the web service

using DNNws.WeatherService;

In this simple example, I have a div named hw_content on my module’s ascx page. In the Page_Load() method, we’ll make a call to the web service, pass in a zip code, and grab the City name (PlaceName) from the results of the service call.

  1: private void Page_Load(object sender, System.EventArgs e)
  2: {
  3:     try
  4:     {
  5:         using (var svc = new WeatherForecastSoapClient("WeatherForecastSoap"))
  6:         {
  7:             var results = svc.GetWeatherByZipCode("07871");
  8:             hw_content.InnerHtml = string.Format("Hello {0}", results.PlaceName);
  9:         }
 10:     }
 11:     catch (Exception exc) //Module failed to load
 12:     {
 13:         Exceptions.ProcessModuleLoadException(this, exc);
 14:     }
 15: }

On line 5, we create a proxy object that we’ll be using to access the service.

When Visual Studio added the service reference to our project, it also created a proxy class named “WeatherForecastSoapClient” that we will use. We need to pass the endpoint “name” that we want to use to access the service, so pass the value of the “name” property from the web.config client tag you copied earlier.

Once we have a service proxy object (svc), we simply call the method “GetWeatherByZipCode” and pass the required zip code parameter.  NOTE: Intellisense makes method discovery very easy, just start typing svc, period and you’ll see a list of the available methods and their signatures.

The call is made on line 7, and on line 8, we take the “PlaceName” property of the result and we create a string and set it inside our div on our ascx file.

Running our DNN site and placing an instance of our module on a page, results in the view being displayed, during Page_Load(), an instance of the web service proxy is created and we use that proxy to connect to the web service, execute the GetWeatherByZipCode method, pass in a zip code and the PlaceName property is used to construct a welcome message, which looks like this…



Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

-
DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



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

Corporate Address (Location)

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

Sign in