Tag Archives: best and cheap asp.net 5 hosting

ByAlexia Pamelov

Cheap Windows ASP.NET Hosting Tutorial – How to Sending Email from ASP.NET 5

CheapWindowsHosting.com | Best and cheap ASP.NET 5 hosting. In this post I will explain about how to send email from ASP.NET. Below is sample code showing how to send email from ASP.Net 5 (currently in beta as of this posting) using C#. With this code I am assuming that the server already has a local SMTP service installed, so I use “localhost” to relay the email.

Here is the SendMail.aspx page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendMail.aspx.cs" Inherits="SendMail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <form id="form1" runat="server">
        Message to:
        <asp:TextBox ID="txtTo" runat="server"></asp:TextBox>
        <br />
        Message from:
        <asp:TextBox ID="txtFrom" runat="server"></asp:TextBox>
        <br />
        <asp:TextBox ID="txtSubject" runat="server"></asp:TextBox>
        <br />
        Message Body:
        <br />
        <asp:TextBox ID="txtBody" runat="server" Height="171px" TextMode="MultiLine"
        <br />
        <asp:Button ID="Btn_SendMail" runat="server" onclick="Btn_SendMail_Click"
            Text="Send Email" />
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

 Here is the source code of the SendMail.aspx.cs page:

Best OFFER Cheap ASP.NET 5 Hosting ! Click Here

using System;
using System.Web.UI.WebControls;
using System.Net.Mail;

public partial class SendMail : System.Web.UI.Page

    protected void Btn_SendMail_Click(object sender, EventArgs e)
        MailMessage mailObj = new MailMessage(
            txtFrom.Text, txtTo.Text, txtSubject.Text, txtBody.Text);
        SmtpClient SMTPServer = new SmtpClient("localhost");
            catch (Exception ex)
            Label1.Text = ex.ToString();

I hope this article helpful for you.  Happy coding 🙂

ByAlexia Pamelov

Looking For The Cheap ASP.NET 5 Hosting? Click here!!

CheapWindowsHosting.com | Best and cheap ASP.NET 5 hosting. When you install .NET 5 Preview it will actually be installed as .NET, partly to maintain (in-place) compatibility with previous versions (4, 4.5, 4.5.1, 4.5.2 and 5). This means that if you have one of the above mentioned frameworks installed on your computer, this installer will upgrade them to 5 while if you have older frameworks installed like 3.5, 2.0, 1.1 etc., then it will run alongside them.

Important note: Before downloading and installing this preview version, please remember that Visual Studio 2015 Preview and .NET 5 Preview are for testing and feedback purposes only and not for a production environment.

There are three key areas to look at:

  • Open Source .Net Framework Packages
  • Support for Code page encodings
  • Improvements to event tracing

How To Choose Cheap Windows ASP.NET 5 Hosting Company ?

Choosing a quality ASP.NET 5 hosting provider is not an easy job for most users, especially those newbies. Therefore, our editors have done the hard work for you and finally named the companies above as the best ASP.NET 5 web hosting companies. All of above 3  ASP.NET 5 hosting above offer the latest Microsoft technologies such as:

1. The latest Windows Server 2012 edition with IIS 8.5
2. The latest ASP.NET MVC version
3. Support MSSQL 2008/2008 R2/2012/2014 on their hosting environment
4. Support Full Trust Hosting
5. Dedicated Application Pool

Cheap Windows ASP.NET 5 Hosting Company

ASPHostPortal - Best ASP.NET 4.5.2 Hosting

asphostportal-icon-e1421832425840-120x120-e1424663413602Founded in 2008, it is a fast growing web hosting company operated in New York, NY, US, offering the comprehensive web hosting solutions on Windows Hosting and they have a brilliant reputation in the ASP.NET 4.5.2 development community for their budget and developer-friendly hosting which supports almost all the latest cutting-edge Microsoft technology. ASPHostPortal have various shared hosting plan which start from Host Intro until Host Seven. But, there are only 4 favorite plans which start from Host One, Host Two, Host Three, and Host Four. Host One plan start with $5.00/month. Host Two start with $9.00/month, Host Three is the most favorite plan start from $14.00/month and Host Four start with $23.00/month. All of their hosting plan allows user host unlimited domains, unlimited email accounts, at least 1 MSSQL and 1 MySQL database. ASPHostPortal is the best ASP.NET Hosting, check further information at http://www.asphostportal.com

HostForLIFE - A Superior ASP.NET 5 Hosting Provider

