Windows 2012 Hosting - MVC 6 and SQL 2014 BLOG

Tutorial and Articles about Windows Hosting, SQL Hosting, MVC Hosting, and Silverlight Hosting

Looking For Cheap and Best YetAnotherForum Hosting?

clock May 30, 2014 07:58 by author Ben

ASPHostPortal windows hosting is compatible with the YetAnotherForum.NET. We offer YetAnotherForum.NET based hosting plan from just $5/month (see our YetAnotherForum.NET Hosting Plan).

The ASP.NET hosting platform is compatible with YetAnotherForum (YAF) Forum application. YetAnotherForum.NET (YAF) is a Open Source discussion forum or bulletin board system for web sites running ASP.NET.
It is 100% written in C#, YAF is a combination of Open Source, Microsoft's .NET platform and an international collaboration of the .NET developer community. ASP.NET forum solutions are not so much on the market and YAF is absolutely the best solution.

The YAF project is lead by Jaben Cargman of Tiny Gecko and grows and changes daily. YAF runs on any hosting server that's configured with 2.0+ and SQL Server service. Some key features for YetAnotherForum:

  • Licensed under GPL
  • Web Based Administration
  • Unlimited number of boards forums and categories
  • Template-based design
  • Unicode (UTF-8) encoding
  • DotNetNuke, Umbraco, MojoPortal Modules

YAF is actually a simple support by ASPHostPortal ASP.NET hosting service. Besides YAF, is golden partner over lots of projects. By powering thousands of popular .net web applications, is official recommendation for such softwares.

You can get YetAnotherForum.NET CMS Hosting installed with a click of a mouse at Here are 5 reasons why we are the best:

Easy to Use Tools - use World Class Plesk Control Panel that help you with single-click YetAnotherForum.NET CMS installation.
Best Server Technology - The minimal specs of our servers includes Intel Xeon Dual Core Processor, RAID-10 protected hard disk space with minimum 8 GB RAM. You dont need to worry about the speed of your site.
Best Programming Support - hosting servers come ready with the latest PHP version. You can get access directly to your MySQL from our world class Plesk Control Panel.
Best and Friendly Support - Our customer support will help you 24 hours a day, 7 days a week and 365 days a year to assist you.
Uptime & Support Guarantees - We are so confident in our hosting services we will not only provide you with a 30 days money back guarantee, but also we give you a 99.9% uptime guarantee.

WCF Hosting with :: How to Secure WCF Service on IIS

clock May 21, 2014 13:24 by author Kenny

In this article i will explain about how to secure WCF Service on IIS. That is typically an easy requirement but I had a couple of restrictions:

- Only BasicHttpBinding could be used on the client-side
- Client credentials (username / password) must be sent and validated with each request

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application. An endpoint can be a client of a service that requests data from a service endpoint. The messages can be as simple as a single character or word sent as XML, or as complex as a stream of binary data.

One option is to send and validate the credentials as parameters to each method. This method is usually seen as unacceptable because credentials are passed across the service as plain-text. Do you want your password sent over a web service as plain-text?

After doing some research, I came up with a solution that is largely a combination of two sources: configuring a WCF service on IIS with SSL and username authentication over BasicHttpBinding… I’ll do my best to consolidate both of those sources for simplicity.

Programming / Configuring the WCF Service
1. Open Visual Studio.
2. Create a new ‘WCF Service Application’ project.
3. Define a service interface:

using System.ServiceModel;
namespace Brett.Service
    public interface IService1
        string GetData(int value);

4. Implement your service interface. Our  GetData method will return a string that shows the authenticated username and the integer value passed. If the current identity is not authenticated, we throw an exception (this is not our validation method, that is shown shortly):
using System;
using System.ServiceModel;
namespace Brett.Service
    public class Service1 : IService1
        public string GetData(int value)
            return string.Format("{0} entered: {1}", GetCurrentUserName(), value);
        private string GetCurrentUserName()
            var primaryIdentity = ServiceSecurityContext.Current.PrimaryIdentity;
            if (primaryIdentity.IsAuthenticated)
                return primaryIdentity.Name;
                throw new Exception(@"User is not authenticated...");

5. Implement a custom credential validator. The class needs to extend the abstract class UserNamePasswordValidator . The important implementation detail here is that you want to throw a FaultException  if the credentials are incorrect:
using System.IdentityModel.Selectors;
using System.ServiceModel;
namespace Brett.Service
    public class CustomValidator : UserNamePasswordValidator
        public override void Validate(string userName, string password)
            if (userName != @"hello")
                throw new FaultException(@"User name must be 'hello'.");

