Windows 2012 Hosting - MVC 6 and SQL 2014 BLOG

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

WebMatrix Hosting :: SEO Report In Microsoft WebMatrix

clock July 31, 2013 09:06 by author Ben

WebMatrix was built to streamline Web development and make it easy, whether you're getting started or you just want to get things done. It lets you focus on what’s important — your Web site.

SEO (Search Engine Optimization) is the effort to the make your website on the first position on the search engines like google, yahoo, bing, etc.


WebMatrix SEO Report feature that has Allows you to check the web script so that you can order search engine optimization friendly. In the example I was trying to make a simple script report.

Open Web Matrix, select Reports on the left menu.



After that there will be a form of SEO report settings. I let it default.



After setting Report saved, you can directly check validation of your web site. If anyone should be in WebMatrix optimization will give you a warning.



And know you can see it work! :)

 



WebMatrix Hosting – ASPHostPortal.com :: Quick Start screen

clock May 8, 2013 08:05 by author Ben

Microsoft has just introduced the new version of WebMatrix. When this post is written it’s still in BETA version.

if you were ASP.NET developer when it’s in 1.1 version, you might ever tried WebMatrix, it was free as it’s today. At that time there was no Express edition of Visual Studio and WebMatrix was the free tool to develop ASP.NET website if you didn’t want to buy Visual Studio.

What is this?
WebMatrix is everything you need to build Web sites using Windows. It includes IIS Developer Express (a development Web server), ASP.NET (a Web framework), and SQL Server Compact (an embedded database). It streamlines Web site development and makes it easy to start Web sites from popular open-source apps. The skills and code you develop with WebMatrix transition seamlessly to Visual Studio and SQL Server.

Why Use It?
You will use the same powerful Web server, database engine and web framework that will run your Web site on the Internet, which makes the transition from development to product seamless. Beyond ensuring everything just works, WebMatrix includes new features that make Web development easier.

Who’s it for?
WebMatrix is for developers, students, or just about anyone who just wants a small and simple way to build Web sites. Start coding, testing, and deploying your own Web sites without having to worry about configuring your own Web server, managing databases, or learning a lot of concepts. WebMatrix makes Web site development easy.

Code Without Boundaries
WebMatrix provides an easy way to get started with Web development. With an integrated code editor and a database editor, Web site and server management, search optimization, FTP publishing, and more, WebMatrix provides a fresh, new Web site development experience that seamlessly bridges all the key components you need in order to create, run, and deploy a Web site.

As your needs grow, the code and skills you develop can seamlessly transition to Visual Studio – Microsoft’s premier development suite.

WebMatrix – Quick Start screen
On first-time run of Microsoft WebMatrix, below screen will be the default screen on WebMatrix.

if you don’t like it you can disable it by giving “Do not show this screen on start-up” a check mark. It will then run My Sites as default screen and open the last site you’re working with.

Later you want the Quick Start screen to get back you can close the opened site it will bring you the Quick Start screen and you can remove the check mark if you want.

Okay let’s try the menu item one by one.

My Sites
It will open a dialog with all sites you ever worked with in the list. Select a site and click OK button to open, or you can just double click the site.

I found that there is no way to remove a site from the list at this Beta version. Maybe it will be added in the newer version… let’s hope… err suggest to them.

Site From Web Gallery
This option will open a dialog to select a website or application from Web Gallery. This is the same as installing community website or application using Web PI but in this Microsoft WebMatrix the website or application will not be installed in IIS but rather they will be stored in %user%\Documents\My Web Sites folder and will be run in IIS Developer Express by default when you’re working with the site on WebMatrix. (if you want you can also add the website or application to your computer IIS manually)

Site From Template
This is where all funs will start. You can create your own site from online templates listed there.

When you create a new site from template, you will find that there are new extensions .cshtml and .vbhtml – yep they are new extension introduced by Microsoft as ASP.NET Web Page and  it supports Razor Syntax.



WebMatrix Hosting - ASPHostPortal :: New Features WebMatrix 2 Beta

clock March 9, 2012 07:04 by author Administrator

There are bunch of NEW features in WebMatrix 2 Beta on top of WebMatrix 1, but I wanted to just call out few top items:

- Even more seamless and awesome integration with
Application Gallery where now you will not have to fill in the standard application installation parameters

