Site hosting news, tutorials, tips, How Tos and more

Configuring Elmah for use with ASP.NET Core

howto

Years ago, I wrote an article on how to configure Elmah to be used on Winhost.  You may have noticed that there is no official support for ASP.NET Core, however, you can use ElmahCore by barestan to perform the same logging to a database, and this blog provides an example on how to set that up.

First, we’ll start by creating a New Project in Visual Studio:

 

 

 

 

services.AddElmah<SqlErrorLog>(options =>
{
    options.ConnectionString = @"connection_string";
});
app.UseElmah();

That’s it.  If you want to know if it’s working, you can generate a sample exception like this:

app.Run(async (context) =>
{                
    await context.Response.WriteAsync("Hello World!");
    int[] numbers = new int[5];
    await context.Response.WriteAsync(numbers[6].ToString());
});

That will generate an “Index was outside the bounds of the array.” exception which will be logged into the database.  You can query the dbo.ELMAH_Error table to see the results.



Chrome Browser v68 – Will your site be “Not Secure”?

Earlier this year, Google announced that their Chrome browser v68 update will warn users that any non-HTTPS site is “Not Secure”.  The release date for this update is slated for July 2018 – this month!

Check out what the Chrome browser will display (from the Chromium Blog):

 

non-HTTPS site warning

 

Over the past years, Google has been slowly pushing all sites to be under SSL. Their efforts thus far shows that over 60% of Chrome traffic is now protected. Now that a majority of sites are protected, Google is moving to their next phase, which is to use their large install base of the Chrome browser to push even further.  From our research, the update hasn’t made it out yet but it is slated for this month.

 

RapidSSL Flash Sale
So it is time to consider securing your site. And to help you out we are having a Flash Sale on RapidSSL SSL certificates.

For the rest of July we are reducing the RapidSSL pricing to:
1 Year: $29
2 Years: $50

Customers can order RapidSSL through their Control Panel and they can get this special pricing during this time period.

 

Other SSL Options
Please also note that you can use an SSL certificate that was purchased/obtained elsewhere with your Max and Ultimate hosting plan.

 

If you have any questions, please contact our technical support team.

 

 

 

 



Office 365 Plans Available

banner-announcements

Today, we announce that Office 365 Plans are available for our USA-based customers.

What is Office 365?
Office 365 is a subscription service offered by Microsoft that gives you all the business productivity software you are familiar with – like Word, Excel, and PowerPoint and more. Office 365 is in the cloud so you can work from anywhere and from any device (PCs, Macs, Android tablets and phones, iPad, iPhone) – and on top of that, unlike one-time purchases of Office,  you won’t have to worry about upgrades ever again. You’ll always have the latest versions with the latest features.

office 365 applications

Office 365 subscriptions can come with Exchange email service which supports your custom domain and comes with a 50 GB mailbox.

Office 365 subscriptions can also include full Office desktop software, Office online services like Exchange, SharePoint, Skype for Business, and Microsoft Teams.

Office 365 Services

And you also get 1 TB of Cloud storage on OneDrive.

It’s the Office you know, but better. Find out more details about Office 365 plans, pricing and features on our website.

 

 



Spring App Installer Updates

The latest version of these apps are now available:



How we celebrate World Backup Day

I just found out that March 31st, 2018 is World Backup Day!

We had a quick meeting and decided to celebrate this special day by checking our backup system to make sure its functioning and continuing to backup our customer’s site/data like we do every day for disaster recovery.

If you haven’t done so in a while, we do recommend that you take the time to backup your websites and databases. March 31st would be a good day as any but it’s a good idea to make a schedule for backups at whatever time interval works for you and your needs. If you have any questions about backups, please contact our technical support team.

And if you want to celebrate World Backup Day everyday like us, then you can check out our SiteBackup service, which will automatically perform a daily backup of your website and databases for any of your websites hosted at Winhost or even websites and databases that are hosted at another hosting provider.

Happy World Backup Day!

 

 

 



Windows 2016 hosting available

banner-announcements

Hosting on Windows 2016 is available as an option when you sign up. Windows 2016 hosting comes with IIS 10.X.

If you are an existing customer and wish to move to a Windows 2016 server, contact our technical support team and they can migrate your site.

 



Scott Hanselman demos .NET Core cross-platform capabilities – OR – shows how hard it is to run .NET Core on linux shared hosting

Scott Hanselman recently blogged about getting ASP.NET Core to run on a cheap shared Linux hosting account at GoDaddy. The point of the article was to demonstrate that .NET Core is cross-platform and can even run with all the constraints of a shared hosting plan.

The post was impressive, but Scott repeated several times and even put it in the title of his post – “Don’t try this at home” – because of all the hacky hoops you had to jump through to get .NET Core to work.

I found the post an interesting read, but while I was reading through the article, I couldn’t stop thinking – why go through all that trouble to run .NET Core on a “cheap” ($3/mo plan that turns into $8/mo) linux plan, when you can run .NET Core out-of-the-box on Windows hosting providers – like Winhost. Even with our Basic Windows hosting plan (that starts at $3.95/mo), .NET Core is supported.

At Winhost you can deploy .NET Core apps straight from Visual Studio or, if the specific Core framework version is not on the server, you can use Self-Contained Deployment.

I totally understand that Hanselman’s blog was a “theoretical” exercise to demonstrate the versatility of .NET Core. But when you actually want to do something real with .NET Core, you are going to want to be on a hosting environment that makes it easier for you, not harder.

 



The Chrome Browser and Symantec SSL Certificates

You may be aware of the problem that Symantec has been having with Google over issuing of a large number of SSL certificates for major domains to individuals who were not associated with the domains. It’s a long story, but the result was Google informing Symantec that the Chrome browser would no longer trust SSL certificates issued by Symantec. The revocation of trust was to occur gradually over certain dates.

As a result, Symantec sold their SSL certificate business to another company that Google does trust. It becomes a little confusing though, since the new company is keeping the Symantec name for the certificates they issue.

If you bought an SSL certificate from us, you have either a RapidSSL, GeoTrust QuickSSL or GeoTrust True BusinessID certificate, and those are Symantec certificates.

Are you affected?

If, like most users, you renew your SSL certificate every year, this issue should not affect you. When you renew, the certificate will still be issued by Symantec, but it will be issued by the new incarnation of Symantec which Google trusts.

If you purchased a multi-year SSL certificate, check this timeline to see if there are any important dates that you should be aware of:

Certificates issued before June 1st, 2016

The Chrome browser will no longer trust this certificate after March 15, 2018. In order to retain trust by the Chrome browser, you need to replace this certificate.

Certificates issued after June 1st, 2016

The Chrome browser will no longer trust this certificate after September 13, 2018.

If you have a multi-year cert and aren’t quite sure if you’re affected, open up a support ticket and we’ll help you out.