6. Edit your web config file. This is probably the most tedious portion of the process. I’ll go ahead and attach the whole file here:
<?xml version="1.0"?>
    <compilation debug="true" targetFramework="4.0" />
      <service name="Brett.Service.Service1"
        <endpoint address=""
                  contract="Brett.Service.IService1" />
        <endpoint address="mex"
                  contract="IMetadataExchange" />
        <binding name="Brett_BindingConfiguration">
          <security mode="TransportWithMessageCredential">
            <message clientCredentialType="UserName" />
        <behavior name="Brett_Behavior">
          <serviceMetadata httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true"/>
            <userNameAuthentication userNamePasswordValidationMode="Custom"
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    <modules runAllManagedModulesForAllRequests="true" />

Some important things to note here… We expose two endpoints – one for the BasicHttpBinding and one for service metadata (mex). We are using BasicHttpBinding  withTransportWithMessageCredential  security (that further specifies a message credential type ofUserName ). The service credentials point to our CustomValidator . This is the absolute minimum needed for me to get the web service working – all elements were needed.

7. Publish the project somewhere local on your machine (right-click project, publish).

Configuring IIS for WCF Service with SSL
1. Follow instructions in this guide, until you reach ‘Configure WCF Service for HTTP Transport Security’ (don’t do that part). I would list these out myself, but I think the visuals provided in the link are very helpful.
2. I ended up having some file access issues with my application pool, so I ended up making my application pool run as an administrator identity.

Programming / Configuring the WCF Client
1. Open Visual Studio.
2. Create a new ‘Windows Console Application’ project.
3. Add a new service reference – use the location of your WCF Service that is hosted with IIS. The metadata for the service has been downloaded and an app.config file has been produced. We won’t use the app.config.

Program the console application to make a call to the service:
using Brett.Client.ServiceReference1;
using System;
using System.ServiceModel;
using System.ServiceModel.Description;
namespace Brett.Client
    class Program
        static void Main(string[] args)
            var binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportWithMessageCredential);
            var endpointAddress = new
            using (var service = new Service1Client(binding, endpointAddress))
                var loginCredentials = new ClientCredentials();
                loginCredentials.UserName.UserName = @"hello";
                loginCredentials.UserName.Password = @"brett's password";
                var defaultCredentials = service.Endpoint.Behaviors.Find<ClientCredentials>();
                service.Endpoint.Behaviors.Remove(defaultCredentials); //remove default ones
                service.Endpoint.Behaviors.Add(loginCredentials); //add required ones
                var data = service.GetData(100);

Best ASP.NET 4.5.2 Hosting with New Features of ASP.NET 4.5.2

clock May 16, 2014 07:56 by author Ben


Finally, the long awaited release of ASP.NET 4.5.2, ASPHostPortal are happy to announce the availability of the .NET Framework 4.5.2 for all our hosting packages. It is a highly compatible, in-place update to the .NET Framework 4, 4.5 and 4.5.1.

The Microsoft .NET Framework 4.5.2 is a highly compatible, in-place update to the Microsoft .NET Framework 4, Microsoft .NET Framework 4.5 and Microsoft .NET Framework 4.5.1.

The .NET Framework 4.5.2 Preview is the first update of .NET Framework 4.5. It contains critical fixes, improvements, and opt-in features and is part of the Visual Studio 2013 and Windows 8.1 Previews. But it is also available as direct download without the requirement of having an existing .NET Framework 4.5 installation.

The .NET 4.5.2 Preview Framework update provides some fixes and multiple performance enhancements. There are no major language features, but nonetheless those upgrades become very handy and will allow for a more seamless and productive software development experience.

The .NET Framework 4.5.2 contains a variety of new features, such as:

  • ASP.NET improvements
  • High DPI Improvements - As part of recently released .NET 4.5.2, Windows Forms is seeing some improvements for its high DPI support.
  • Distributed transactions enhancement - This service provides applications with a way to support transactions that span multiple processes or even multiple machines.
  • More robust profiling
  • Improved activity tracing support in runtime and framework - The .NET Framework 4.5.2 enables out-of-process, Event Tracing for Windows (ETW)-based activity tracing for a larger surface area.
  • Event tracing changes - The ASP.NET Framework 4.5.2 enables out-of-process, Event Tracing for Windows (ETW)-based activity tracing for a larger surface area. This enables Advanced Power Management (APM) vendors to provide lightweight tools that accurately track the costs of individual requests and activities that cross threads.

