Drive Application Behavior with Application and User Configuration Settings Brian Noyes IDesign Inc (www.idesign.net)

Similar documents
Drive Application Behavior with Application and User Configuration Settings. Brian Noyes IDesign Inc (

APP301: Implement a Data Access Layer with Enterprise Library

Build Custom Data Bound Objects and Collections

Data Binding with Windows Forms 2.0

Thinking and Processing in Parallel Wrap Your Head Around WF 4.0 Concurrency. Brian Noyes IDesign Inc (

Smart Client Offline Data Caching and Synchronization

NET237: Deploying Smart Client Apps with ClickOnce

AR.04 Composite Application Guidance for WPF (aka Prism ) Brian Noyes IDesign Inc (

Prism Composite Application Guidance

Tackle Complex Data Binding in WinForms 2.0

Composite Application Guidance for WPF and Silverlight (AKA Prism 2 )

VSC01 Securing WPF Client Applications

Building Extensible XAML Client Apps

Build Testable Client and Service Applications

Windows Presentation Foundation In Windows Forms And Vice Versa

Data Binding in ASP.NET 2.0

VS10 WCF of Many Flavors When do I use which?

LVL08 Black Belt Silverlight Business Data Validation

VWC02 Build N-Tier Silverlight Data Applications Easily with WCF RIA Services

Build Loosely Coupled Silverlight Business Applications

Introduction to.net Deployment. Brian Noyes IDesign, Inc. (

WCF RIA Services. About Brian 8/10/2011. Brian Noyes Chief Architect IDesign Inc. (

NE.15 Data Binding In Windows Presentation Foundation

Build Process Driven Applications with WF

VS08 This One Goes to Going Parallel with PFX, PLINQ, TPL and Async Keywords

Microsoft TechEd US, Europe, Malaysia, Visual Studio Connections, DevTeach, INETA Speakers Bureau, MSDN Webcasts

Building Extensible XAML Client Apps

Learn to Behave Extend Your XAML with Behaviors

Blissful Separation of Concerns with Model-View-ViewModel (MVVM)

Building Loosely Coupled XAML Client Apps with Prism

Extending ASP.NET. Brian Noyes Principal Software Architect IDesign, Inc. ( (

Smart Client Offline Data Caching and Synchronization

Supporting Non-Standard Development Configurations

Introduction. Introduction. JavaScript 1.8: Web and Objects Copyright by LearnNow, LLC All rights reserved. Reproduction is strictly prohibited.

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Introduction. Introduction. Copyright by LearnNow, LLC All rights reserved. Reproduction is strictly prohibited.

ASP.NET Web Forms Programming Using Visual Basic.NET

Building Web Services with Java and SAP Web Application Server

PDSA.NET Productivity Framework Deployment Manual

PROGRAMMING WITH THE MICROSOFT.NET FRAMEWORK USING MICROSOFT VISUAL STUDIO 2005 Course No. MS4995A 5 Day PREREQUISITES COURSE OUTLINE

Quick Start - WPF. Chapter 4. Table of Contents

Introduction. Introduction

Index. AcquireConnections method, 226, 235 Asymmetric encryption, 273

Introduction. Introduction

\ Smart Client 0" Deploymentwith v^ ClickOnce

Mix It Up: Visual Studio 2010 and ASP.NET 4.0. Singapore 25 March 2009

2A The CA Plex.NET Client Generator. Rob Layzell CA Technologies

Andrew Coates Microsoft Australia Session Code: OFC343

HP WebInspect Enterprise

DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here> Getting Started with Oracle and.net

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

EFFECTIVE C# (COVERS C# 6.0), (INCLUDES CONTENT UPDATE PROGRAM): 50 SPECIFIC WAYS TO IMPROVE YOUR C# (3RD EDITION) (EFFECTIVE SOFTWARE DEV

DEVELOPING WEB APPLICATIONS WITH MICROSOFT VISUAL STUDIO Course: 10264A; Duration: 5 Days; Instructor-led

17 Roberts St #2 Brookline, MA

Microsoft Partner Day. Introduction to SharePoint for.net Developer

Deploying Haystack Applications

10265: Developing Data Access Solutions with Microsoft Visual Studio 2010 Duration: 5 Days Method: Instructor-Led

DWT SYSTEM: Installation Manual

Developing Windows Applications with Microsoft Visual Studio 2010

COPYRIGHTED MATERIAL. Introducing the Project: The SmartCA Application. The Problem

$99.95 per user. SQL Server 2005 Integration Services CourseId: 153 Skill level: Run Time: 31+ hours (162 videos)

Top 40.NET Interview Questions & Answers

Microsoft Dynamics Road To Repeatability Technical Deep Dive Server Extensibility in Microsoft Dynamics NAV. Vjekoslav Babić, MVP

Windows Presentation Foundation Programming Using C#

$99.95 per user. SQL Server 2008 Integration Services CourseId: 158 Skill level: Run Time: 42+ hours (210 videos)

Click Studios. Passwordstate. Upgrade Instructions to V8 from V5.xx

Oracle Corporation

It is necessary to follow all of the sections below in the presented order. Skipping steps may prevent subsequent sections from working correctly.

DE Developing Windows Applications with Microsoft Visual Studio 2010

SQL Azure Scale-Out - Setup Guide

<Partner Name> RSA ARCHER GRC Platform Implementation Guide. RiskLens <Partner Product>

Azure Web Apps: start simple, code smart, go live!

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

LA CISD Tech Day Presented by: Microsoft. Piyush Saggi Developer Solutions Specialist

ArcGIS Runtime SDK for WPF

Xiaoying Guo Program Manager Microsoft Server and Tools China Session Code: DEV377

How to Configure a Component and Application Process for IIS 7

Programming Autodesk Vault with the VDF. Dennis Mulonas and Doug Redmond Software Engineers, Autodesk

Composable Web Services Using Interoperable Technologies From Sun s Project Tango

Office as a development platform with Visual Studio Daniel Moth Developer and Platform Group Microsoft

Composable Web Services Using Interoperable Technologies from Sun's "Project Tango"

1A Windows Presentation Foundation Explained. Rob Layzell CA Technologies

What s New in ActiveVOS 9.0

Prism Composite Application Guidance

B. Assets are shared-by-copy by default; convert the library into *.jar and configure it as a shared library on the server runtime.

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

<Insert Picture Here> Oracle SQL Developer: PL/SQL Support and Unit Testing

Eclipse SOA Tooling Platform: Project Overview. An Overview of the Eclipse STP (SOA Tooling Platform) Project

PDSA. Developer's Guide to Reporting Services 2008 R2. design» architecture» security» training» best practices:pdsa.com

InstallAware for Windows Installer, Native Code, DRM, Virtualization

.NET. Inf 5040, Outline. Gyrd Brændeland, Sharath Babu Musunoori, Åshild Grønstad Solheim

Ms Visual Studio Express 2018 User Guide READ ONLINE

Implementing ArcGIS Mobile Applications for the Enterprise

Citrix TechTalk. Take Your XenApp Apps With You. June 5,2009

Who Should Read This Book?

Getting Started with Oracle and.net

Mike Ormond Developer and Platform Group, Microsoft Ltd

The C# Programming Language. Overview

Transcription:

Drive Application Behavior with Application and User Configuration Settings Brian Noyes IDesign Inc (www.idesign.net) brian.noyes@idesign.net About Brian Chief Architect, IDesign Inc. (www.idesign.net) Microsoft Regional Director / MVP Writing Data Binding in Windows Forms 2.0, Addison Wesley, January 2006 Smart Client Deployment with ClickOnce, Addison Wesley, Summer 2006 MSDN Magazine, MSDN Online, CoDe Magazine, The Server Side.NET, asp.netpro, Visual Studio Magazine Speaking Microsoft TechEd US, Europe, Malaysia, Visual Studio Connections, DevTeach, INETA Speakers Bureau, MSDN Webcasts Participates in Microsoft Design Reviews E-mail: brian.noyes@idesign.net Blog: http://www.softinsight.com/bnoyes

Agenda How did we get here? Hard coding Ini files Registry Application Configuration files in.net 1.x <appsettings> entries Custom configuration sections Custom settings files Application/User Settings in.net 2.0

Application Settings Overview Relatively static data store for your application <appname>.exe.config for Windows apps Web.config for web apps System.Configuration API Application scoped Read-only access Visual Studio 2005 support User Settings Overview Relatively static data store for individual users User.config under user profile \<username>\local Settings\Application Data\<publisher>\<obfuscated app name> User scoped Read/write access Visual Studio 2005 support

Agenda Visual Studio Settings

Visual Studio Settings Adds Settings Class Settings.Designer.cs Partial class Adds values to app.config Custom sections Built-in sections (i.e. connectionstrings) Agenda

Programming against Settings Settings class added to child namespace <projectname>.properties Singleton static Default property Settings.Default Gives you back an instance of the Settings class Read/Write to strongly typed properties Save/Refresh methods Using Settings From Other Assemblies Settings defined on a per-project basis App.config added to project Only exe can have.config file at runtime Except custom providers Migrate config file settings into host app config or use embedded defaults

Agenda Protecting Configuration Settings System.Configuration APIs to encrypt/decrypt portions of a config file Get Configuration instance Get ConfigurationSection Call SectionInformation.ProtectSection Aspnet_regiis to do it at command line -pe, -app, -prov switches Rename config file to web.config for non-web apps, then rename after encryption Tied to machine key

Agenda Adding Custom Types Can read/save any type from settings Formatting: String, XML, Binary From Visual Studio: Browse from Type drop down Custom Type Serialization: TypeConverter ToString/FromString XmlSerializer

Extending Settings Derive from ApplicationSettingsBase class Can have more than one class Only one supported by VS Settings editor Custom providers Save settings somewhere else Derive from SettingsProvider Summary App/User Settings easy to define and use Using built-in types will be fastest Can plug in custom types Can change storage location with custom provider Can protect settings in config file E-mail: brian.noyes@idesign.net Blog: http://www.softinsight.com/bnoyes