hostforlife-icon-e1421832276583-120x120-e1424663388212HostForLIFE, specializing in offering affordable and manageable ASP.NET MVC hosting services, releases three plans for the clients – Classic Plan, Budget Plan, Economy Plan and Business Plan regularly starting at €3.00/mo, €5.50/mo, €8.00/mo and €11.00/mo separately. And also, the 30-day money back guarantee is offered to the clients who wish to cancel their accounts and get a refund. HostForLIFE supports Windows 2012/2008, ASP.NET 2.0/3.5SP1/4.0/4.5.1/5 as well as IIS8.5/ IIS8. It offers various versions of Microsoft SQL Databases, including MS SQL 2014, MS SQL 2012, MS SQL 2012R2 and MS SQL 2008. Each database comes with at least 500MB disk space. Furthermore, the webmasters can install the software by using one-click app installer. Besides, it is worth mentioning that the webmasters can get a full control of their websites through the users-friendly ASP.NET control panel of HostForLIFE. By using the top-level data center HostForLIFE delivers average 99.99% uptime to each hosted website.

DiscountService.biz –Premium ASP.NET 5 Hosting Service Provider

discountservice-icon-e1421396726386-120x120-e1424663401956DiscountService.biz is Microsoft Gold Partner, which means they are the first one to know the latest Microsoft technology and test Microsoft product before being released to the public. The engineers from DiscountService fully understand the needs of Microsoft developer, when signing up their service, their customer could choose the version of platform to better support their application. IIS ASP.NET MVC security from DiscountService is also at FULL Trust level. The price of DiscountService is at $7.00/month.


Under the overall consideration, ASPHostPortal, HostForLIFE and DiscountService.biz are 3 first-rank cheap windows ASP.NET hosting providers because of their affordable price, rich features, excellent performance and reliable support. Another piece of good news is that they have been listed as the cheap windows ASP.NET 5 Hosting companies 2016



ByAlexia Pamelov

Cheap Windows ASP.NET Hosting Tutorial – How to Publishing an ASP.NET 5 Project to a Local IIS Server

CheapWindowsHosting.com | In this post we will show you how to publishing an ASP.NET 5 project to a local IIS server. Recently I deployed a new ASP.NET 5 web application to a local IIS server. Though there are several online resources available about deployment, I encountered some problems that were difficult to diagnose and fix. In this post I will talk about the general deployment process and the steps I followed for a successful deployment.


ASP.NET 5 applications are meant to be cross-platform. Included in this cross-platform effort is the development of a new, cross-platform web server, named Kestrel. The Kestrel web server can be activated from the command line and can be used on any operating system.

Of course, ASP.NET 5 applications can still be hosted in IIS. But even in this case, the underlying web server will still be Kestrel. The role of IIS is greatly minimized.

In this post we will be deploying a web application using Kestrel as a web host first. Afterwards, we will be deploying to IIS.

Deployment to Kestrel

Let’s say that we have an existing ASP.NET 5 application. We can publish the application from the command line. First, navigate to the root web folder of the application (the folder where the project.json file is in). Then, type in the following command:

dnu publish --runtime active -o ..\publish

What this will do is create a new folder named ‘publish’ alongside the root web folder. Inside this ‘publish’ folder , there will be three subfolders: ‘approot’, ‘logs’, and ‘wwwroot’. The ‘approot’ folder will contain the source files and packages needed by the application. The ‘logs’ folder will contain any logs that the application emits. The ‘wwwroot’ folder will contain javascript, html, css files, etc. as well as the web.config file.

Are you looking for the best and cheap ASP.NET 5 hosting ? Click Here

Now we can start the Kestrel web server. First, navigate to the ‘approot’ folder. There will be a file named web.cmd. Start it by typing ‘web’ from the command line or double-clicking on it from a windows explorer window.

You might notice that a lot of text appears on the command line as soon as the command is run. This is especially true when there are Entity Framework migrations involved. Among the sea of text, the URL of the localhost web server will be displayed, and will look something like this:

Hosting Environment: Production
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

Once we find this text, we can just navigate to the appropriate URL using a browser. There we should see the web app up and running.

Congratulations, we have just deployed our ASP.NET 5 web application!

Deployment to IIS

Once we successfully launch the app through Kestrel, we can go for deploying in IIS. We need to do a few things for it to work properly.

  • Use an application pool with No Managed Code as the .NET CLR Version.
  • Create a Login in SQL Server with the login name as IIS APPPOOL\{apppoolname}. This Login should have access to whatever database the web application will use.
  • Create access rights to the ‘wwwroot’ folder for the user group IIS_IUSRS.