Unique ASP.NET 4.5.2 Hosting Performance on our Shared Servers:

Build Your Website
Use's website building tools to get that special, customized look for your website. A nifty wizard will walk you through the process.
All-inclusive prices unbeatable value
Other companies promise cheap hosting, but then charge extra for setup fees, higher renewal rates, or promotional services. With, the listed price is the number you’ll pay, and you can expect a fully loaded, comprehensive suite of web services.
Fast and Secure Server

Our powerfull servers are especially optimized and ensure the best ASP.NET 4.5.2 performance. We have best data centers on three continent and unique account isolation for security.
Easy to Use and webspace explorer lets you manage your website files with a browser. A control panel lets you set up and control your server functions with ease.

Crystal Report Hosting:: How to Integrate Crystal Report in ASP.NET MVC 4.0

clock May 14, 2014 08:20 by author Ben

Crystal Reports has been the king of the reporting hill for some time. It offers the most powerful features of any report writer. And ASP.NET MVC 4.0 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of ASP.NET and the .NET Framework.In this article I will give tutorial how to integrate Crystal Report in ASP.NET MVC 4.0.


  • .Net framework 4.0
  • Entity Framework
  • Sql Server 2008

Just follow the steps and get result easily:
Step 1 - Create New Project
Go to File > New > Project > Select mvc4 web application > Entry Application Name > Click OK.

Step 2 - Add a Database.
Go to Solution Explorer > Right Click on App_Data folder > Add > New item > Select SQL Server Database Under Data > Enter Database name > Add.

Step 3 - Create table and insert data for show in report
Open Database > Right Click on Table > Add New Table > Add Columns > Save > Enter table name > Ok.

Step 4 - Add Entity Data Model.
Go to Solution Explorer > Right Click on Project name form Solution Explorer > Add > New item > Select Entity Data Model under data > Enter model name > Add.
A popup window will come (Entity Data Model Wizard) > Select Generate from database > Next >
Chose your data connection > select your database > next > Select tables > enter Model Namespace > Finish.

Step 5 Add Action for populate data.
Go To Controller > Add your action > write following code and Rebuild your application to get data from Database.
public ActionResult ReportsEverest()
List<everest> allEverest = new List<everest>();
using (MyDatabaseEntities dc = new MyDatabaseEntities())
allEverest = dc.Everests.ToList();
return View(allEverest);

Step 6 - Add View for show data on page.
Right Click on your Action > Add View > Enter View name > Check Create a strongly-type view > Select your model class > Select Scaffold templete > Select list > Add.

Run Your Application. And look the result,show in your browser.
Here I have added below line for Get Exported PDF File.
<a href="@Url.Action("ExportReport")"> Get Report in PDF</a>

Step 7 - Add Report file(.rpt) and Design your report.
Add "Reports" folder to your project
Right Click on "Reports" folder > Add > New item > Select Report under Reporing (Crystal Report file) > Enter report file name > Add.
Right Click On "Database Fields" under Fields Explorer > Database Expert > Project Data > .NET Objects > Select your Object > Click on simble ">>" > Ok.
Now Design your Report looks.

Step 8 - Add Action for generate PDF File for Report Data
Go To Controller > Add your action > write following code and Rebuild your application to get data from Database.

public ActionResult ExportReport()


            List<everest> allEverest = new List<everest>();

            using (MyDatabaseEntities dc = new MyDatabaseEntities())


                allEverest = dc.Everests.ToList();


            ReportDocument rd = new ReportDocument();

            rd.Load(Path.Combine(Server.MapPath("~/Reports"), "rpt_EverestList.rpt"));


            Response.Buffer = false;





                Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

                stream.Seek(0, SeekOrigin.Begin);

                return File(stream, "application/pdf", "EverestList.pdf");


            catch (Exception ex)





Step 10 - Run ApplicationClick on links "Get Report in PDF" and get your report in PDF format.

Best Crystal Reports Hosting with provides you with the technology to drive business performance with advanced reports generation capabilities of the Crystal Reports Hosting. The interactive reports generated by the software maximizes the reporting power of your business. These reports are delivered via Web, email, Microsoft Office applications or Adobe PDF, or as embedded enterprise applications. The interactive dashboards and simplified charts present the data in crystal clear form. With all these features, hosting with Crystal Reports helps you minimize the IT expenditure.


Windows Server 2012 Hosting:: Installing Hyper-V on Windows Server 2012

