Deployment of web Site. Preparing the web site for deployment you now have two versions of web site 1 -one running in the production environment 2-one.

Slides:



Advertisements
Similar presentations
Presentation Heading – font Arial
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Authenticating Users in an ASP.NET Application. Web Site Administration Tool From VS 2008, click Website/ ASP.Net Configuration to open Web Site Administration.
ASP.NET Reuven Abliyev Elyahu Sivaks Ariel Daliot.
Programming in the Office 2003 Environment Corinne Hoisington.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
SQL Reporting Services Overview SSRS includes all the development and management pieces necessary to publish end user reports in  HTML  PDF 
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
X2O Server Installation
 Visual Studio has great support for building ASP.NET web applications  Real web application development involves more than just copying the files created.
Tutorial -01. Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models.
1 Deploying a Web Application. 2 Virtual Directories Web servers map URLs to directories in their file systems. Called virtual directories. Normally one.
IT533 Lectures Configuring, Deploying, Tracing and Error Handling.
Test Review. What is the main advantage to using shadow copies?
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Web Servers Web server software is a product that works with the operating system The server computer can run more than one software product such as .
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
Chapter 7: Using Windows Servers to Share Information.

T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Catlyn Colson. Recap of Previously Completed Work Previously I had done the following: Built the Database, started basic layout of the webpage, connected.
Session 10 Windows Platform Eng. Dina Alkhoudari.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Ken Casada Developer Evangelist Microsoft Switzerland WebMatrix: Your Web Made.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Introduction to ASP.NET 1www.tech.findforinfo.com.
Course ILT Internet/intranet support Unit objectives Use the Internet Information Services snap-in to manage IIS, Web sites, virtual directories, and WebDAV.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Two Installing and Configuring Exchange Server 2003.
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
BIT 285: ( Web) Application Programming Lecture 15: Tuesday, February 24, 2015 Microsoft Azure Instructor: Craig Duckett.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Web Access. Overview  Purpose  Prerequisites  Install Components  Enable Virtual Directories  IIS Configuration & Security  Troubleshooting.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
Configuring and Deploying Web Applications Lesson 7.
Web Development in Microsoft Visual Studio 2013 / 2015.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
1 Project 4 Address Lookup. Project 4 Write an ASP.NET app that permits users to retrieve addresses from a potentially large list of addresses. There.
Learning Aim C.  In this section we will look at some simple client-side scripts, browser compatibility, exporting and compressing and suitable file.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Copyright © 2011 Pearson Addison-Wesley Web Servers and Projects Deployment Chapter 11 – Slide 1.
Alexey Polovinkin Post graduate student, CMC department.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
ClickOnce Deployment (One-click Deployment)
Chapter 7: Using Windows Servers
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
Active Server Pages ASP.Net
IIS.
Configuring Internet-related services
ClickOnce Deployment (One-click Deployment)
Security - Forms Authentication
Presentation transcript:

Deployment of web Site

Preparing the web site for deployment you now have two versions of web site 1 -one running in the production environment 2-one you use for development. This makes it difficult to keep things synchronized

Avoiding hardcoded setting myMessage.From = New “Sender Name“); myMessage.To.Add(New “Receiver Name“)); Hardcoding settings in this manner makes it difficult to give them different values in different environments. Every time you want to roll out your site to production, you need to make sure you’re not accidentally overwriting settings you changed for the production environment.

Solution for this kind of problems the web.config file, expression syntax, and the webConfigurationManager class you use to read from web.config.

Web.config file We have used web.config file to store information about connection string,roles,profiles,membership. element that enables you to store data in a key/value pair using elements.

The element enables you to store simple information, such as an e ‑ mail address, and retrieve that value by its key. For example, to store an e ‑ mail address, you can add the following to the web.config file: The element is placed outside the element in the web.config file, yet still within the parent element. Obviously, you need a way to access the data in at runtime. You can do this in a couple of ways, including expression syntax and the WebConfigurationManager class

