Windows Reseller Hosting with ASPHostPortal.com

Articles about Special Reseller Hosting Package with ASPHostPortal.com

Reseller Hosting - ASPHostPortal.com to Launch New Data Center in Paris

clock November 10, 2014 10:46 by author Kenny

ASPHostPortal.com to Launch New Data Center in Paris, France on November 2014

ASPHostPortal is known for credible and unswerving web hosting solutions. Apart from the reliability of the ASPHostPortal Uptime, which features 99.9 per cent average uptime, ASPHostPortal also offers outstanding data center which reflects ASPHostPortal high speed and high performance hosting package.  Recently, ASPHostPortal.com launch its new data center in Paris, France on 9th November 2014 with room for more than 10,000 physical servers, and allowing customers’ to meet their France data residency requirements.

The new facility will provide customers and their end users with ASPHostPortal.com services that meet in-country data residency requirements. It will also complement the existing ASPHostPortal.com Amsterdam data center and London data center, to provide European customers redundancy options within the region. The Paris data center will offer the full range of ASPHostPortal.com web hosting infrastructure services, including bare metal servers, virtual servers, storage and networking.

ASPHostPortal offers the perfect combination of affordability and reliability.  They have an excellent uptime history with several months this year boasting more than 99.9% average uptime.  Their hosting package reflects speed and performance.  Their data center can take much of the credit for such superb services. The new data center will allow customers to replicate or integrate data between Paris, London and Amsterdam data centers with high transfer speeds and unmetered bandwidth (at no charge) between facilities.

“With ASPHostPortal, choosing the data center location is a free feature and option to all customers. The customer simply chooses US, Europe, Asia or Australia. It's simple, intuitive and convenient. The option is free, and there will never be any other cost to the user associated with this option,” said Dean Thomas, Manager at ASPHostPortal.co

Clients who have any questions about the feature and the option that is most suitable for their purposes should feel free to contact ASPHostPortal through their 24/7/365 customer support team. ASPHostPortal will help you choose the right option that will best suit your needs.

For more information about new data center in France, please visit http://asphostportal.com/Hosting-Data-Center-France.

About ASPHostPortal.com:

ASPHostPortal.com 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, ASPHostPortal.com 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.



Cheap ASP.NET 4.5 Hosting :: Simple Script to Integrate PayPal Donate Button on Your ASP.NET Pages

clock July 14, 2014 08:49 by author ben

If you are collecting donations for a large number of beneficiaries, you may be considered an organization. There are specific laws surrounding fundraising practices for organizations, and you will need to register your organization as such (if applicable) before setting up a fundraising account. Because government regulations regarding charitable organizations differ from region to region, you should check with your local government to determine if this applies to your charity and PayPal donations can help you for it.


Setting up PayPal donations is an ideal way to let people contribute money to your cause online. The PayPal donation button works much like the Buy Now button, except it allows you to indicate to customers they are making a donation rather than purchasing a product. You can learn how to set up a PayPal button for donations and make buttons for any of the currencies PayPal supports. You can make buttons for fixed donation amounts or allow the donor to choose how much he or she wants to send.

Here is the script to integrate PayPal donation button on ASP.NET Pages:

<form id="paypal" name="PayPal" method="post" action="https://www.paypal.com/cgi-bin/webscr">
        <input type="hidden" name="cmd" value="_cart">
        <input type="hidden" name="upload" value="1" />
        <!--<input name="image_url" type="hidden"  />-->
        <input type="hidden" name="invoice" value="<%= Session["orderid"] %>" />
        <!-- The following is for itemized PayPal data instead of the aggregated version -->
        <%=PaypalItemList%>
        <input type="hidden" name="tax_cart" value="0.00" />
        <!-- STANDARD DATA -->
        <input name="rm" type="hidden" value="2" />
        <input type="hidden" name="business" value="<%=GetPaypalEmail() %>" />
        <input type="hidden" name="no_note" value="1" />
        <input name="lc" type="hidden" value="US" />
        <input type="hidden" name="currency_code" value="<%=GetPaypalCurrCode()%>" />
        <input type="hidden" name="notify_url" value="<%=GetNotifyUrl()%>" />
        <input type="hidden" name="return" value="<%=GetSuccessUrl() %>" />
        <input type="hidden" name="cancel_return" value="<%=GetFailureUrl() %>" />
        <input name="email" type="hidden" value="<%=GetPaypalEmail() %>" />      
        &nbsp;&nbsp;
        <asp:Button ID="btnback" runat="server" CssClass="big_btn" Text="Back" OnClick="btnback_Click"
            UseSubmitBehavior="False" Width="65px" />&nbsp;
        <asp:Button ID="btnppconti" runat="server" CssClass="big_btn" UseSubmitBehavior="true"
            Text="Continue" Width="69px" />
    </form>


ASPHostPortal.com is your ASP.NET 4.5 hosting home! We understand that as .NET developer, you need to find good .NET hosting that provide reliable and cheap .NET hosting. We have upgraded all our servers to be fully compatible with .NET 4.5 technology. With our complete hosting control panel, you can switch the version easily and instantly without bringing your entire site down. It is fully automated and switching the version just with one click, easy and fast. ASPHostPortal.com supports the latest .NET framework, .NET 4.5, as well as past frameworks like .NET 4, .NET 3.5, and .NET 2.0. All of our .NET hosting comes with FREE Trial Hosting. If the service does not meet your expectations, simply cancel before the end of the free trial period. No Risk!! Why wait longer?



ASP.Net 4.5.1 Hosting with ASPHostPortal.com :: Securing ASP.NET 4.5.1 / WCF with Forms Authentication

clock March 3, 2014 12:24 by author Diego