clock May 7, 2014 09:29 by author Ben

When installing Windows Server 2012, it matters if you have the retail version of Windows Server 2012 setup media or the volume license version. The retail version of Windows Server 2012 requires a product key to proceed. The volume license edition does not require a product key at installation time.

There are a few new features available in Windows Server 2012 Hyper-V, the most interesting are:

  • Hyper-V Virtual Machine (VM) Replication, a new disaster recover (DR) mechanism for VMs.
  • Virtual SAN Manager and the ability to deploy virtual fiber channel adapters to VMs.
  • New virtual hard drive (VHD) format ".vhdx" offers superior performance, capacity, and reliability over Hyper-V VHDs in Windows Server 2008.
  • Ability to Live Migrate VMs between hosts that are not in a cluster and have no shared storage.

Once you have verified and you are sure that the target computer system has all the prerequisites in place, and it meets the minimum hardware requirements, here is how you can install the Hyper-V role on the Windows Server 2012 standalone computer or Active Directory domain controller:

  1. Log on to the computer with the Administrator account (in case of standalone server) or Enterprise Admin or Domain Admin account (in case of Active Directory domain controller).
  2. If not already started, initialize the Server Manager window by clicking its icon from the bottom left corner of the screen.
  3. On the opened Server Manager window, from the top right corner, go to the Manage menu from the menu bar.
  4. From the displayed list, click the Add Roles and Features option.
  5. On the opened Add Roles and Features Wizard box, on the Before you begin window, click Next to proceed to the next step.
  6. On the Select installation type window, make sure that the Role-based or feature-based installation radio button is selected.
  7. Click Next to proceed to the next step.
  8. On the Select destination server window, make sure that the Select a server from the server pool radio button is selected.
  9. Also make sure that the target server (this server) is selected in the Server Pool list.
  10. Click Next to continue.
  11. On the Select server roles window, check the Hyper-V checkbox, and on the displayed box, click the Add Features button to add the additional features that are essential for the Hyper-V role.
  12. Back on the Select server roles window, click Next to proceed.
  13. On the Select features window, leave the default settings intact and click Next.
  14. On the Hyper-V window, read the information carefully and click Next.
  15. On the Create Virtual Switches window, check the checkbox representing the active Ethernet card in the Network adapters list.
  16. Click Next to continue to the next step.
  17. On the Virtual Machine Migration window, leave everything default for now and click Next.
  18. On the Default Stores window, click the Browse button to change the default virtual hard disk and Hyper-V configuration files’ locations. (You can leave the default settings intact for the testing purposes, like it is in this demonstration.)
  19. On the Confirm installation selections window, check the Restart the destination server automatically if required checkbox.
  20. Finally click Install to begin the Hyper-V role installation process on the Windows Server 2012 server.
  21. Once the installation process completes, and the system restarts, you can start creating the Hyper-V virtual machines on the server.

Note: It is important to store the virtual hard disk files to any location other than C:\ in order to prevent the system drive from getting overpopulated and over consumed, which may further result in decreased Windows Server 2012 performance.

Take Your Business to Next Level with Windows Server 2012 Hosting
While Windows Server 2012 general availability starts September 4th, new and existing clients can now take advantage of the powerful capabilities of Microsoft’s latest edition. In keeping with’s commitment to offer the most advanced tools and resources as they become available, support for Windows Server 2012 hosting falls right in line by providing a full suite of added features and benefits. Proudly Announces Cheap Windows Cloud Server Hosting

clock May 5, 2014 13:26 by author Kenny

-- Highly affordable Windows Cloud Server, Provisioned in just 5-10 minutes Start from $18.00/month! --, a leading Windows web hosting provider, proudly announces the most affordable Windows Dedicated Cloud Server. With Windows Dedicated Cloud Server Services from, you’ll find the perfect Cloud Server solution for your business. Web pages will load faster for ecommerce customers, databases will get higher IOPS and applications streaming large volumes of video and media files will experience low latency when customers run their applications. With cloud servers, you have the ability to upgrade and downgrade your servers on the fly. In some cases depending on the Operating System running on the cloud server it may still require a reboot. Migrating your cloud server to a different physical server can usually be accomplished with no downtime via hot migration. offer Windows Dedicated Cloud Server with the following features:

  • Windows 2008R2/2012
  • Data Center OS Version
  • 1 x vCPU
  • 1 GB RAM
  • 40 GB Storage (SSD)
  • 1000 GB Bandwidth
  • 1000 Mbps Connection
  • 1 Static IP
  • SAN Storage