Expression setting Expression syntax enables you to bind control properties to resources, such as those found in the element in web.config, connection strings, localization resource files and various routing settings used in URL rewrite scenarios. To display data from the element, you use the following syntax where AppSettingKeyName refers to a key you define in web.config:

webConfiguration Manager class The WebConfigurationManager class from the System.Web.Configuration namespace provides access to data that is stored in configuration files. It has special support for the appSettings and connectionStrings elements of the web.config file, enabling you to retrieve data from those sections with a single line of code. using System.Web.Configuration;... string fromAddress= WebConfigurationManager.AppSettings.Get(“FromAddress”); bool sendMail = Convert.ToBoolean(WebConfigurationManager.AppSettings.Get(“SendM ailOnError”));

Copying your web site During development of your site you use the built-in web server that ships with Visual Web Developer. Although this server is great for local development, you can’t use it in a production environment,because it only listens to requests coming from localhost. To put your site in production,you need to deploy it to a machine that runs IIS (Internet Information Services), Microsoft’s professional web server.

Deployment options

Copying web site The Copy Web Site option simply creates a copy of all files that make up your site. It can create a copy of the site at different locations, including the local file system, an FTP server, and an IIS server. To copy the files to the local system. This is a great way to create a copy that is detached from the development environment that can be run on your local machine. when you’re creating the copy over a slow FTP connection, you’ll be glad this tool only uploads new and changed files,and leaves unmodified files untouched. You can, of course copy the same set of files to another machine using an FTP program, a USB stick, and so on. The detached local copy enables you to make modifications to a few files first (like web.config) and then upload everything to your host.

Publishing web site it allows you to precompile the application, which means all the code in the Code Behind of your ASPX pages, controls, code files in App_Code, and so on are compiled into.NET assemblies; files with a.dll extension in the bin folder of your site. The main benefits of precompiling are source protection (others with access to the server can’t look into your source) and an increased performance the very first time a page is requested. Pages that are not precompiled are compiled on the fly when they are requested the first time, which takes a little bit of time. Remember that regular visitors to your site will never be able to see the source of your application. All they’ll be able to see is the final HTML that gets sent to the browser.

Running your site under IIS 1. Install and configure IIS. 2. Install and configure the.NET Framework 4 3. Configure security settings.

type on start appwiz.cpl After the installation of iis,you have to make sure that Microsoft.NET FRAMEWORK VERSION 4 IS INSTALLED.

Inastalling and configuring ASP.NET IF You have iis and microsoft.NET frramework 4 installed,you have to tell the iis that you have framework 4 on your machine.(it is only required if you install IIS later).

Each new IIS installation has a Default Web Site, the site that listens to by default. It means that a URL like is mapped to the physical file at C:\BegASPNET\Release\Login.aspx.

Application pool You assign a web site “an application pool” an IIS mechanism to isolate and configure one or more IIS web sites in one fell swoop. Two web sites running in different application pools do not affect each other in case of a problem such as a crash.

Understanding Security in IIS In order to use resources in your site, such as ASPX files, Code Behind files, the database in the App_Data folder, and the images in your site, your web server needs permissions from Windows to access those resources. This means that you need to configure Windows and grant access to those resources to the account that the web server uses. there are only two scenarios to consider: using the built- in web server or using IIS as your web server.

For IIS where IIS is used, things are quite different. By default, an ASP.NET application under IIS runs with a special account created when you installed IIS. This account is called Network Service on Windows Vista, and the original release of Windows Server 2008 and it is called ApplicationPoolIdentity on Windows 7 and Windows Server 2008 R2.

NTFS setting for website you’ll need to make changes to the Windows file system, so the web server is allowed to access your resources. This is only necessary when your hard drive is formatted using NTFS and not with FAT or FAT32, the older Microsoft file systems To successfully configure your NTFS file system for the web site, you need to grant the following permissions to the web server accounts

Permission to the web server account

Moving Data to Remote server Obtain and install SQL server management studio express