Windows Communication Foundation (WCF) is a framework for distributed application. WCF is the easiest way to produce and consume Web services on the Microsoft platform. The mechanism of WCF operation is similar to ASP.NET web services (WS). Clients can invoke and consume multiple services, and a single service can be consumed by multiple clients. web services -Addressing, web services -Reliable Messaging and web services -Security are some of the Web Services specifications that are implemented by WCF. Now with this article shows how to secure a Windows Communication Foundation (WCF) service with Forms Authentication.

So, here is to enable the authentication service :

  • use built-in template in Visual Studio 2010
  • Create authentication WCF Service
  • Create Data WCF RESTful serviceCreate some basic functionality to perform CRUD operations on a Person object. 
  • Create users table I am going to use for authentication.

write the following code for operational RESTful service

using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Web.Script.Services;
 
 
namespace CustomWcfRestService
{
    [
ServiceContract]
    [
AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    [
ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
   
public class CustomService
    {
        [
WebGet(UriTemplate = "/GetPeople", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public List<Person> GetPeople()
        {
           
using(var ctx = new Context())
            {
                ctx.Configuration.LazyLoadingEnabled =
false;
                ctx.Configuration.ProxyCreationEnabled =
false;
               
return ctx.People.OrderBy(one => one.LastName).ThenBy(two => two.FirstName).ToList();
            }
        }
 
        [
WebInvoke(UriTemplate = "/Create", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public Person Create(Person person)
        {
           
using (var ctx = new Context())
            {
                ctx.Entry(person).State =
EntityState.Added;
                ctx.SaveChanges();
               
return person;
            }
        }
 
        [
WebGet(UriTemplate = "/GetPerson?id={id}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public Person Get(int id)
        {
           
using (var ctx = new Context())
            {
                ctx.Configuration.LazyLoadingEnabled =
false;
                ctx.Configuration.ProxyCreationEnabled =
false;
               
return ctx.People.Find(id);
            }
        }
 
        [
WebInvoke(UriTemplate = "/UpdatePerson", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public Person Update(Person person)
        {
           
using (var ctx = new Context())
            {
                ctx.Entry(person).State =
EntityState.Modified;
                ctx.SaveChanges();
               
return person;
            }
        }
 
        [
WebInvoke(UriTemplate = "/GetPerson?id={id}", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public void Delete(int id)
        {
           
using (var ctx = new Context())
            {
               
var person = new Person {ID = id};
                ctx.Entry(person).State =
EntityState.Deleted;
                ctx.SaveChanges();
            }
        }
 
    }
}

 

  • LoginService that I will use for authentication. Configure forms authentication in asp.net config

using System;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Web.Security;
using System.Web;
 
 
namespace CustomWcfRestService
{
    [
AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    [
ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
   
public class LoginService : ILoginService
    {
 
       
public bool Login(string userName, string password)
        {
           
bool returnValue = false;
           
User user;
           
using (var ctx = new Context())
            {
                user = ctx.Users.Where(one => one.UserName == userName).FirstOrDefault();
               
if (user != null)
                {
                    returnValue = (user.Password == password);
                }
            }
           
if (returnValue)
            {
               
var ticket = new FormsAuthenticationTicket(
                        1,
                        userName,
                       
DateTime.Now,
                       
DateTime.Now.AddDays(1),
                       
true,
                        user.UserID.ToString()
                    );
               
string encryptedTicket = FormsAuthentication.Encrypt(ticket);
               
var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket);
               
HttpContext.Current.Response.Cookies.Add(cookie);
 
            }
           
return returnValue;
        }
    }
}

  • Below Configure forms authentication in asp.net config is sample web.config configuration for enable actual security.

<?xml version="1.0"?>
<configuration>
    <connectionStrings>
        <add name="SecuredServiceDemo"
           connectionString="Server=.;Integrated Security=SSPI;Database=SecuredServiceDemo"
           providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <authentication mode="Forms">
        </authentication>
        <authorization>
            <deny users="?"/>
        </authorization>
    </system.web>
  
    <location path="LoginService.svc">
        <system.web>
            <authorization>
                <allow users="?"/>
            </authorization>
        </system.web>
    </location>

 

  • And The last create a test client, create validate credentials against database. creating custom cookie, encrypting it and sending back to the client.

HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty();
httpRequestProperty.Headers.Add(HttpRequestHeader.Cookie, FormsAuthentication.GetAuthCookie(User.Identity.Name, false).Value);
ServiceReference1.Service1Client serviceClient = new WebApplication1.ServiceReference1.Service1Client();
using (OperationContextScope scope = new OperationContextScope(serviceClient.InnerChannel)){
OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty;
string s =serviceClient.GetData(2);}

At the service side

HttpRequestMessageProperty g = OperationContext.Current.IncomingMessageProperties[HttpRequestMessageProperty.Name] as HttpRequestMessageProperty;
string s = g.Headers.Get(HttpRequestHeader.Cookie.ToString());
FormsAuthenticationTicket tick = FormsAuthentication.Decrypt(s);

There are many ways to authenticate and authorize a user in a WCF Service, but in this example, the authentication cookie will already be created by the login page and that will be used by subsequent requests made to the REST service for authorization. This is it to secure <a href="http://asphostportal.com/ASPNET-451-Hosting">ASP.NET 4.5.1 Hosting</a>  Windows Communication Foundation (WCF) service with Forms Authentication

Just to confirm that everything is working, I can just comment out the part that authenticates and gets a cookie, and I get 404 as expected. Once authenticated, a "session" is kept to hold on to security related info like the roles of a user.

Happy coding :)



Cheap Reseller Hosting

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

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

Author Link

 photo ahp banner aspnet-01_zps87l92lcl.png

Corporate Address (Location)

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

Sign in