- OSS Application specific code completion which means users of popular apps like WordPress can get help customized to their applications


- Custom look and feel for each Web Application which means if you are editing Umbraco you will feel like WebMatrix is designed for Umbraco with specific contextual actions called out by application authors.


- Intlellisense for HTML, CSS, JS, C#, VB, ASP.NET Razor as well as PHP.


- Support for HTML5, CSS3 as well as jQuery constructs.


- New awesome tools like color picker.


- Completely revamped Database workspace where you can now execute multiple queries.


- Extensibility support by which you can write your own extension for WebMatrix.  And trust me it is so easy that you can whip out a ribbon button to do something cool just within minutes.


- NuGet integration to allow you to build your app with community by your side.


- Remote tools which will allow you to see the server files and even edit them within seconds.


- Integrated learning experience with learnable, pluralsight and appendto


- And more and more…


You can read all about it at
http://webmatrix.com/next

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what
ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.

- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.

- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.

- Data Center

ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.

- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.

- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.

- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.

 



WebMatrix Hosting - ASPHostPortal :: New Features WebMatrix 2 Beta

clock March 9, 2012 07:04 by author Administrator

There are bunch of NEW features in WebMatrix 2 Beta on top of WebMatrix 1, but I wanted to just call out few top items:

- Even more seamless and awesome integration with
Application Gallery where now you will not have to fill in the standard application installation parameters

- OSS Application specific code completion which means users of popular apps like WordPress can get help customized to their applications


- Custom look and feel for each Web Application which means if you are editing Umbraco you will feel like WebMatrix is designed for Umbraco with specific contextual actions called out by application authors.


- Intlellisense for HTML, CSS, JS, C#, VB, ASP.NET Razor as well as PHP.


- Support for HTML5, CSS3 as well as jQuery constructs.


- New awesome tools like color picker.


- Completely revamped Database workspace where you can now execute multiple queries.


- Extensibility support by which you can write your own extension for WebMatrix.  And trust me it is so easy that you can whip out a ribbon button to do something cool just within minutes.


- NuGet integration to allow you to build your app with community by your side.


- Remote tools which will allow you to see the server files and even edit them within seconds.


- Integrated learning experience with learnable, pluralsight and appendto


- And more and more…


You can read all about it at
http://webmatrix.com/next

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what
ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.

- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.

- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.

- Data Center

ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.

- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.

- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.

- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.

 



WebMatrix Hosting - ASPHostPortal :: Common Error in WebMatrix

clock February 28, 2012 10:07 by author Jervis

Because Web Deploy is a client-server product, unless it is set up correctly, chances are you will hit a wall pretty quickly at the point where a connection is made. In this blog post, I will show you common solutions for common errors.

Read on for general tips and recipes for fixing common connectivity errors.


General Tips

-
Web Deploy sometimes returns different information in errors messages if you provide administrator credentials vs. non-administrator credentials. If you hit an error, try to run the command as administrator.
-  
Web Deploy sometimes returns different information if source and destination machine are the same vs. destination machine is remote. If you hit an error, try to run it on the remote machine.
-
Run the command with –verbose and –debug switches. These will make Web Deploy spit out more information which can be useful in debugging.

Error: 503 Server Unavailable

Error Trace:

msdeploy.exe -verb:dump -source:apphostconfig,computerName=demo-host

