Windows 2012 Hosting - MVC 6 and SQL 2014 BLOG

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

How To Enable .CSHTML Support In Windows Server 2012

clock October 24, 2013 12:25 by author andry

C# ("C sharp")is  HTML webpage file used by Razor, an ASP.NET view engine used for generating Web pages for a user's Web browser; similar to a standard ASP.NET webpage (.ASP or .ASPX file), but uses a slightly different syntax; runs on a Web server, which generates the HTML for the client Web browser; can be programmed with syntax highlighting.

If we build a website that contains .cshtml file, we must enable .cshtml file. At the below, there is an error message if we don’t enable .cshml file.

To enable .cshtml file on windows Server 2012, There are steps to solve that problem. Open your IIS.

Expand “server”-> “sites” and choose “domain”.  Then click on Handler Mapping.

You can't find .cshtml. After that, choose “Revert to Parent” on right tab.

Select "Yes" and Look,what the difference with the previous image.

.cshtml file are enable and available. Now browse the domain. If you still can not access and have an error. You should check the .NET version. Remember that .Cshtml file can only be run on .NET version 4 and above.

To check the .Net version, select "application pools" -> right click on "domain_name" -> "Basic settings" -> choose .Net 4 version -> "Ok".

Now you can browse your domain with .cshtml file. Here is screenshot.



Wordpress Hosting - How to configure and install wordpress using Webmatrix

clock October 23, 2013 08:41 by author andry

There are many way to create a website, one of them is creating a website using WebMatrix. To install WebMatrix on your local computer, you need mysql and mysql connector installer. Please install all on your local computer. This is very important if you later install a web application that uses  mysql database e.g wordpress. After you install mysql, please configure your mysql password root.if wrongly configure, then the error will appear as below.

After configuring mysql, then install WebMatrix on your local computer. Below is a screenshot of WebMatrix after install.

 

To install WordPress using WebMatrix, choose "New" -> "App Gallery" -> choose "wordpress icon" and "next" -> "I accept". Wait for installing wordpress. If wordpress have successfully installed, will appear like this.

Click “Ok”. And wordpress successfully installed on your local computer. Now we will publish wordpress to the server. Here is how to publish wordpress.

Go to “remote”-> “settings” -> “enter settings”. Fill in the following details.

After the validation test connection. If successful you will see "connected succesfully". Click on “Save”. To publish it on the server, On the menu bar, select “Publish” -> On ” Publish compatibility” window, choose "continue" -> "continue" -> on “publish preview” window, tick "delete files on a remote server" and choose "continue" again and let the process run as shown below .

If it appears like this means successful.

Please visit the website and wordpress already active.



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

 photo ahp banner aspnet-01_zps87l92lcl.png

Author Link

Corporate Address (Location)

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

Sign in