In addition, if we are going to put the application inside IIS Default Web Site and use a virtual directory, we need to modify the Startup.cs to handle this.

The first step is to rename the Configure method to something else, for example Configure1.

Then, we need to create a new Configure method. This would have the same signature as the original Configure method. The implementation would look something like this:

public async void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    app.Map("/virtualdirectoryname", (app1) => this.Configure1(app1, env, loggerFactory));

So we see that this new Configure method just calls the Configure1 method, taking into account the virtual directory name.

Once all of these are in place, we can go ahead and deploy to IIS using the usual process. We can add a new application in IIS Default Web Site and use the application pool we created earlier (using No Managed Code). The physical path should point to the ‘wwwroot’ location. The alias should be the same as the one we put in the Configure method in Startup.cs.

Afterwards, just browse to the website and it should all be good!


Although the concept of deployment stayed the same, the process and tools involved for deploying ASP.NET 5 applications has changed. In this post we took a look at how to deploy to the Kestrel web server, then later to IIS. Though it might seem like a long process, most of the steps should only be performed the first time around. Subsequent deployments should be faster and more straightforward.


ByAlexia Pamelov

Cheap Windows ASP.NET 5 Hosting with ASPHostPortal

CheapWindowsHosting.com | Cheap and affordable Windows ASP.NET 5 hosting. ASP.NET 5 hosting is a new open-source and cross-platform framework for building modern cloud-based Web applications using .NET. We built it from the ground up to provide an optimized development framework for apps that are either deployed to the cloud or run on-premises. It consists of modular components with minimal overhead, so you retain flexibility while constructing your solutions. You can develop and run your ASP.NET 5 applications cross-platform on Windows, Mac and Linux. ASP.NET 5 is fully open source on GitHub.


.NET Core is a small, optimized runtime that can be targeted by ASP.NET 5 applications. In fact, the new ASP.NET 5 project templates target .NET Core by default, in addition to the .NET Framework. Learn what targeting .NET Core means for your ASP.NET 5 application.

To find best and cheap ASP.NET 5 hosting provider that fully support ASP.NET 5 hosting is not easy task. So as the ASP.NET geeks who have many years experience, we are going to help you to find the best and cheap ASP.NET 5 hosting. After reviewed 100+ affordable and reputable Windows ASP.NET hosting providers on their reliability, ASP.NET 5 hosting provider. The following are the reasons why we choose ASPHostPortal as the best and cheap ASP.NET 5 hosting provider.

ASPHostPortal Fully Supports The Lastest ASP.NET Version

All of their servers run the latest versions of ASP.NET so they will always be able to support your site. Finally, the long awaited release of ASP.NET 5, ASPHostPortal are happy to announce the availability of the .NET 5 for all their hosting packages.

ASPHostPortal Never Lose Your Data

Your data is safe. They have deployed the latest cloud infrastructures and use only premium hardware components, including fully redundant primary and backup storage devices those are RAID protected. This means that your data has triple redundant, it is not just copied and it is always available. If you want to roll back, access an accidentally deleted file, or need a complete restore, they have you covered.

ASPHostPortal’s Expert Support Team

Everything starts with impeccable support. The unmatched knowledge, experience, and dedication of their team truly make them stand out. They understand that people are the most important piece of the service they provide, and that is why they are at the top of the list. You’ll notice the difference the first time you talk to one of their ASP.NET experts.

ASPHostPortal’s World Class Data Center

Their data centers are strategically located around the country to provide their customers with the highest levels of availability, service and support on the market. Their data centers located on US (Washington & Seattle), Netherlands (Amsterdam), Singapore, Hong Kong, United Kingdom (London), Australia (Melbourne), France (Paris), Germany (Frankfurt), Canada (Toronto), Italy (Milan), India (Chennai), Brazil (São Paolo). Each Data Center is custom designed with raised floors. Each Data Center is equipped with HVAC temperature control systems with separate cooling zones, seismically braced racks, advanced early smoke detection and fire suppression systems. Their Data Centers are supported by some of the most powerful physical security in the business. They have 24/7 video surveillance, security breach alarms and Biometric thumb print scanners at every entryway.

ASPHostPortal Offers Affordable Price

ASPHostPortal offers affordable price for all of ASP.NET 5 hosting plans. Customers can start their ASP.NET 5 site just from $1.00/mo. They are so confident that you will like their service, so they brave to offer a 30 day money back guarantee on hosting fees. Just cancel before 30 days, and they will refund your entire hosting fee. You can get cheaper price with their hosting promotion and free add-ons too, for more information just visits their official site at http://asphostportal.com.