Host byteart retail case programs on Windows azure Virtual Hosts

Source: Internet
Author: User
Deployment

In the past two days, we will use byteart retailProgramHost to the Windows azure virtual host. The basic steps are as follows:

    1. In Windows azure manager, to create a new virtual host, I chose the highest version of Windows server and the worst hardware configuration:
      Windows Server: Windows Server 2012 datacenter Edition
      Hardware configuration: Small (1 core, 1.75 GB memory)
    2. Start the VM, configure the VM as application server, and add web server and other roles to ensure that IIS and. NET Framework are correctly installed.
    3. Create a new site in IIS and set byteartretail. services Project and byteartretail. deploy the WEB Project and deploy byteartretail. when using services projects, set the load user profile of the apppool to true, for example:

      Because I use SQL Server express 2012 local dB, if this option is not set, the program cannot find the datadirectory directory.

    4. After local debugging is successful in the virtual machine, go to the Windows azure console and add Port 80:

 

The general steps are as follows. No major problems have been encountered throughout the deployment process, mainly the problems described in the third point above. At the beginning, the website cannot be opened (no response ). Later, I checked the event log to find out the problem.

Experience

Now open the http://byteartretail.cloudapp.net in your browser and you will see the familiar byteart retail interface:

Solemnly declare: If you need to register a new user during the experience process, please make sure not to use your usual password for registration, because in order to simplify the demonstration and Development debugging in peacetime, byteart retail does not encrypt the password (plaintext storage of the database). If you use your frequently used password, it will inevitably bring some security risks. I am not responsible for the resulting password leakage! In addition, I am too lazy to use sqllocaldb directly during deployment, rather than SQL Express. As we all know, sqllocaldb is a development version. In case of Database Failure errors during the experience, please forgive me!

Technologies used

This deployment is based on the following technologies:

    • Front-end: ASP. net mvc 4.0 + jquery
    • Application Layer: XSD generates data transmission objects (DTO) and automapper
    • Warehousing: Entity Framework-based Warehousing (although byteart retail can seamlessly support MongoDB warehousing at the same time, this deployment mainly aims to demonstrate related Microsoft technologies, so MongoDB is not used)
    • Cache: use Microsoft patterns & Practices Enterprise Library caching Application Block
    • Background storage: Entity Framework 5.0.0
    • Database: SQL Server 2012 express local DB
    • Domain events: N/
    • Enterprise Service Bus (ESB): N/A (requires traffic, no money, and cannot afford to hurt)
Summary

This article roughly describes the process of hosting the byteart retail case program on Windows azure. It also provides the experience address and Experience Guidance. You are welcome to enjoy the Internet experience. In addition, we plan to deploy the byteart retail server in the centos Linux System in combination with mono. Stay tuned!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.