"An scalable and flexible cloud servers account costs $18.00 per month and gives you 40 GB Storage (SSD), SSD might make the server boot faster, it is now up to 100 times faster than a hard drive" said Dean Thomas, Manager at

Cloud hosting systems are run on systems with very powerful processors with SAN Storage which is typically faster for most applications.  A storage area network can be easier to manage than other storage systems. By consolidating information into one easily accessible place, it becomes easier to access information while also making it simple to increase capacity as and when required.

Windows Cloud server probably holds the best stability / cost ratio performance. They do not suffer from the usual server hardware problems and they have all Cloud computing, benefits, i.e. they are stable, fast and secure.

Where to look for the best Windows cloud server service? How to know more about the different types of hosting services? Read more about it on

About is a hosting company that best support in Windows and ASP.NET-based hosting. Services include shared hosting, reseller hosting, and SharePoint hosting, with specialty in ASP.NET, SQL Server, and architecting highly scalable solutions. As a leading small to mid-sized business web hosting provider, strive to offer the most technologically advanced hosting solutions available to all customers across the world. Security, reliability, and performance are at the core of hosting operations to ensure each site and/or application hosted is highly secured and performs at optimum level.

Affordable osCommerce Hosting with :: How to Enable SSL on osCommerce Site

clock May 2, 2014 06:01 by author Ben

osCommerce is one of the earliest online shopping software in the market and in few recent years if we saw the ratio of shopping cart software users then it seems that the users of oscommerce is booming increase in the world. Most online owner prefer oscommerce as it is open source shopping cart for every one.

osCommerce is open source shopping software and particularly adapted with regard to array of online businesses. OsCommerce absolutely allows you with regard to corporations in order to open up a web business. No matter, whether you are an existing web based business creating the actual changeover in order to OsCommerce, or a brick and mortar retailer venturing directly into web based business with regard to the 1st time, osCommerce can work for you. Minor business organization has highly confined price range as a result they could certainly not to do OsCommerce development from the damage. There are many free templates for oscommerce available in the market they can pick a ready made template which often suited for a business certain desires.

Being the most popular open source Ecommerce solution available on the web, you'll see the difference with osCommerce from the very first click:

set up within just minutes - One of the best features of osCommerce is the speed at which it can be configured and can start to sell your products online within just minutes of installation

built-in features and flexibility
- osCommerce provides powerful built-in functionality including: product catalogue, account management, secure Administrator's panel plus online tools and reporting features. In addition, there are hundreds of contributions to upgrade osCommerce or to make it compatible with third party accounting systems.

ideal for Search Engine Optimisation
- osCommerce is easy to configure so that it can be meaningfully indexed by the major Search Engines. Customers can find your website by simply typing product names or similar keywords into their web searches. You can significantly increase your visibility and subsequent online sales by utilising osCommerce Search Engine Optimisation.

In this article, i'm going to explain about how to enable SSL in osCommerce, you will first need to purchase an SSL certificate and Dedicated IP. This article assumes that you already purchase an SSL from SSL provider.

In order to configure osCommerce to work with SSL you should open the file public_html/catalog/includes/configure.php and make the following changes:

define(‘HTTP_SERVER’, ‘’); // eg, http://localhost – should not be empty for productive servers
define(‘HTTPS_SERVER’, ‘’); // eg, https://localhost – should not be empty for productive servers
define(‘ENABLE_SSL’, true); // secure webserver for checkout procedure
define(‘HTTP_COOKIE_DOMAIN’, ‘’);
define(‘HTTPS_COOKIE_DOMAIN’, ‘’);
define(‘HTTP_COOKIE_PATH’, ‘/catalog/’);
define(‘HTTPS_COOKIE_PATH’, ‘/catalog/’);
define(‘DIR_WS_HTTP_CATALOG’, ‘/catalog/’);
define(‘DIR_WS_HTTPS_CATALOG’, ‘/catalog/’);

Similar to the above changes have to be made in the file public_html/catalog/admin/includes/configure.php which is responsible for the admin area configuration.

In the above example we are configuring an osCommerce installation in the catalog directory with domain You should adjust the above settings to your details.

If you are having problems to enable SSL on osCommerce site, contact your host for assistance. provides the best osCommerce hosting and such requests are handled with ease.


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

 photo ahp banner aspnet-01_zps87l92lcl.png

Author Link

Corporate Address (Location)

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

Sign in