Error: Object of type ‘appHostConfig’ and path ” cannot be created.
Error: Remote agent (URL http://demo-host/MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
Error: An unsupported response was received. The response header ‘MSDeploy.Response’ was ” but ‘v1′ was expected.
Error: The remote server returned an error: (503) Server Unavailable.
Error count: 1.

Why it happens:


- Incorrect destination name or host unreachable.
- Remote Agent Service not installed on destination.

How to fix it:


- Make sure you can ping the remote computer.

- Run this command on the destination in an elevated command prompt: “net start msdepsvc”. This will start the Remote Agent Service on the destination, which allows administrator deployments.

Error: Default credentials cannot be supplied for the basic authentication scheme


Error Trace:

msdeploy.exe -verb:dump -source:apphostconfig,wmsvc=demo-host
Error: Object of type ‘appHostConfig’ and path ” cannot be created.
Error: The specified credentials cannot be used with the authentication scheme ‘basic’.
Error: Default credentials cannot be supplied for the basic authentication scheme.
Parameter name: authType
Error count: 1.


Why it happens:

-
You are telling Web Deploy to connect to the Web Management Service on the destination. By default, Web Deploy will connect using HTTP Basic Authentication.
-
When using HTTP Basic Authentication, specific credentials must be supplied, which is not true in the command shown above.

How to fix it:

Change the command to:

msdeploy.exe -verb:dump -source:apphostconfig,wmsvc=demo-host,authType:basic,username=someuser,password=somepassword

Error: The remote certificate is invalid according to the validation procedure.

Error Trace:


msdeploy.exe -verb:dump -source:apphostconfig,wmsvc=demo-host,authType=basic,username=someuser,password=somepassword
Error: Object of type ‘appHostConfig’ and path ” cannot be created.
Error: Could not complete the request to remote agent URL ‘https://demo-host:8172/msdeploy.axd?Site=’.
Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Error: The remote certificate is invalid according to the validation procedure.
Error count: 1.

Why it happens:


- You are connecting to the destination using the Web Management Service (wmsvc), which creates an HTTPS connection.
- The certificate on the destination is invalid, so you see this error.

How to fix it:

-
Install a valid wmsvc certificate on the destination
-
OR add the –allowUntrusted flag on the command

msdeploy.exe -verb:dump -source:apphostconfig,wmsvc=demo-host,authType=basic,username=someuser,password=somepassword –allowUntrusted

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.

- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.

- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.

- Data Center

ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.

- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.

- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.

- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



WebMatrix Hosting - ASPHostPortal :: Passing value within 2 WebPages using Razor syntax

clock February 16, 2012 07:58 by author Jervis

Following will be the example if you would like to use Request QueryString to pass value between 2 CSHTML page.

We have have 2 web pages, Page.cshtml and Page2.cshtml. Under Page.cshtm, there will be a textbox and a button, whatever user enter in the textbox, it will be pass over to Page2.cshtml.

Here the code on Page.cshtml. We use the Request.Form to capture the input by the user from the textbox. The value then store in the variable "formValue" which will be pass over to Name under Response.Redirect.

@{ 
    var formValue = Request.Form["myTextBox"];  
    if (IsPost) 
     { 
         
        Response.Redirect("Page2.cshtml?name=" + formValue); 
         
     } 

<!DOCTYPE html> 
 
<html lang="en"> 
    <head> 
        <meta charset="utf-8" /> 
        <title>Page 1</title> 
    </head> 
    <body> 
 <form action="" method="post"> 
        <input type="text" id="myTextBox" name="myTextBox"/> 
                    <input type="submit" value="submit"/> 
</form>          
    </body> 
</html>


Here's the code on Page2.cshtml, please take note on the previous code Response.Redirect("Page2.cshtml?name=" + formValue); we actually pass the value to the variable named "NAME". so in Page2.cshtml, we will capture the value NAME. We used Request.QueryString to capture the value from the URL which will be
http://localhost/page2.cshtml?name=WHATEVERUSERINPUT.

@{ 
    var queryValue = Request.QueryString["name"];   


<!DOCTYPE html>  

<html lang="en"> 
    <head> 
        <meta charset="utf-8" /> 
        <title>Page 2</title> 
    </head> 
    <body> 
        @queryValue 
    </body> 
</html>

For this example, queryValue will return the value of "WHATEVERUSERINPUT".

Happy coding.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.


You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services



WebMatrix Hosting - ASPHostPortal :: Deploy WebMatrix at ASPHostPortal

clock December 12, 2011 07:06 by author Jervis

This article is intended to give you some background information about Microsoft WebMatrix and why I have chosen to use it for my Web projects. It includes instructions for where to find it and how to download and install it.

Just because it’s simple doesn’t mean to say that you can’t use it as the first step towards more complex web design and development.

I like it because it’s a really quick and easy way to get a synchronized local and remote web development setup up and running. Almost straight away, I can, at the touch of a button, download and install one of several ASP.NET open source web application (such as MojoPortal) and get it running locally with a MS SQL Database.

Once you have your website up and running locally, you can publish it to your hosted website. This should be very simple, but there are a couple of gotchas. This series of article should help you navigate safely around those.

The first issue is making sure your host provides you with the required functionality. If you’re using ASPHostPortal.com ASP.NET web hosting, you will have that.

WebMatrix supports two protocols for web hosting: WebDeploy and FTP. FTP does not support publishing of MS SQL databases, so you should use the WebDeploy protocol.


In order to publish your website, you will need to enter the publish settings for WebDeploy. You can enter the settings manually each time you publish, or create a publish settings XML file.

If you later want to switch back to developing or maintaining your website locally, it’s a straight-forward task to use WebMatrix to download your published site. You should note that uploading or downloading an MS SQL Database through WebMatrix replaces the entire file (it does not merge changes), so you should not work on your local and remote websites at the same time.

WebMatrix itself is installed through Microsoft Web Installer. Click on the ‘install WebMatrix’ button and follow the instructions via
this link.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

-
DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.

 



WebMatrix Hosting - ASPHostPortal :: WebMatrix and jQuery Mobile

clock November 18, 2011 07:22 by author Jervis

Recently I have seen a number of examples using ASP.NET MVC with jQuery Mobile for displaying a list of blog posts to mobile devices. I thought I would show you similar code for doing this with the ASP.NET Web Pages Framework and Razor View Engine via WebMatrix. I want to warn you up front that the solution will seem too easy. One page, and only 1 page of code and markup is all that we will need to write to create the solution ( besides our sample database, of course ).

First things first, we need a database. Let's create a simple SQL Server CE 4 database right within WebMatrix itself. The database tooling feels a lot like SQL Server Management Studio, which is fantastic for new developers as they can take these skills with them for managing other versions of SQL Server. Here is a quick snapshot of the database definition:



Once we have the database defined and add a bit of data that I pulled from my blog, I can go ahead and create a blank Razor Page with all the necessary stylesheets, JavaScript files, HTML markup, and Razor code. You can click on the image to see a more viewable version of the page, but even now it looks way too easy.



 In the example, we connect to the database, define a query, and then execute the query and return the results. In this case the results are posts from the database. Further down the page we iterate through each post, displaying the date the post was published as well as a clickable title that takes you to the post.

The bonus here is that if the needs of your application grow, you can easily convert this to ASP.NET MVC 3. The top-most code gets swallowed up into a controller or service per your strategy for separating the concerns, leaving the HTML and Razor markup the same in the rest of the page.

Now here is the best part - click Run :)



You have a quick list of posts that give you a wonderful user experience on your mobile phone or tablet.



WebMatrix Hosting - ASPHostPortal :: Using Razor, CSHTML, ASP.NET Web Pages, WebMatrix as a Web Service

clock May 23, 2011 06:12 by author Jervis

I've been trying to learn about Razor, CSHTML, ASP.NET Web Pages, and WebMatrix.  I've been writing some examples specifically targetting HTML5 mobile apps.  After all, the best way to learn a technology is to dive into it.  I wanted to call some web services in a web page, so of course, I was going to use CSHTML.  I wrote some code that didn't need any parameters, that was pretty easy.  However, what do you do when you want to pass some parameters in.  There are two solutions I can think of:

- Pass the params in the QueryString, perform a GET operation, and request the items in the CSHTML file.  This is easy, simple, and makes sense.  You code would need to protect the entries that are passed in on the url, but hey, you already know how easy it is to change them.  So, this is what I am doing here.
- Pass the params in the Body, perform a POST operation, and request the items in the CSHTML file.  This takes a little more work, but I think its a better way to do things.

I decided to pass in a GET because I just needed to do something simple and get data.  I like REST principles, but I'm no zealot that things have to be done X way.  Here's my javascript client side code using jQuery and jQuery Mobile:

function
WhereIsUserNow() {
var UserToView = "@UserToView";
$.ajax({
type: "GET",
url: "@Href("~")Services/MostRecent.cshtml?UserToView=" + UserToView,
dataType: "json",
contentType: "application/json",
success: function (outPut) {
WhereUserHasBeenMostRecent(outPut);
},
error: function (xml, err) {
alert("err:" + xml.responseText);
}
});
}
else {
alert("Please select a user before trying this tab.");
}
}


And now here's my server side cshtml code:

@{
   
    string UserName = Membership.GetUser().UserName; 
    string UserToView = Request.Params["UserToView"];
    //do a bunch of things.
    Response.Write(Json.Encode(UserNow));
}

Finally, my code will send json data out the client web browser.  Thankfully, it all seems to be working.  Probably need some added security somewhere, but who doesn't. 

Hope this brief tutorial can help. If you’re looking for CSHTML and webmatrix hosting, please visit our site for further information. If you have any question about webmatrix hosting, please don’t hesitate to contact us at [email protected].

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.


You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



WebMatrix Hosting - ASPHostPortal :: Surfacing the Visual Basic Templates in WebMatrix

clock May 19, 2011 06:14 by author Jervis

When you first launch WebMatrix 1.0 after installing it, you see a screen as shown in Figure 1.



Choosing the "Site From Template" option, you see the screen shown in Figure 2. Each of these templates are C# site templates.



WebMatrix supports Web site development in both C# and Visual Basic, so where are the Visual Basic templates? I expected to see a screen with templates for both languages. In this article, I demonstrate the steps needed to create the screen shown in Figure 3. This allows the creation of Visual Basic sites from templates as easily as C# sites, based on the site templates available from Microsoft at the time of this writing (March 2011).

If the C# templates are still Version 1.0 and you are just interested in installing the additional VB 1.0 templates, then download the code from this article's Web page and follow the directions in the ReadMe.txt file in the download. If the templates have been updated or new templates have been added, you may need to follow the steps in this article to create a new "Site From Template" page in order to include those new elements, especially to update the SHA1 checksums in the TemplateFeed.xml file in the Micrososft WebMatrix templates folder.



The Visual Basic templates were released later, on Monday February 7, 2011 as a
NuGet package. NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools.

Since NuGet is an extension, it must be run within WebMatrix or Visual Studio and does not appear in the computer's Start menu. In WebMatrix, it must run from the Administration page of a site as shown in Figure 4. I used the Starter Site template.



Selecting that option for the first time will lead to prompts to create a site administration password. Follow the prompts to create the site administration password. Log onto the site administration page with the newly created password and then search for "VB". You will see a page similar to Figure 5 that will allow you to download each of the VB site templates



After installing each one, by default they will appear in the {My Documents}\My Web Sites\{Site Name}\Microsoft Templates\ folder. To use any of these templates to create Visual Basic sites, as provided by Microsoft, you have to create an "Empty Site" as shown in Figure 2. Then you must copy the contents of one of these Microsoft Templates folders to the root of the Empty Web site.

I know that WebMatrix is a v1.0 product, and I'm grateful that Visual Basic templates are available, but I can't help but think, "Give me a break. Are you serious Microsoft?" C# developers can simply pick a template from a main menu, but Visual Basic developers have to go through this much convoluted effort? No wonder Visual Basic developers sometimes feel like second-class citizens in the Microsoft ecology.

To create the screen shown in Figure 3, we have to accomplish the following tasks. They are more steps than I would like, but hopefully they are easy to follow. Note that Administrator access is required since it involves changes to the C:\Program Files\Microsoft WebMatrix\templates\ folder. If you are on a 64-bit version of Windows, that path would be C:\Program Files (x86)\Microsoft WebMatrix\templates\.

1. Download the Visual Basic templates into a WebMatrix site.
2. Create the same folder structure and metadata files as the C# templates.
3. Create zip files from Step 2, with a VB suffix so they can later co-exist in the templates folder.
4. Compute the SHA1 checksum for each of the VB template files.
5. Modify the TemplateFeed.xml file in the Microsoft WebMatrix\templates folder to include the VB templates.
6. Copy the updated VB template zip files and updated TemplateFeed.xml file into the WebMatrix\templates folder.

For Step 1, assuming you have been following along so far, it has been completed.

For Step 2, create a "temp" working folder where you have update rights. See
Listing 1 for a complete directory listing of the results of Step 2 for reference.

Copy the Microsoft WebMatrix\templates folder into this temp folder. Copy the Microsoft Templates folder with the downloaded VB 1.0 templates into your temp folder. In the temp\Microsoft Templates folder, remove the spaces from the folder names and delete the License.rtf and README.txt files. You will have only four folders: BakeryVB, CalendarB, PhotoGalleryVB, StarterSiteVB.

Within each of those folders, create a folder named the same without the VB suffix and copy all the files into that folder. Example: you will have a temp\Microsoft Templates\BakeryVB\Bakery folder that contains all the files that were in temp\Microsoft Templates\BakeryVB folder.

Next extract the parameters.xml and manifest.xml files from the root of the corresponding C# template zip files and place them in the corresponding temp\Microsoft Templates\{site}VB\{site} folder. Example: temp\Microsoft Templates\BakeryVB\ folder will now have the parameters.xml and manifest.xml files from the \temp\templates\Bakery.zip file. You may find the open source 7-Zip utility available from 7-zip.org helpful in this and subsequent processes. See 
Listing 1 for a sample of the final folder/file structure.

For Step 3, create separate zip files of the contents of each of the temp\Microsoft Templates\{site}VB\ folders. Be sure to create the zip files such that the manifest.xml and parameters.xml and {site} folder are at the root of the zip file. Name these zip files the same as their parent folder with the zip extension. Example: temp\Microsoft Templates\BakeryVB\ will contain a BakeryVB.zip file that contains exactly the contents of the temp\Microsoft Templates\BakeryVB folder. See 
Listing 2 for a sample final result.

For Step 4, use the File Checksum Integrity Verifier (FCIV.exe) utility available from Microsoft
here. Download and extract the fciv.exe utility and place in the C:\Windows folder so it can be available for use from any folder. Open a DOS Command window, navigate to the {My Documents}\temp folder and issue the following command:

fciv -add "Microsoft Templates" -r -type *.zip

Note the SHA1 values that are generated for each of the zip files you created.

For step 5, make a backup copy of the file TemplateFeed.xml file located in the temp\templates folder. Use notepad or your favorite editor to update the TemplateFeed.xml file with four new application sections, one for each of the VB template zip files. Simply copy the C# application section and modify the underlined locations as shown in the code below. The Code Download has the fully updated TemplateFeed.xml file for your reference.

<entry type="application">
    <productId>BakeryVB</productId>
    <title resourceName="Entry_BakeryVB_Title">Bakery VB</title>
    <version>1.0</version>
    <summary resourceName="Entry_BakeryVB_Summary">
Sample web site in VB showing a list of products that can be ordered.</summary>
    <id>http://www.microsoft.com/web/webstack/bakery</id>
    <updated>2010-3-24T18:30:02Z</updated>
    <published>2010-03-24T18:30:02Z</published>
    <longSummary resourceName="Entry_BakeryVB_LongSummary">
Sample web site in VB showing a list of products that can be ordered.</longSummary>
    <link href="http://microsoft.com/web/webstack/bakery" />
    <images>
      <icon>http://go.microsoft.com/fwlink/?LinkId=195175</icon>
    </images>
    <keywords>
      <keywordId>Templates</keywordId>
    </keywords>
    <author>
      <name>Microsoft</name>
      <uri>http://www.microsoft.com/</uri>
    </author>
    <installers>
      <installer>
        <id>1</id>
        <languageId>en</languageId>
        <installerFile>
          <fileSize>50</fileSize>
          <installerURL>file://%ProgramFiles%\Microsoft WebMatrix\templates\BakeryVB.zip</installerURL>
          <sha1>d40bbb4eb23bda648a95c0841e7d762d57d6c372</sha1>
        </installerFile>
        <msDeploy />
      </installer>
    </installers>
  </entry>

For Step 6, backup the existing TemplateFeed.xml file at {Program Files}\Microsoft WebMatrix\templates and overwrite it with your modified TemplateFeed.xml file. Also copy in the VB template zip files created in step 3. If all the steps were performed correctly, WebMatrix will show a screen similar to Figure 3 when "Site From Template" is selected.


Conclusion
Microsoft WebMatrix is an exciting product that makes the creation of custom ASP.NET Web sites possible without all the complexity of the full Visual Studio environment. Another advantage is the ability to easily leverage proven applications from the Web Gallery. WebMatrix also demonstrates Microsoft's commitment to open source by including PHP and MySQL applications in the Web Gallery.

Microsoft WebMatrix has great potential, but it is a version 1.0 release and it shows when it comes to Visual Basic template support. The steps needed to surface the Visual Basic templates in the Site From Template screen are overly complex. Microsoft should provide an independent installer package that integrates the Visual Basic site templates with a single command, so that both C# and Visual Basic templates are presented equally.


And now, you can get this potensial product on our site. We have supported Microsoft WebMatrix hosting with only $5.00/month. Shoud you have further question about this product, please always feel free to email us at [email protected] or here.



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


Author Link


Corporate Address (Location)

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

Sign in