次の方法で共有


Creating an On Premise Database and MVC Web Application and Migrating to Windows Azure and SQL Azure-Step 8 of 10

Previous Posts that you should review

bullet

Step 1
hyperlink[6]

https://blogs.msdn.com/b/brunoterkaly/archive/2010/06/12/creating-an-on-premise-database-and-mvc-web-application-and-migrating-to-windows-azure-and-sql-azure-step-1-of-10.aspx

bullet

Step 2
hyperlink[6]

https://blogs.msdn.com/b/brunoterkaly/archive/2010/06/11/creating-an-on-premise-database-and-mvc-web-application-and-migrating-to-windows-azure-and-sql-azure.aspx

bullet

Step 3
hyperlink[6]

https://blogs.msdn.com/b/brunoterkaly/archive/2010/06/27/creating-an-on-premise-database-and-mvc-web-application-and-migrating-to-windows-azure-and-sql-azure-step-3-of-10.aspx

bullet

Step 4
hyperlink322

https://blogs.msdn.com/b/brunoterkaly/archive/2010/06/28/creating-an-on-premise-database-and-mvc-web-application-and-migrating-to-windows-azure-and-sql-azure-step-4-of-10.aspx

bullet

Step 5
hyperlink312

https://blogs.msdn.com/b/brunoterkaly/archive/2010/06/28/creating-an-on-premise-database-and-mvc-web-application-and-migrating-to-windows-azure-and-sql-azure-step-5-of-10.aspx

bullet

Step 6
hyperlink3

https://blogs.msdn.com/b/brunoterkaly/archive/2010/06/30/creating-an-on-premise-database-and-mvc-web-application-and-migrating-to-windows-azure-and-sql-azure-step-6-of-10.aspx

bullet

Step 7
hyperlink[4]

https://blogs.msdn.com/b/brunoterkaly/archive/2010/07/01/creating-an-on-premise-database-and-mvc-web-application-and-migrating-to-windows-azure-and-sql-azure-step-7-of-10.aspx

This Blog Post is about…

Steps in the this blog post

bullet_thumb[6]

Copying the controller code from the on-premise MVC application to the cloud-based MVC application

bullet_thumb[7]

Copying the view code from the on-premise MVC application to the cloud-based MVC application

bullet_thumb[8]

Copying the connection string code (may be a duplicate step)

bullet_thumb[9]

Running the cloud-based MVC application locally on the development fabric

 

This is a simple copy and paste effort 

Our on-premise application is the sourceWe will copy from MvcOnPremise to MvcAzure_WebRole

snap0170

snap0171 snap0172

Connection String 

Update Web.configA simple copy and paste operation is all that is required here.

snap0173 snap0174 snap0175 snap0176 snap0177

The Development Fabric 

What is it?

bullet

The development fabric simulates the Windows® Azure™ fabric on your local computer so that you can run and test your service locally before deploying it.

bullet

The development fabric allows you to debug and fine-tune the behavior of your service before it is deployed.

bullet

It provides a user interface for observing and managing local service deployments.
There are a few differences between the development environment and Windows Azure that may affect how your service runs in one or the other.

bullet

You can attach a debugger to a role instance running in the development fabric.

bullet

It's not possible to attach a debugger to a role running in Windows Azure; any live debugging information must be written to the logs.

bullet

A role instance running in the development environment has access to the local Global Assembly Cache (GAC), the registry, machine configuration file, and other local system components.

bullet

These components are not available to a role instance that is running in Windows Azure.

bullet

Developers should use care to avoid relying on local system components from code running in a role.

snap0178

Getting close…Almost fully deployed to the cloud 

snap0179

 

Next blog post

Uploading your application to the Azure Portal

bullet

The "Publish" command

bullet

The Azure Web Portal

bullet

Understanding the Deployment Package

bullet

The Publish command creates 2 files: (1) the packaged application; (2) the configruation file

bullet

Adding a new Hosted Web Service

bullet

Defining a "Service Label"

bullet

Defining the "Public Service Name," which is the URL of your hosted service

bullet

Selecting the data center that will hosted your service (MVC Application)