<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://aspadvice.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET 4 Hosting</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/default.aspx</link><description>Articles about ASP.NET 4 Hosting and Technology</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Sharepoint Hosting :: Tricks and Traps with Site Columns and Content Types</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx</link><pubDate>Thu, 04 Mar 2010 07:00:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:60336</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/60336.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=60336</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;One of the main selling points of SharePoint is the ability to push content management down to the End User&lt;/span&gt;&lt;/b&gt;&lt;span&gt; instead of having a dedicated IT staff or Information Management Team manages sites and content. From my perspective, this is also one of its biggest downfalls.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;The single greatest problem of a beginning End User is not having an understanding of how to structure a library or list&lt;/span&gt;&lt;/b&gt;&lt;span&gt; so that it can be part of a centrally managed site structure, built for reusability with document templates attached. Forget about site design. Forget about user interface. They are told to start by adding columns to a library/list to make the information searchable and manageable through metadata, when most End Users do not have a clear understanding of what that is (metadata) much less how to&amp;nbsp; structure it.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;Allowing contributors of content the power to control the Information Architecture of a site&lt;/span&gt;&lt;/b&gt;&lt;span&gt; or list/library assumes they have the understanding and knowledge of how to structure information so that it is robust, reusable, modular and accessible to all users of that content. This places too much burden on the End User, who is usually an untrained content contributor who just wants to contribute and consume information.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;Understanding Content Types is essential when managing a quickly growing site&lt;/span&gt;&lt;/b&gt;&lt;span&gt; through an expandable, controllable infrastructure. More than in other installments of SharePoint 101: Tricks and Traps, you must be able to put Site Columns and Content Types into your own context to get an understanding of how powerful they are. With each problem statement in this installment, try to rephrase the problem so that it relates directly to a situation in your SharePoint environment.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;This section of Tricks and Traps starts with an overview of Site Columns and how they relate to Content Types&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;.&amp;nbsp; From the overview, we will move into common scenarios using Site Columns to create Content Types. We will end with a series of links to Microsoft&amp;rsquo;s Knowledge Base, focusing on their in-depth descriptions and examples of Content Types.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;The following article summarizes one of the features in Sharepoint Services called Site Columns. &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;b&gt;&lt;span style="color:purple;"&gt;&lt;font size="3" face="Calibri"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;, as the premier ASP.NET and Windows Hosting provider, proudly presents this article to anyone and we believe it will help many ASP.NET communities; especially to those who are using Sharepoint Service. In case you are looking for Sharepoint Hosting, you can always consider &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;font color="#800080"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt; and you can start from our lowest Standard Plan &lt;b&gt;@$4.99/month&lt;/b&gt; to host your Sharepoint site.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Introduction to Site Columns&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Newly created libraries and lists consist of default columns. These columns are the document or list properties/attributes that are set by default when a list or library is created. You can think of metadata as the aggregate list of these properties.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Default Document Columns&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;There are 17 default properties (attributes) associated with an item in a document library&lt;/span&gt;&lt;/b&gt;&lt;span&gt;. To see the default properties, choose &lt;i&gt;View: Modify this view&lt;/i&gt; from the View menu in any newly created document library. You will see the following list: &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;- Type (icon linked to document) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Name (linked to document with edit menu) &lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;- Modified (date) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Modified By (person) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Checked Out To (person) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Check In Comment (text) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Content Type &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Copy Source (link) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Created (date) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Created By (person) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Edit (link to edit item) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;File Size (kb) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;ID (unique identifier) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Name (for use in forms) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Name (linked to document) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Title (text) &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Version (number) &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;These properties are the default metadata&lt;/span&gt;&lt;/b&gt;&lt;span&gt; for any document uploaded, created or published to the library. Stop for a second and think about that&amp;hellip; every document knows these 17 things about itself. This is the foundation of the metadata structure for any document within SharePoint. &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;br /&gt;Core Document Columns &lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;&lt;br /&gt;There are additional attributes/properties that can be carried by documents&lt;/span&gt;&lt;/b&gt;&lt;span&gt; within a SharePoint library. These properties are not available by default, but can be added to the metadata structure of the library and are called &amp;ldquo;Core Document Columns&amp;rdquo;. They are listed in the Site Column Gallery for site and site collection administrators. The twenty Core Document Columns are a small subset of all the site columns available in a default SharePoint installation. &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;The Core Document Columns can be found under &lt;i&gt;Site Actions -&amp;gt; Site Settings, Galleries: Site columns&lt;/i&gt;: &lt;br /&gt;&lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Author &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Category &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Comments &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Contributor &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Coverage &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Date &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Date Modified &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Date Picture Taken &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Format &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Keywords &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Last Printed &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Publisher &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Relation &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Resource Identifier &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Resource Type &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Revision &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Rights Management &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Source &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Subject &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Version &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Custom Site Columns &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;SharePoint offers the ability to create customized site columns&lt;/span&gt;&lt;/b&gt;&lt;span&gt; when the default document library columns and the Core Document Columns are not what is needed to identify a document. &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;As an example,&amp;nbsp;if you create&amp;nbsp;a Technical Publications &amp;ldquo;Specifications Library&amp;rdquo; there might be a need to associate a specific product with every document. There is no such thing as a default &amp;ldquo;Product&amp;rdquo; column in SharePoint. By creating the Product site column and making it mandatory (required) in the Specifications library, when a document is inserted into the library, the document will know what project it is related to. &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;&lt;font face="Calibri"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Introduction to Content Types&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Individual site columns can be made much more useful when they are grouped together to create an entire metadata structure. This grouping of site columns is called a Content Type. &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Overview of Content Types &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;A Content Type is a reusable grouping of site columns that can be utilized by a list or library. This makes it possible to maintain a consistent metadata structure for all documents or items of that type in a Site Collection. &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;A Content Type can carry a workflow,&amp;nbsp; an Information Management Policy and a document template&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt; along with the site columns. Whenever the Content Type is associated with a library or list, all of the functionality built into the customization of that Content Type will be available to that library or list.&lt;br /&gt;&lt;br /&gt;Using an example from the EndUserSharePoint.com Site Collection Administration Workshop, let&amp;rsquo;s take a look at a customized Content Type.The Site Collection Administrator needs a method for accepting new site creation requests, new library requests and requests for help with site planning. All three of these requests have five things in common: &lt;br /&gt;&lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Requester Name &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Requester Email &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Time Frame &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Priority of this Request &lt;br /&gt;- &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Comments &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;A Content Type can be created to manage all of these columns as a single group&lt;/span&gt;&lt;/b&gt;&lt;span&gt; of metadata that can be applied to any list that needs it. In our case, all request lists need to have this customized Request Content Type associated with it. &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;Using a single Content Type in multiple lists allows for consistency in the data structure&lt;/span&gt;&lt;/b&gt;&lt;span&gt;. The consistency adds to the ability to find those list items through a search across the metadata. &amp;ldquo;Find me all list items that have a Priority of &amp;lsquo;High&amp;rsquo; that were requested by &amp;lsquo;Mark Miller or Bob Mixon&amp;rsquo;&amp;rdquo;. &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;An added benefit of using a Content Type in multiple locations is maintainability&lt;/span&gt;&lt;/b&gt;&lt;span&gt;. Any changes to the parent Content Type can be passed down to any list that is using that Content Type. &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;One of the things missing from the Request Content Type described above is the &amp;lsquo;Status&amp;rsquo; of the request (Open, In progress, Completed, Denied). Adding a Status column to the Request Content Type will now create that column in any list that is utilizing our customized Content Type. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Summary&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;Site columns and Content Types are the foundation of Information Architecture planning in SharePoint&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;. Too much duplication of effort is typically done because of lack of planning before starting to build the infrastructure of a Site Collection. &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Utilizing site columns and Content Types takes additional effort in the upfront time spent when setting up a SharePoint Site Collection, but the investment of time at the beginning will pay huge dividends during the management and maintenance phase of your SharePoint implementation. &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx&amp;amp;;subject=Sharepoint+Hosting+%3a%3a+Tricks+and+Traps+with+Site+Columns+and+Content+Types" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx&amp;amp;;title=Sharepoint+Hosting+%3a%3a+Tricks+and+Traps+with+Site+Columns+and+Content+Types" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx&amp;amp;title=Sharepoint+Hosting+%3a%3a+Tricks+and+Traps+with+Site+Columns+and+Content+Types" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx&amp;amp;;title=Sharepoint+Hosting+%3a%3a+Tricks+and+Traps+with+Site+Columns+and+Content+Types" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx&amp;amp;;title=Sharepoint+Hosting+%3a%3a+Tricks+and+Traps+with+Site+Columns+and+Content+Types&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/04/Sharepoint-Hosting-_3A003A00_-Tricks-and-Traps-with-Site-Columns-and-Content-Types.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=60336" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/sharepoint+3+hosting/default.aspx">sharepoint 3 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/wss+3+hosting/default.aspx">wss 3 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/sharepoint+hosting/default.aspx">sharepoint hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/wss+hosting/default.aspx">wss hosting</category></item><item><title>WCF RIA Service Hosting :: WCF RIA Service Configuration in a Shared Hosting/Server</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx</link><pubDate>Wed, 03 Mar 2010 02:51:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:60298</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/60298.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=60298</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span&gt;The following article summarises all the possible problems that may arise when deploying a WCF RIA Service application to a shared host. &lt;/span&gt;&lt;span&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;b&gt;&lt;span&gt;&lt;font color="#800080"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;, as the premier ASP.NET and Windows Hosting provider, proudly presents this article to anyone and we believe it will help many ASP.NET communities; especially to those who are using WCF RIA Service. In case you are looking for WCF RIA Service Hosting, you can always consider &lt;strong&gt;&lt;a href="http://www.asphostcentral.com" title="WCF RIA Service Hosting"&gt;ASPHostCentral.com&lt;/a&gt;&lt;/strong&gt; and you can start from our lowest Standard Plan &lt;b&gt;@$4.99/month&lt;/b&gt; to host your WCF-service site.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span style="color:#333333;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;font size="3"&gt;Why :&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt; RIA framework dynamically creates WCF service (Domain services) and add endpoints to the service. It first checks if endpoint does not exist then create it, and it checks for 3 endpoints (http, SOAP and binary). After creating end points it adds authentication schema to end points. It picks IIS authentication schemas and tries to apply on end points and failed to apply.&lt;br /&gt;&lt;br /&gt;If we could create desired end points in web.config RIA framework will not create or do anything with endpoints and it works successfully.&lt;br /&gt;&lt;br /&gt;You just need to follow the simple steps as mentioned on the followings: &lt;br /&gt;&lt;br /&gt;1. Add following code to you web.config to solve issue &amp;ldquo;&lt;b&gt;&lt;i&gt;This collection already contains an address with scheme http..&lt;/i&gt;&lt;/b&gt;&amp;rdquo;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;em&gt;&lt;b&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;serviceHostingEnvironment aspNetCompatibilityEnabled=&amp;quot;true&amp;quot;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/font&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;baseAddressPrefixFilters&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;add prefix=&amp;quot;http://www.yoursite.com&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/baseAddressPrefixFilters&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/serviceHostingEnvironment&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;Note: Your service can be only accessed by URL mentioned in above settings. As configured above you can&amp;rsquo;t access your service via &lt;/font&gt;&lt;a href="http://yoursite.com/"&gt;&lt;font size="3" face="Calibri"&gt;http://yoursite.com&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;. You could also use factory code to host WCF (see below) to resolve this error however alone with that you need to create svc files for each domain service.&lt;br /&gt;&lt;br /&gt;2.Add AspNetCompatibilityRequirementsMode attribute to your RIA Domain services classes&lt;br /&gt;Eg .Attributes added to AuthenticationService class under services folder&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;b&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;font size="3"&gt;public class AuthenticationService : AuthenticationBase&amp;lt;User&amp;gt; { }&lt;/font&gt;&lt;/span&gt;&lt;/em&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;RIA framework dynamically apply these attributes after creating end points. Since we are now bypassing endpoint creation, we need to manually apply these attributes.&lt;br /&gt;&lt;br /&gt;3. For each RIA domain service add following to you configuration file.&lt;br /&gt;E.g. Is shown for AuthenticationService and UserRegistrationService&lt;br /&gt;Where SparkExams is my custom namespace.&lt;br /&gt;&lt;em&gt;&lt;b&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;services&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;service name=&amp;quot;SparkExams.Web.AuthenticationService&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;behaviorConfiguration=&amp;quot;RIAServiceBehavior&amp;quot;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;endpoint address=&amp;quot;&amp;quot; binding=&amp;quot;wsHttpBinding&amp;quot; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;contract=&amp;quot;SparkExams.Web.AuthenticationService&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;endpoint address=&amp;quot;/soap&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;binding=&amp;quot;basicHttpBinding&amp;quot; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;contract=&amp;quot;SparkExams.Web.AuthenticationService&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;endpoint address=&amp;quot;/binary&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;binding=&amp;quot;customBinding&amp;quot; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;bindingConfiguration=&amp;quot;BinaryHttpBinding&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;contract=&amp;quot;SparkExams.Web.AuthenticationService&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/service&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;service name=&amp;quot;SparkExams.Web.UserRegistrationService&amp;quot; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;behaviorConfiguration=&amp;quot;RIAServiceBehavior&amp;quot;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;endpoint address=&amp;quot;&amp;quot; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;binding=&amp;quot;wsHttpBinding&amp;quot; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;contract=&amp;quot;SparkExams.Web.UserRegistrationService&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;endpoint address=&amp;quot;/soap&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;binding=&amp;quot;basicHttpBinding&amp;quot; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;contract=&amp;quot;SparkExams.Web.UserRegistrationService&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;endpoint address=&amp;quot;/binary&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;binding=&amp;quot;customBinding&amp;quot; bindingConfiguration=&amp;quot;BinaryHttpBinding&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;contract=&amp;quot;SparkExams.Web.UserRegistrationService&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/service&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Please note that RIA adds 3 endpoints and if any of these endpoints are missing from web.config it will throw &amp;quot;&lt;b&gt;&lt;i&gt;IIS specified authentication schemes &amp;#39;Basic, Anonymous&amp;#39;...&lt;/i&gt;&lt;/b&gt;&amp;quot; error.&lt;br /&gt;&lt;br /&gt;Add following behaviours and bindings to your web.config&lt;br /&gt;&lt;em&gt;&lt;b&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;behaviors&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;serviceBehaviors&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;behavior name=&amp;quot;RIAServiceBehavior&amp;quot;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;serviceMetadata httpGetEnabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;serviceDebug includeExceptionDetailInFaults=&amp;quot;false&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/behavior&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/serviceBehaviors&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/behaviors&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;bindings&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;customBinding&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;binding name=&amp;quot;BinaryHttpBinding&amp;quot;&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;binaryMessageEncoding /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;httpTransport /&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/binding&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/customBinding&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&amp;lt;/bindings&amp;gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Test you WCF end points using WCF client test tool (Test client for Windows Communication Foundation services). WcfTestClient.exe : Go to VS 2008 Console and type WcfTestClient.exe.&lt;br /&gt;&lt;br /&gt;Note that there is no need to host you service,or change IIS settings by ISP.&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Read further if you want to know how this configuration has been discovered... &lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;1. Have Used Red Gate&amp;#39;s .NET Reflector to examine RIA assemblies.&lt;br /&gt;2. Plugin my custom DomainServiceHost factory to host service.&lt;br /&gt;3. Set debug points on overridable methods &amp;quot;ApplyConfigutation()&amp;quot; in CustomHost&lt;br /&gt;Please find code for class used to injected service host factory at the end of this post.&lt;br /&gt;4. Check where the code was failing and what RIA has configured before failing.Found that it have configured 3 endpoints for each service. Noticed the minimal configuration and rectified other errors one by one.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#333333;line-height:115%;font-family:'Courier New';"&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Ria.Services;&lt;br /&gt;using System.ServiceModel;&lt;br /&gt;using System.ServiceModel.Activation;&lt;br /&gt;using System.ServiceModel.Description;&lt;br /&gt;using System.ServiceModel.Channels;&lt;br /&gt;using System.ComponentModel;&lt;br /&gt;using System.Web.DomainServices;&lt;br /&gt;using System.Net;&lt;br /&gt;namespace System.Web.Ria {&lt;br /&gt;public class DomainServiceHostFactoryEx : DomainServiceHostFactory&lt;br /&gt;{&lt;br /&gt;protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)&lt;br /&gt;{&lt;br /&gt;Uri baseAddress=null;&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;baseAddress = baseAddresses[0];&lt;br /&gt;}&lt;br /&gt;catch (Exception e)&lt;br /&gt;{&lt;br /&gt;baseAddress = new Uri(&amp;quot;http://localhost:52878&amp;quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;CustomHost customServiceHost =&lt;br /&gt;new CustomHost(serviceType, baseAddress);&lt;br /&gt;return customServiceHost;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class CustomHost : DomainServiceHost&lt;br /&gt;{&lt;br /&gt;DomainServiceDescription _domainServiceDescription;&lt;br /&gt;ServiceDescription _sdecreption;&lt;br /&gt;ContractDescription _contract;&lt;br /&gt;public CustomHost(Type serviceType, params Uri[] baseAddresses)&lt;br /&gt;: base(serviceType, baseAddresses)&lt;br /&gt;{&lt;br /&gt;this._domainServiceDescription = DomainServiceDescription.GetDescription(serviceType);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected override ServiceDescription CreateDescription(out IDictionary&amp;lt;string, ContractDescription&amp;gt; implementedContracts)&lt;br /&gt;{&lt;br /&gt;ServiceDescription d = base.CreateDescription(out implementedContracts);&lt;br /&gt;//_contract = implementedContracts[0];&lt;br /&gt;_sdecreption = d;&lt;br /&gt;return d;&lt;br /&gt;}&lt;br /&gt;protected override void ApplyConfiguration()&lt;br /&gt;{&lt;br /&gt;//base.LoadConfigurationSection(new System.ServiceModel.Configuration.ServiceElement(_sdecreption.ConfigurationName));&lt;br /&gt;// try&lt;br /&gt;//{&lt;br /&gt;string error = &amp;quot;&amp;quot;;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;base.ApplyConfiguration();&lt;br /&gt;}&lt;br /&gt;catch (Exception applyconfigerror) { error += &amp;quot;Error1:&amp;quot; + applyconfigerror.Message + &amp;quot;\r\n&amp;quot;; }&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;//this.AddEndpoints();&lt;br /&gt;}&lt;br /&gt;catch (Exception applyconfigerror) { error += &amp;quot;Error2:&amp;quot; + applyconfigerror.Message + &amp;quot;\r\n&amp;quot;; }&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;// this.AddDefaultBehaviors();&lt;br /&gt;}&lt;br /&gt;catch (Exception applyconfigerror) { error += &amp;quot;Error3:&amp;quot; + applyconfigerror.Message + &amp;quot;\r\n&amp;quot;; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//if (error.Length &amp;gt; 0) HttpContext.Current.AddError(new Exception( error));&lt;br /&gt;&lt;br /&gt;//this.AddEndpoints();&lt;br /&gt;//this.AddDefaultBehaviors();&lt;br /&gt;&lt;br /&gt;using (IEnumerator&amp;lt;ServiceEndpoint&amp;gt; enumerator = base.Description.Endpoints.GetEnumerator())&lt;br /&gt;{&lt;br /&gt;while (enumerator.MoveNext())&lt;br /&gt;{&lt;br /&gt;ServiceEndpoint current = enumerator.Current;&lt;br /&gt;//current.Binding.Scheme&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//}&lt;br /&gt;//catch (Exception ex)&lt;br /&gt;// {&lt;br /&gt;//HttpContext.Current.AddError(ex);&lt;br /&gt;// }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:'Courier New';"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx&amp;amp;;subject=WCF+RIA+Service+Hosting+%3a%3a+WCF+RIA+Service+Configuration+in+a+Shared+Hosting%2fServer" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+WCF+RIA+Service+Configuration+in+a+Shared+Hosting%2fServer" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx&amp;amp;title=WCF+RIA+Service+Hosting+%3a%3a+WCF+RIA+Service+Configuration+in+a+Shared+Hosting%2fServer" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+WCF+RIA+Service+Configuration+in+a+Shared+Hosting%2fServer" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+WCF+RIA+Service+Configuration+in+a+Shared+Hosting%2fServer&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/WCF-RIA-Service-Hosting-_3A003A00_-WCF-RIA-Service-Configuration-in-a-Shared-Hosting_2F00_Server.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=60298" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/wcf+hosting/default.aspx">wcf hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/RIA+Service+hosting/default.aspx">RIA Service hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/wcf+ria+service+hosting/default.aspx">wcf ria service hosting</category></item><item><title>ASPHostCentral.com Review :: Top Recommended Web Hoster</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx</link><pubDate>Wed, 03 Mar 2010 02:49:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:60297</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/60297.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=60297</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;The following feedback was posted by &lt;em&gt;&lt;b&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Welly Ang&lt;/span&gt;&lt;/b&gt;&lt;/em&gt; (&lt;em&gt;&lt;u&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;g********s.com&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;):&lt;br /&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;&amp;ldquo;I&amp;#39;m so excited about your hosting.... I have been from hosting company to hosting company looking for a good developer package. I have used 5 different hosts in the past 2 weeks trying to find a good flexible and fast host and I think you guys are finally the ones I&amp;#39;m looking for! Thanks for the quick support and the great flexibility in your hosting! You gave me control over pretty much everything on my domain, so it&amp;#39;s so much easier and quicker to troubleshoot and administer...&amp;rdquo;&lt;br /&gt;&lt;br /&gt;The feedback is based on the following matrix submitted by the client: &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;- Overall Rating: &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;9.5 &lt;/span&gt;&lt;/strong&gt;out of 10&lt;br /&gt;- Uptime and Reliability: &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;9.5&lt;/span&gt;&lt;/strong&gt; out of 10&lt;br /&gt;- Customer Support Assistance: &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;9.5 &lt;/span&gt;&lt;/strong&gt;out of 10&lt;br /&gt;- After Sales Service: &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;10&lt;/span&gt;&lt;/strong&gt; out of 10&lt;br /&gt;- Server Performance and Speed: &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;9.5&lt;/span&gt;&lt;/strong&gt; out of 10&lt;/font&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx&amp;amp;;subject=ASPHostCentral.com+Review+%3a%3a+Top+Recommended+Web+Hoster" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx&amp;amp;;title=ASPHostCentral.com+Review+%3a%3a+Top+Recommended+Web+Hoster" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx&amp;amp;title=ASPHostCentral.com+Review+%3a%3a+Top+Recommended+Web+Hoster" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx&amp;amp;;title=ASPHostCentral.com+Review+%3a%3a+Top+Recommended+Web+Hoster" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx&amp;amp;;title=ASPHostCentral.com+Review+%3a%3a+Top+Recommended+Web+Hoster&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASPHostCentral.com-Review-_3A003A00_-Top-Recommended-Web-Hoster.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=60297" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral+best+host/default.aspx">asphostcentral best host</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com+review/default.aspx">asphostcentral.com review</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral+good+host/default.aspx">asphostcentral good host</category></item><item><title>ASP.NET 4 Hosting :: Working with a Database using Model-First Development Technique</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx</link><pubDate>Tue, 02 Mar 2010 07:57:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:60240</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/60240.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=60240</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Introduction&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;The upcoming release of Visual Studio 2010 will contain the Entity Framework 4 which is Microsoft&amp;#39;s second release of the Entity Framework.&amp;nbsp; The new and improved EF4 contains a boat load of new features which many developers have suggested after using version 1.&amp;nbsp; It also comes closer to the features offered in other Object-Relational Mapping tools such as NHibernate.&amp;nbsp; Object-Relational Mapping tools are used to eliminate much of the tedious code needed to have an application persist and retrieve data from a database.&amp;nbsp; The developer uses a visual interface to build classes that map to tables, relationships, stored procedures, and other objects in a database.&amp;nbsp; One of the great new features of EF4 is the ability to create an ADO.NET Entity Data Model and then build the database from the model.&amp;nbsp; Previously the developer needed to create the database first and then generate the model.&amp;nbsp; EF4 still supports reverse engineering a database but being able to use Visual Studio to design a database based off of an object model is a big step forward with this tool.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;Today, we are going to discuss a way to create a database using Model-First Development Technique. &lt;b&gt;&lt;a href="http://www.asphostcentral.com" title="ASP.NET 4 Hosting"&gt;ASPHostCentral.com&lt;/a&gt;&lt;/b&gt;, as the premier ASP.NET and Windows Hosting provider, proudly presents this article to anyone and we believe it will help many ASP.NET communities; especially to those who are using ASP.NET 4 Framework. In case you are looking for ASP.NET 4 Hosting, you can always consider &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com" title="ASP.NET 4 Hosting"&gt;ASPHostCentral.com&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt; and you can start from our lowest Standard Plan &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;@$4.99/month&lt;/span&gt;&lt;/strong&gt; to host your WCF-service site.&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;The goal of this article is to show you how to create an ADO.NET Entity Data Model using the Entity Framework 4.&amp;nbsp; This article uses Visual Studio 2010 Beta 2 so some of the steps may change once the final version is released to production.&amp;nbsp; Future articles will build upon this application to dive deeper into the EF4 to demonstrate how to query and display data, incorporate stored procedures, customize the classes generated by the EF4, and much more. &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Creating a Database using Model-First Development&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;Step 1: Create a New Solution&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Launch Visual Studio 2010 Beta 2&lt;br /&gt;2. Click the New Project link on the Start Page.&amp;nbsp; The New Project dialog box should appear&lt;br /&gt;3. Click on the Visual C# node from the tree view of installed templates&lt;br /&gt;4. Select Empty ASP.NET Web Application from the list of templates&lt;br /&gt;5. Enter OrderSystem for the project name and click the OK button&lt;br /&gt;&lt;br /&gt;Visual Studio will create a solution file in the folder you specified and also create a sub folder that contains the web site&amp;#39;s project file and config files&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Step 2: Create an ADO.NET Entity Data Model&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The next step is to create the ADO.NET Entity Data Model.&amp;nbsp; For this application we&amp;#39;ll model the concept of users and addresses.&amp;nbsp; A user can have more than one address so we&amp;#39;ll build an entity data model that models this relationship&lt;br /&gt;&lt;br /&gt;1. Right click on the OrderSystem project in the Solution Explorer and select Add &amp;agrave; New Item&amp;hellip;&lt;br /&gt;2. Click the Data node under the Visual C# node in the Installed Templates tree&lt;br /&gt;3. Select the ADO.NET Entity Data Model template&lt;br /&gt;4. Change the name to OrderDB.edmx and click the Add button&lt;br /&gt;5. Visual Studio will display the Entity Data Model Wizard.&amp;nbsp; This is where you can decide to build the model from an existing database or create the model first and then build the database&lt;br /&gt;6. Choose Empty model from the wizard and click the Finish button&lt;br /&gt;&lt;br /&gt;The OrdersDB.edmx file will be added to your project and the file will be displayed in the Entity Framework Designer&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;Step 3: Create the Entities and Associations&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;The next step is to model the user and user&amp;#39;s addresses relationship. Let&amp;#39;s first create the user entity.&lt;br /&gt;&lt;br /&gt;1. Right click on the Entity Data Model Designer and select Add&amp;agrave;Entity&amp;hellip; from the pop-up menu&lt;br /&gt;2. The Add Entity dialog box should appear.&amp;nbsp; Enter UserAccount for the Entity name.&amp;nbsp; Notice that as you type the Entity name the Entity Set name pluralizes the Entity name.&amp;nbsp; Think of the Entity name as the class that represents a record and the Entity set as the class that represents the table of those records&lt;br /&gt;3. By default the Entity Framework will create a Primary Key called Id.&amp;nbsp; If you wish to not create a primary key you can uncheck the Create key property checkbox from the dialog box.&amp;nbsp; For this example we want a primary key so leave the box checked&lt;br /&gt;4. Click the OK button. The UserAccount entity will be added to the entity diagram&lt;br /&gt;5. The next step is to add properties to this entity. Properties will map to fields in a table. We&amp;#39;ll first add the First and Last name properties&lt;br /&gt;6. Right click on the UserAccount entity and select Add&amp;agrave;Scalar property from the pop-up menu&lt;br /&gt;7. Change the property name to FirstName&lt;br /&gt;8. In the properties window change the MaxLength to 50. Scalar properties are strings by default&lt;br /&gt;9. Add another property called LastName the same way and set its MaxLength to 50&lt;br /&gt;&lt;br /&gt;The next step is to add and insert date and update date properties.&amp;nbsp; I like to have the inserted and updated dates on every entity just for the sake of trouble shooting.&amp;nbsp; These are two properties that will be added to every entity so it is the perfect candidate for a Complex Type.&amp;nbsp; A Complex Type allows you to define a set of properties and then associate them with multiple entities.&lt;br /&gt;&lt;br /&gt;10. In the Model Browser window, left click on the Complex Types nodes.&amp;nbsp; Sometimes you have to click more than once for the node to be selected.&amp;nbsp; I&amp;#39;m using Beta 2 so hopefully this will be fixed when it goes live.&amp;nbsp; Once the node is selected right click and select Create Complex Type from the pop-up menu&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;11. Change the name of the complex type to AuditFields&lt;br /&gt;12. Right click on the AuditFields complex type in the Model Browser and select Add&amp;agrave;Scalar Property&amp;agrave;DateTime from the pop-up menu&lt;br /&gt;13. Change the name to InsertDate&lt;br /&gt;14. Follow the same steps to add the UpdateDate property to the complex type&lt;br /&gt;15. Now you can add the Complex property to the UserAccount entity.&amp;nbsp; Right click the UserAccount entity and select Add&amp;agrave;Complex Property from the pop-up menu&lt;br /&gt;16. Change the name to AuditFields.&amp;nbsp; The type should have already defaulted to AuditFields&lt;br /&gt;&lt;br /&gt;When the database is created from this entity it will contain the two audit fields defined in the complex type.Now let&amp;#39;s add the address entity.&amp;nbsp; A user can have more than one address so there is a one-to-many relationship between these two entities&lt;br /&gt;&lt;br /&gt;17. Right click the designer and select Add&amp;agrave;Entity from the pop-up menu&lt;br /&gt;18. Change the name to Address and then click the OK button&lt;br /&gt;19. Add scalar properties to the Address entity for Address1, Address2, City, State, and Zip.&amp;nbsp; All of these properties should be strings with lengths of 50, 50, 50, 2, and 5 respectively&lt;br /&gt;20. Change Address2 to be nullable by settting the Nullable property to True in the properties window.&amp;nbsp; All other properties are required&lt;br /&gt;21. Now add the Audit Fields to this entity by right clicking the Address entity and selecting Add&amp;agrave;Complex Property from the pop-up menu. &amp;nbsp;Set the name to AuditFields and the type to AuditFields&lt;br /&gt;&lt;br /&gt;The next step is to create an association between the UserAccount and Address entities.&lt;br /&gt;&lt;br /&gt;22. Right click on the UserAccount entity and select Add&amp;agrave;Association from the pop-up menu&lt;br /&gt;23. The Add Association dialog appears.&amp;nbsp; It assumes correctly that you want to create a one-to-many relationship between these two entities.&amp;nbsp; You use the Multiplicity drop down to define the variations of relationships but for this example you can leave the defaults and click the OK button.&amp;nbsp; Notice that a UserAccountId property was added to the Address table&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Step 4: Generate the Database&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now that the entities are defined we can create the database.&amp;nbsp; Visual Studio makes this quite simple.&amp;nbsp; A script is generated with the correct DDL statements to create tables, indexes, and relationships which you can then execute against your database&lt;br /&gt;&lt;br /&gt;1. Right click on the Designer and select Generate Database from Model&amp;hellip; from the pop-up menu.&amp;nbsp; The Generate Database Wizard will appear&lt;br /&gt;2. Click the New Connection&amp;hellip; button&lt;br /&gt;3. Enter your Server Name. Choose either User Windows Authentication or Use SQL Server Authentication.&amp;nbsp; Whichever you choose you need a user that has permissions to create a database on the server.&amp;nbsp; For this example I&amp;#39;ll use Windows Authentication&lt;br /&gt;4. Enter OrderSystem for the name of the database and click the OK button&lt;br /&gt;5. You should get a message stating &amp;quot;The database &amp;#39;OrderSystem&amp;#39; does not exist or you do not have permissions to see it.&amp;nbsp; Would you like to attempt to create it?&amp;quot;&amp;nbsp; Click the Yes button&lt;br /&gt;6. The database should be created and you&amp;#39;ll be returned to the Generate Database Wizard dialog.&amp;nbsp; Click the Next button&lt;br /&gt;7. The wizard will now generate the DDL statements needed to create this database&lt;br /&gt;8. Click the Finish button&lt;br /&gt;9. A new file will be added to the project called OrderDB.edmx.sql. The file contains the DDL statements to create the database.&amp;nbsp; The text of the file is as follows:&lt;br /&gt;&lt;/font&gt;&lt;span style="font-size:8.5pt;color:teal;line-height:115%;"&gt;--&amp;nbsp;--------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;line-height:115%;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Date&amp;nbsp;Created:&amp;nbsp;01/17/2010&amp;nbsp;09:39:04&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Generated&amp;nbsp;from&amp;nbsp;EDMX&amp;nbsp;file:&amp;nbsp;C:\Documents&amp;nbsp;and Settings\VinceVarallo\&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;my&amp;nbsp;documents\visual&amp;nbsp;studio 2010\Projects\OrderSystem\OrderSystem\OrderDB.edmx&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;--------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;SET&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;QUOTED_IDENTIFIER&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;OFF&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;SET&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ANSI_NULLS&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ON&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;USE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[OrderSystem]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;IF&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;SCHEMA_ID(N&lt;/span&gt;&lt;span style="font-size:8.5pt;color:red;font-family:'Courier New';"&gt;&amp;#39;dbo&amp;#39;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;IS&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;EXECUTE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(N&lt;/span&gt;&lt;span style="font-size:8.5pt;color:red;font-family:'Courier New';"&gt;&amp;#39;CREATE SCHEMA&amp;nbsp;[dbo]&amp;#39;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Dropping&amp;nbsp;existing&amp;nbsp;FK&amp;nbsp;constraints&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Dropping&amp;nbsp;existing&amp;nbsp;tables&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;all&amp;nbsp;tables&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;table&amp;nbsp;&amp;#39;UserAccounts&amp;#39;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;CREATE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;TABLE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[dbo].[UserAccounts]&amp;nbsp;(&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Id]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;int&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[FirstName]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;nvarchar&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(50)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[LastName]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;nvarchar&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(50)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[AuditFields_InsertDate]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;datetime&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[AuditFields_UpdateDate]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;datetime&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;);&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;table&amp;nbsp;&amp;#39;Addresses&amp;#39;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;CREATE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;TABLE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[dbo].[Addresses]&amp;nbsp;(&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Id]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;int&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Address1]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;nvarchar&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(50)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Address2]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;nvarchar&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(50)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[City]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;nvarchar&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(50)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[State]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;nvarchar&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(2)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Zip]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;nvarchar&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;(5)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[AuditFields_InsertDate]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;datetime&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[AuditFields_UpdateDate]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;datetime&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UserAccountId]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;int&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NOT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:silver;font-family:'Courier New';"&gt;NULL&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;);&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;--------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;all&amp;nbsp;Primary&amp;nbsp;Key&amp;nbsp;Constraints&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;primary&amp;nbsp;key&amp;nbsp;on&amp;nbsp;[Id]&amp;nbsp;in&amp;nbsp;table &amp;#39;UserAccounts&amp;#39;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ALTER&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;TABLE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[dbo].[UserAccounts]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;WITH&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;NOCHECK&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ADD&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;CONSTRAINT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[PK_UserAccounts]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;PRIMARY&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;KEY&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;CLUSTERED&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;([Id]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ASC&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ON&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;PRIMARY&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;primary&amp;nbsp;key&amp;nbsp;on&amp;nbsp;[Id]&amp;nbsp;in&amp;nbsp;table &amp;#39;Addresses&amp;#39;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ALTER&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;TABLE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[dbo].[Addresses]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;WITH&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;NOCHECK&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ADD&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;CONSTRAINT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[PK_Addresses]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;PRIMARY&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;KEY&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;CLUSTERED&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;([Id]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ASC&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ON&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;PRIMARY&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;--------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;all&amp;nbsp;Foreign&amp;nbsp;Key&amp;nbsp;Constraints&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Creating&amp;nbsp;foreign&amp;nbsp;key&amp;nbsp;on&amp;nbsp;[UserAccountId]&amp;nbsp;in table&amp;nbsp;&amp;#39;Addresses&amp;#39;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ALTER&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;TABLE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[dbo].[Addresses]&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;WITH&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;NOCHECK&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ADD&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;CONSTRAINT&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[FK_UserAccountAddress]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;FOREIGN&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;KEY&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;([UserAccountId])&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;REFERENCES&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;[dbo].[UserAccounts]&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;([Id])&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ON&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;DELETE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;NO&amp;nbsp;ACTION&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;ON&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:blue;font-family:'Courier New';"&gt;UPDATE&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&amp;nbsp;NO&amp;nbsp;ACTION&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;GO&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;-- --------------------------------------------------&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;Script&amp;nbsp;has&amp;nbsp;ended&lt;/span&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 6pt;line-height:normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;" class="MsoNormal"&gt;&lt;span style="font-size:8.5pt;color:teal;font-family:'Courier New';"&gt;--&amp;nbsp;--------------------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;It is important to note that the tables weren&amp;#39;t added to the database yet.&amp;nbsp; In order to actually create the tables you need to right click in the OrderDB.edmx.sql file and select Execute SQL from the pop-up menu.&amp;nbsp; You&amp;#39;ll be prompted to log into the server that contains your database.&amp;nbsp; Once you are logged in the script will execute and the objects will be added to your database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Conclusion&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;That&amp;#39;s all you need to do to create a database using the new Entity Framework&amp;#39;s Model First methodology. This is a big improvement over the first edition because it allows you to use Visual Studio to work through the design of you objects first and then VS can figure out how to create the database tables, indexes, and relationships for you.&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx&amp;amp;;subject=ASP.NET+4+Hosting+%3a%3a+Working+with+a+Database+using+Model-First+Development+Technique" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+Working+with+a+Database+using+Model-First+Development+Technique" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx&amp;amp;title=ASP.NET+4+Hosting+%3a%3a+Working+with+a+Database+using+Model-First+Development+Technique" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+Working+with+a+Database+using+Model-First+Development+Technique" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+Working+with+a+Database+using+Model-First+Development+Technique&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/03/02/ASP.NET-4-Hosting-_3A003A00_-Working-with-a-Database-using-Model_2D00_First-Development-Technique.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=60240" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net4+hosting/default.aspx">asp.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net+4+hosting/default.aspx">.net 4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net4+hosting/default.aspx">.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+4+hosting/default.aspx">asp.net 4 hosting</category></item><item><title>WCF RIA Service Hosting :: Error Message - Load Operation Failed for query &quot;GetUser&quot;</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx</link><pubDate>Tue, 23 Feb 2010 06:26:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:59962</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/59962.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=59962</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;Today, we are going to discuss a common issue that you may find when running WCF RIA service on a shared hosting server. &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;b&gt;&lt;span style="color:blue;"&gt;&lt;font size="3" face="Calibri"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;, as the premier ASP.NET and Windows Hosting provider, proudly presents this article to anyone and we believe it will help many ASP.NET communities; especially to those who are using WCF RIA Service. In case you are looking for WCF RIA Service Hosting, you can always consider &lt;b&gt;ASPHostCentral.com&lt;/b&gt; and you can start from our lowest Standard Plan &lt;b&gt;@$4.99/month&lt;/b&gt; to host your WCF-service site.&lt;br /&gt;&lt;br /&gt;One of the most common errors that you may find when running your WCF RIA Service on a shared hosting server is the error message: &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;&amp;ldquo;Load Operation Failed for query &amp;quot;GetUser&amp;quot;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;This is always an annoying issue with Silverlight deployment to do with connection strings and domain authorizations. Basically it&amp;rsquo;s a very generic error that pops up if you&amp;rsquo;re using the in-built standard asp.net model, such as the RIA services models of .net/silverlight development using aspnet authorization and registration. &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;There is a variety of reasons you will get the message popping up, but they all mean that your aspnet authorization calls (once of which is the GetUser call) are not able to contact the database that contains your aspnet data.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Common Reasons&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;- Your development system is using a local SQL Express database which works fine when your on your own machine, but once its online, it&amp;rsquo;s still trying to find the same LocalSqlServer or localhost, and obviously cant. You can get round this in your web.config, using stuff like:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;&amp;lt;remove name=&amp;quot;LocalSqlServer&amp;quot; /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;LocalSqlServer&amp;quot; connectionString=&amp;quot;etc etc&amp;quot;.&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;- Or possibly you have all the connection strings point to the right places, but your new server database doesnt contain all the necessary aspnet tables/framework. Theres some tools that are located in your windows/.net folders, such as aspnet_regiis.exe, which if you search for online, you willl get details on how to use them to automatically configure/update an sqlserver with the all the necessary aspnet objects.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;- You haven not deployed necessary references to the webserver, especially ones such as the System.Web.Ria, System.Web.DomainServices and System.ComponentModel.DataAnnotations. You can select them in your visual studio project and mark the Copy Local propery to True.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;- Also if you have any services mapped from server to client, such as WCF Services, make sure when your publishing to update their bindings/endpoint addresses in the client, as they will be still looking for those services on the localhost development server.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;- Also make sure you use a valid crossdomain.xml and clientaccesspolicy.xml on your web project/deployment. If you do a websearch for these two filenames, you will get lots of examples of various settings to use that might be relevant to your site operation.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Theres also lots of other settings to tweak with your IIS settings that sometimes cause the issues, such as allowed IIS authentications such as anonymous, impersination, forms etc. Some servers run/allow multiple authentications that can cause issues with the aspnet operations of silverlight.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;It&amp;rsquo;s a bit of a minefield, but basically as you can see the problem is a difficult one for so many silverlight developers because there can be so many solutions to fixing the issue.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;The other alternative that you can consider is you can use mix of setting of the correct IIS authentication allowing anonymous and forms, and making sure the default connection strings were update correctly. As for the stuff on our server, please (if possible) remove ASP.NET authorization from your application and please write your own custom authorization, so it&amp;rsquo;s not even trying to update the local sql server for the inbuilt ASP.NET stuff.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;span&gt;&lt;font size="3"&gt;Hope this helps shed some light.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;Reasons to trust your WCF-based website to ASPHostCentral.com&lt;/span&gt;&lt;/b&gt;&lt;span&gt; &lt;p&gt;&lt;span style="color:#333333;"&gt;&lt;font size="3" face="Calibri"&gt;What we think makes &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;b&gt;&lt;span style="color:blue;"&gt;&lt;font size="3" face="Calibri"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; so compelling is how deeply integrated all the pieces are. We integrate and centralize everything--from the systems to the control panel software to the process of buying a domain name. For us, that means we can innovate literally everywhere. We&amp;#39;ve put the guys who develop the software and the admins who watch over the server right next to the 24-hour Fanatical Support team, so we all learn from each other:&lt;br /&gt;&lt;br /&gt;- &lt;b&gt;24/7-based Support&lt;/b&gt; - We never fall asleep and we run a service that is operating 24/7 a year. Even everyone is on holiday during Easter or Christmas/New Year, we are always behind our desk serving our customers&lt;br /&gt;- &lt;b&gt;Excellent Uptime Rate&lt;/b&gt; - Our key strength in delivering the service to you is to maintain our server uptime rate. We never ever happy to see your site goes down and we truly understand that it will hurt your onlines business. If your service is down, it will certainly become our pain and we will certainly look for the right pill to kill the pain ASAP&lt;br /&gt;- &lt;b&gt;High Performance and Reliable Server&lt;/b&gt; - We never ever overload our server with tons of clients. We always load balance our server to make sure we can deliver an excellent service, coupling with the high performance and reliable server&lt;br /&gt;- &lt;b&gt;Experts in WCF RIA Service Hosting&lt;/b&gt; - Given the scale of our environment, we have recruited and developed some of the best talent in the hosting technology that you are using. Our team is strong because of the experience and talents of the individuals who make up ASPHostCentral&lt;br /&gt;- &lt;b&gt;Daily Backup Service&lt;/b&gt; - We realise that your website is very important to your business and hence, we never ever forget to create a daily backup. Your database and website are backup every night into a permanent remote tape drive to ensure that they are always safe and secure. The backup is always ready and available anytime you need it&lt;br /&gt;- &lt;b&gt;Easy Site Administration&lt;/b&gt; - With our powerful control panel, you can always administer most of your site features easily without even needing to contact for our Support Team. Additionally, you can also install &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/FREE-Application-Installations.aspx"&gt;&lt;span style="color:purple;"&gt;&lt;font size="3" face="Calibri"&gt;more than 100 FREE applications&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; directly via our Control Panel in 1 minute!&lt;br /&gt;&lt;br /&gt;Happy hosting!&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#333333;"&gt;&lt;font size="3" face="Calibri"&gt;What we think makes &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;b&gt;&lt;span style="color:blue;"&gt;&lt;font size="3" face="Calibri"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; so compelling is how deeply integrated all the pieces are. We integrate and centralize everything--from the systems to the control panel software to the process of buying a domain name. For us, that means we can innovate literally everywhere. We&amp;#39;ve put the guys who develop the software and the admins who watch over the server right next to the 24-hour Fanatical Support team, so we all learn from each other:&lt;br /&gt;&lt;br /&gt;- &lt;b&gt;24/7-based Support&lt;/b&gt; - We never fall asleep and we run a service that is operating 24/7 a year. Even everyone is on holiday during Easter or Christmas/New Year, we are always behind our desk serving our customers&lt;br /&gt;- &lt;b&gt;Excellent Uptime Rate&lt;/b&gt; - Our key strength in delivering the service to you is to maintain our server uptime rate. We never ever happy to see your site goes down and we truly understand that it will hurt your onlines business. If your service is down, it will certainly become our pain and we will certainly look for the right pill to kill the pain ASAP&lt;br /&gt;- &lt;b&gt;High Performance and Reliable Server&lt;/b&gt; - We never ever overload our server with tons of clients. We always load balance our server to make sure we can deliver an excellent service, coupling with the high performance and reliable server&lt;br /&gt;- &lt;b&gt;Experts in WCF RIA Service Hosting&lt;/b&gt; - Given the scale of our environment, we have recruited and developed some of the best talent in the hosting technology that you are using. Our team is strong because of the experience and talents of the individuals who make up ASPHostCentral&lt;br /&gt;- &lt;b&gt;Daily Backup Service&lt;/b&gt; - We realise that your website is very important to your business and hence, we never ever forget to create a daily backup. Your database and website are backup every night into a permanent remote tape drive to ensure that they are always safe and secure. The backup is always ready and available anytime you need it&lt;br /&gt;- &lt;b&gt;Easy Site Administration&lt;/b&gt; - With our powerful control panel, you can always administer most of your site features easily without even needing to contact for our Support Team. Additionally, you can also install &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/FREE-Application-Installations.aspx"&gt;&lt;span style="color:purple;"&gt;&lt;font size="3" face="Calibri"&gt;more than 100 FREE applications&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; directly via our Control Panel in 1 minute!&lt;br /&gt;&lt;br /&gt;Happy hosting!&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx&amp;amp;;subject=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+-+Load+Operation+Failed+for+query+%26quot%3bGetUser%26quot%3b" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+-+Load+Operation+Failed+for+query+%26quot%3bGetUser%26quot%3b" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx&amp;amp;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+-+Load+Operation+Failed+for+query+%26quot%3bGetUser%26quot%3b" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+-+Load+Operation+Failed+for+query+%26quot%3bGetUser%26quot%3b" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+-+Load+Operation+Failed+for+query+%26quot%3bGetUser%26quot%3b&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_2D00_-Load-Operation-Failed-for-query-_2200_GetUser_2200_.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=59962" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+3+hosting/default.aspx">silverlight 3 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+4+hosting/default.aspx">silverlight 4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/wcf+hosting/default.aspx">wcf hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ria+hosting/default.aspx">ria hosting</category></item><item><title>WCF RIA Service Hosting :: Error Message – This collection already contains an address with scheme http</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx</link><pubDate>Tue, 23 Feb 2010 06:10:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:59961</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/59961.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=59961</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;Today, we are going to discuss a common issue that you may find when running WCF RIA service on a shared hosting server. &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;b&gt;&lt;span style="color:blue;"&gt;&lt;font size="3" face="Calibri"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;, as the premier ASP.NET and Windows Hosting provider, proudly presents this article to anyone and we believe it will help many ASP.NET communities; especially to those who are using WCF RIA Service. In case you are looking for WCF RIA Service Hosting, you can always consider ASPHostCentral.com and you can start from our lowest Standard Plan &lt;b&gt;@$4.99/month&lt;/b&gt; to host your WCF-service site.&lt;br /&gt;&lt;br /&gt;One of the most common errors that you may find when running your WCF RIA Service on a shared hosting server is the error message: &lt;br /&gt;&lt;br /&gt;&amp;ldquo;&lt;b&gt;&lt;i&gt;This collection already contains an address with scheme http.&lt;span&gt;&amp;nbsp; &lt;/span&gt;There can be at most one address per scheme in this collection&lt;/i&gt;&lt;/b&gt;&lt;i&gt;.&lt;/i&gt; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;&lt;span&gt;Exception Details: System.ArgumentException: This collection already contains an address with scheme http.&lt;span&gt;&amp;nbsp; &lt;/span&gt;There can be at most one address per scheme in this collection&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span&gt;.&amp;rdquo; &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;This error message can be retrieved on the Event Viewer window on the server. If you do not have an access to the server, you may contact your hosting provider to trace this error for you.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;&lt;font face="Calibri"&gt;&lt;br /&gt;Solution:&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;This problem is caused by the fact that WCF only supports 1 IIS host header. Your hosting provider may have more than 2 host headers, namely &lt;/font&gt;&lt;a href="http://www.yourdomain.com/"&gt;&lt;span style="color:blue;"&gt;&lt;font size="3" face="Calibri"&gt;www.yourDomain.com&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt; and yourDomain.com. Therefore, you may need to remove one of the host headers from the IIS. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Other Alternative Solution:&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;The other alternative solution you can consider is to create a separate .SVC file. The solution, since WCF services hosted in IIS can have only one Base Address was to create a custom service factory to intercept and remove the additional unwanted base addresses that IIS was providing. Your default IIS settings will have 2 entries of host headers, namely: &lt;/font&gt;&lt;a href="http://www.yourdomain.com/"&gt;&lt;span style="color:blue;"&gt;&lt;font size="3" face="Calibri"&gt;www.yourDomain.com&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt; and yourDomain.com. You then need to customize your .svc file to specify a custom service factory. You are then able to create your custom factory by inheriting from ServiceHostFactory and overriding as required.&lt;br /&gt;&lt;br /&gt;T&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;he following is the code:&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;class CustomHostFactory : ServiceHostFactory &lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomHost customServiceHost =&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new CustomHost(serviceType, baseAddresses[1]);&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return customServiceHost;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class CustomHost : ServiceHost&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public CustomHost(Type serviceType, params Uri[] baseAddresses)&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : base(serviceType, baseAddresses)&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { }&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override void ApplyConfiguration()&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base.ApplyConfiguration();&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;You need to pass through baseAddresses[1] (which was the www. address) but it would probably be wise to specify that address you want to prevent changes by your web host from impacting your code.&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;Please refer to this article at &lt;/font&gt;&lt;a href="http://blogs.msdn.com/rampo/archive/2008/02/11/how-can-wcf-support-multiple-iis-binding-specified-per-site.aspx"&gt;&lt;span style="color:purple;"&gt;&lt;font size="3" face="Calibri"&gt;http://blogs.msdn.com/rampo/archive/2008/02/11/how-can-wcf-support-multiple-iis-binding-specified-per-site.aspx&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; for further information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;"&gt;Reasons to trust your WCF-based website to ASPHostCentral.com&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;span style="color:#333333;"&gt;&lt;font size="3" face="Calibri"&gt;What we think makes &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/" title="WCF RIA Service Hosting"&gt;&lt;b&gt;&lt;span style="color:blue;"&gt;&lt;font size="3" face="Calibri"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; so compelling is how deeply integrated all the pieces are. We integrate and centralize everything--from the systems to the control panel software to the process of buying a domain name. For us, that means we can innovate literally everywhere. We&amp;#39;ve put the guys who develop the software and the admins who watch over the server right next to the 24-hour Fanatical Support team, so we all learn from each other:&lt;br /&gt;&lt;br /&gt;- &lt;b&gt;24/7-based Support&lt;/b&gt; - We never fall asleep and we run a service that is operating 24/7 a year. Even everyone is on holiday during Easter or Christmas/New Year, we are always behind our desk serving our customers&lt;br /&gt;- &lt;b&gt;Excellent Uptime Rate&lt;/b&gt; - Our key strength in delivering the service to you is to maintain our server uptime rate. We never ever happy to see your site goes down and we truly understand that it will hurt your onlines business. If your service is down, it will certainly become our pain and we will certainly look for the right pill to kill the pain ASAP&lt;br /&gt;- &lt;b&gt;High Performance and Reliable Server&lt;/b&gt; - We never ever overload our server with tons of clients. We always load balance our server to make sure we can deliver an excellent service, coupling with the high performance and reliable server&lt;br /&gt;- &lt;b&gt;Experts in WCF RIA Service Hosting&lt;/b&gt; - Given the scale of our environment, we have recruited and developed some of the best talent in the hosting technology that you are using. Our team is strong because of the experience and talents of the individuals who make up ASPHostCentral&lt;br /&gt;- &lt;b&gt;Daily Backup Service&lt;/b&gt; - We realise that your website is very important to your business and hence, we never ever forget to create a daily backup. Your database and website are backup every night into a permanent remote tape drive to ensure that they are always safe and secure. The backup is always ready and available anytime you need it&lt;br /&gt;- &lt;b&gt;Easy Site Administration&lt;/b&gt; - With our powerful control panel, you can always administer most of your site features easily without even needing to contact for our Support Team. Additionally, you can also install &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/FREE-Application-Installations.aspx"&gt;&lt;span style="color:purple;"&gt;&lt;font size="3" face="Calibri"&gt;more than 100 FREE applications&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; directly via our Control Panel in 1 minute!&lt;br /&gt;&lt;br /&gt;Happy hosting!&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx&amp;amp;;subject=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+%e2%80%93+This+collection+already+contains+an+address+with+scheme+http" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+%e2%80%93+This+collection+already+contains+an+address+with+scheme+http" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx&amp;amp;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+%e2%80%93+This+collection+already+contains+an+address+with+scheme+http" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+%e2%80%93+This+collection+already+contains+an+address+with+scheme+http" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx&amp;amp;;title=WCF+RIA+Service+Hosting+%3a%3a+Error+Message+%e2%80%93+This+collection+already+contains+an+address+with+scheme+http&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/23/WCF-RIA-Service-Hosting-_3A003A00_-Error-Message-_1320_-This-collection-already-contains-an-address-with-scheme-http.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=59961" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+3+hosting/default.aspx">silverlight 3 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+4+hosting/default.aspx">silverlight 4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/wcf+hosting/default.aspx">wcf hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ria+hosting/default.aspx">ria hosting</category></item><item><title>ASP.NET 4 Hosting :: CORE Services in ASP.NET 4 Framework</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx</link><pubDate>Fri, 12 Feb 2010 03:38:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:59669</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/59669.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=59669</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="color:#333333;"&gt;Microsoft Visual Studio 2010 and the .NET Framework 4.0 are the next generation development tools and platform for Windows Vista, the 2007 Office System, and the Web. &lt;b&gt;&lt;a href="http://www.asphostcentral.com" title="ASP.NET 4 Hosting"&gt;ASPHostCentral.com&lt;/a&gt;&lt;/b&gt; as the premier Windows and ASP.NET Hosting provider has supported .NET4 Framework in all our hosting environments. The cost to host your .NET4 website/project is priced &lt;span&gt;&amp;nbsp;&lt;/span&gt;as low as &lt;b&gt;&lt;u&gt;$4.99/month ONLY&lt;/u&gt;&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On this articles, we will present you the CORE Services that you can find on ASP.NET 4 Framework. You can certainly get this all CORE features on any hosting plans you choose. &lt;br /&gt;&lt;br /&gt;The Core Services space has a list of new features as well including simplifying the web.config file, permanent page redirection, session state size reduction, expanding the range of allowable URLs, auto-start Web applications, and the list goes on. We&amp;rsquo;ll touch on a few here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Auto-Start Web Applications&lt;/font&gt;&lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;font size="3" face="Calibri"&gt;Some Web applications have extensive initialization code in the Application_Load method in the Global.asax file that needs to be executed before a site can process its first request. The new Auto-Start scalability featured is aimed at resolving this problem when running ASP.NET 4.0 on IIS 7.5 and Windows Server 2008 R2. Cold-starting IIS 7.5 or recycling an application pool causes IIS 7.5 to reference the applicationHost.config file to determine which applications to restart. Marking an application as auto-start informs IIS 7.5 that ASP.NET 4.0 needs to be notified to start the application.&lt;br /&gt;&lt;br /&gt;Adding the following to the applicationHost.config file configures the TakeNoteAppPool application pool for auto-startup.&lt;/font&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:'Verdana','sans-serif';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;applicationPools&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;add&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;name&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;TakeNoteAppPool&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;startMode&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;AlwaysRunning&amp;quot;&amp;nbsp;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;applicationPools&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;If your application pool contains more than a single application, you can specify which applications get auto-started with the applicationHost.config file in &lt;b&gt;Listing 1&lt;/b&gt;. When ASP.NET is in the pre-start state, the type defined in the preloadProvider section of the applicationHost.config file has its Preload method fired.&lt;br /&gt;&lt;/font&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:'Verdana','sans-serif';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;namespace&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;WhatsNew40&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;public&amp;nbsp;class&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;MyInitializationCode:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Web.Hosting.IProcessHostPreloadClient&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;public&amp;nbsp;void&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;Preload(&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;string&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;[]&amp;nbsp;parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;line-height:115%;font-family:'Courier New';"&gt;//&amp;nbsp;Code&amp;nbsp;to&amp;nbsp;run&amp;nbsp;on&amp;nbsp;app&amp;nbsp;start&amp;nbsp;up&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;When the PreLoad method completes, the application is ready to process incoming requests. The new auto-start feature solves the problem of making sure your Web application is ready to accept requests before the first visitor arrives.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Shrinking Session State&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-size:10pt;color:darkblue;line-height:115%;font-family:'Verdana','sans-serif';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;font size="3" face="Calibri"&gt;Session state can be stored out of process on another server or within SQL Server. Both of these approaches require that the session state information be transmitted across the network to the receiving server. ASP.NET 4.0 introduces a way to reduce the size of that session data by compressing and uncompressing it with the System.IO.Compression.GZipStream class with the compressionEnabled setting.&lt;/font&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:'Verdana','sans-serif';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;sessionState&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;mode&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;SqlServer&amp;quot;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;sqlConnectionString&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;connection&amp;nbsp;string&amp;nbsp;here&amp;quot;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;allowCustomerSqlDatabase&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;true&amp;quot;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;compressionEnabled&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;true&amp;quot;&amp;nbsp;/&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Permanently Redirecting a Page&lt;/font&gt;&lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;font size="3" face="Calibri"&gt;When you permanently relocate a Web page, you should return a HTTP 301 status code as well as a location header in the HTTP response of the relocated page. The HTTP 301 code will inform search engines and other user-agents that the page has permanently moved.&lt;br /&gt;&lt;br /&gt;The new RedirectPermanent feature makes it easy to issue HTTP 301 status codes for permanently moved pages.&lt;br /&gt;&lt;/font&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:'Verdana','sans-serif';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;Response.RedirectPermanent(&amp;quot;deadpage.aspx&amp;quot;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:14pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Extensible Output Caching&lt;/font&gt;&lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;font size="3" face="Calibri"&gt;In its simplest forms, caching allows you to store generated HTML pages in memory. This speeds up response time when cache pages are requested since the entire page lifecycle for the page does not have to be processed. The problem with this approach is that all these items are being stored in your Web server&amp;rsquo;s memory-memory that may be at a premium for sites with heavy traffic volume&lt;br /&gt;&lt;br /&gt;This new feature provides a way for storing those cached HTML assets in any storage mechanism you choose. A custom output cache provider is created as a class deriving from System.Web.Caching.OutputCacheProvider. A web.config entry in the new providers section of the outputCache element contains the details for your new class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Web.config Goes on a Diet&lt;/font&gt;&lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;font size="3" face="Calibri"&gt;With all the features that have been added to ASP.NET over the years, it was inevitable that the web.config would swell in size. Add in the new features in ASP.NET 4.0 such as routing, AJAX, outputCaching Providers and so on, and the swelling continues. New to ASP.NET 4.0 is the moving of major configuration settings into the machine.config file with applications inheriting these settings.&lt;br /&gt;&lt;br /&gt;This allows an application to simply not have a web.config file or to have a very simple one like this one specifying the framework version being targeted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="3" face="Calibri"&gt;Listing 1: applicationHost.config file settings for Auto-Start&lt;br /&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size:10pt;line-height:115%;font-family:'Verdana','sans-serif';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;sites&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;site&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;name&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;MainSite&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;id&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;application&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;path&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;/&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;preloadEnabled&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;true&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;preloadProvider&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;AutoLoadData&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;--&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;line-height:115%;font-family:'Courier New';"&gt;//Additional&amp;nbsp;application&amp;nbsp;settings&amp;nbsp;here//&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;--&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;application&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;site&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;sites&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;--&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;line-height:115%;font-family:'Courier New';"&gt;//Additional&amp;nbsp;settings&amp;nbsp;here//&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;--&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;preloadProviders&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;add&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;name&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;AutoLoadData&amp;nbsp;&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;line-height:115%;font-family:'Courier New';"&gt;type&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;=&amp;quot;WhatsNew40.MyInitialzationCode,&amp;nbsp;WhatsNew40&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:#660000;line-height:115%;font-family:'Courier New';"&gt;preloadProviders&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx&amp;amp;;subject=ASP.NET+4+Hosting+%3a%3a+CORE+Services+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+CORE+Services+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx&amp;amp;title=ASP.NET+4+Hosting+%3a%3a+CORE+Services+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+CORE+Services+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+CORE+Services+in+ASP.NET+4+Framework&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/11/ASP.NET-4-Hosting-_3A003A00_-CORE-Services-in-ASP.NET-4-Framework.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=59669" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net4+hosting/default.aspx">asp.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net+4+hosting/default.aspx">.net 4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net4+hosting/default.aspx">.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+4+hosting/default.aspx">asp.net 4 hosting</category></item><item><title>ASP.NET MVC Hosting :: ASP.NET MVC Sample Applications, Open-Source Examples and Tutorials</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx</link><pubDate>Thu, 11 Feb 2010 04:10:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:59619</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/59619.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=59619</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;ASP.NET MVC is a free, fully supported, Microsoft product that enables developers to easily build great web applications. It provides total control over your HTML and URLs, enables rich AJAX integration, and facilitates test driven development.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is a list of various ASP.NET MVC Sample Applications demonstrating the new ASP.NET MVC Framework from Microsoft. If you like to have any of these applications hosted on a server, you can consider &lt;b&gt;&lt;a href="http://www.asphostcentral.com" title="ASP.NET MVC Hosting"&gt;ASPHostCentral.com&lt;/a&gt;&lt;/b&gt; as your ASP.NET MVC hosting provider. With a package starting from only &lt;b&gt;&lt;u&gt;$4.99/month&lt;/u&gt;&lt;/b&gt;, you can have the latest ASP.NET MVC 2 RC framework running on our server. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;CarTrackr&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;CarTrackr is a sample application for the ASP.NET MVC framework using the repository pattern and dependency injection using the Unity application block. It was written for various demos in presentations done by Maarten Balliauw. CarTrackr is an online software application designed to help you understand and track your fuel usage and kilometers driven. You will have a record on when you filled up on fuel, how many kilometers you got in a given tank, how much you spent and how much liters of fuel you are using per 100 kilometer. CarTrackr will enable you to improve your fuel economy and save money as well as conserve fuel. Fuel economy and conservation is becoming an important way to control your finances with the current high price&lt;/font&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://cartrackr.codeplex.com/"&gt;&lt;font size="3" color="#800080" face="Calibri"&gt;http://cartrackr.codeplex.com/&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Codecampserver&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;This is the source code repository for CodeCampServer, a free, open source Code Camp management web application.&lt;br /&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;br /&gt;&lt;a target="_blank" href="http://code.google.com/p/codecampserver/"&gt;&lt;font size="3" color="#034af3" face="Calibri"&gt;http://code.google.com/p/codecampserver/&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Contact Manager&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;In this series of tutorials, Stephen Walther demonstartes how to use the ASP.NET MVC framework to build an entire Contact Manager application using unit tests, test-driven development, Ajax, and software design principles and patterns&lt;/font&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.asp.net/mvc/"&gt;&lt;font size="3" color="#800080" face="Calibri"&gt;http://www.asp.net/mvc/&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;FlickrXplorer&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;The project is an open source initiative to present users a fast photo explorer and search tool to browse millions of photos in flickr. The app is made with a bit of jQuery blend using Asp.net MVC and custom LINQ. The project also embodies a cloud computing scenario where the actual datastore lies millions of miles away invoked though simple API. The Application gives a nice starting point for Asp.net MVC, it also shows a strong integration of jQuery with Asp.net MVC as a client framework. It uses Athena (http://www.codeplex.com/LinqFlickr) LINQ to flickr API for fetching in and out data which is made on a custom LINQ provider toolkit made best for creating LINQ to Cloud APIs (http://www.codeplex.com/LinqExtender).&lt;br /&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;br /&gt;&lt;a target="_blank" href="http://flickrxplorer.codeplex.com/"&gt;&lt;font size="3" color="#034af3" face="Calibri"&gt;http://flickrxplorer.codeplex.com/&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Kigg&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;KiGG is a Web 2.0 style social news web application developed in Microsoft supported technologies. The project uses ASP.NET MVC, Linq To SQL, MS Patterns &amp;amp; Practices Enterprise Library and Unity, jQuery, xUnit.net, Moq, HtmlAgilityPack, DotNetOpenId, and other 3rd party libraries&lt;/font&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.codeplex.com/Kigg"&gt;&lt;font size="3" color="#034af3" face="Calibri"&gt;http://www.codeplex.com/Kigg&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;MVC StoreFront&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;I&amp;#39;m creating an ongoing series of webcasts and blog posts, documenting the building of an eCommerce storefront using ASP.NET MVC&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;a target="_blank" href="http://blog.wekeroad.com/mvc-storefront/"&gt;&lt;font size="3" color="#034af3" face="Calibri"&gt;http://blog.wekeroad.com/mvc-storefront/ &lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Nerddinner&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;NerdDinner.com is an event management site so computer folks can meet and talk technology over a meal. It uses ASP.NET MVC along with jQuery, ASP.NET Ajax, Virtual Earth Javascript controls, and LINQ to SQL. It&amp;rsquo;s also a real site running at&lt;span style="color:#343434;"&gt; &lt;a target="_blank" href="http://www.nerddinner.com/"&gt;&lt;font color="#034af3"&gt;NerdDinner.com&lt;/font&gt;&lt;/a&gt; &lt;/span&gt;that you can use to schedule geek meet ups and nerd dinners in your neighborhood!&lt;br /&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;br /&gt;&lt;a target="_blank" href="http://nerddinner.codeplex.com/"&gt;&lt;font size="3" color="#034af3" face="Calibri"&gt;http://nerddinner.codeplex.com/&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Oxite&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;Oxite is an open source, web standards compliant, blog engine built on ASP.NET MVC and LINQ To SQL. Oxite supports all the features we consider essential to a blog engine, including the MetaWebLog API (to allow you to use LiveWriter or similar tools to add/edit your posts), trackbacks, pingbacks, Sitemaps (for search engines), RSS and ATOM feeds (at the site, blog, tag and post level ... plus feeds of all new comments... great for the site owner), tags, integrated search, web based admin features (including editing posts, your site settings, etc.), email subscriptions for new comments, basic support to publish &amp;#39;pages&amp;#39; (non-blog content) and more.&lt;br /&gt;&lt;/font&gt;&lt;span style="color:#343434;"&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.codeplex.com/oxite"&gt;&lt;font size="3" color="#034af3" face="Calibri"&gt;http://www.codeplex.com/oxite&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx&amp;amp;;subject=ASP.NET+MVC+Hosting+%3a%3a+ASP.NET+MVC+Sample+Applications%2c+Open-Source+Examples+and+Tutorials" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx&amp;amp;;title=ASP.NET+MVC+Hosting+%3a%3a+ASP.NET+MVC+Sample+Applications%2c+Open-Source+Examples+and+Tutorials" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx&amp;amp;title=ASP.NET+MVC+Hosting+%3a%3a+ASP.NET+MVC+Sample+Applications%2c+Open-Source+Examples+and+Tutorials" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx&amp;amp;;title=ASP.NET+MVC+Hosting+%3a%3a+ASP.NET+MVC+Sample+Applications%2c+Open-Source+Examples+and+Tutorials" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx&amp;amp;;title=ASP.NET+MVC+Hosting+%3a%3a+ASP.NET+MVC+Sample+Applications%2c+Open-Source+Examples+and+Tutorials&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/10/ASP.NET-MVC-Hosting-_3A003A00_-ASP.NET-MVC-Sample-Applications_2C00_-Open_2D00_Source-Examples-and-Tutorials.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=59619" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASP.NET+MVC+Hosting/default.aspx">ASP.NET MVC Hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/MVC+Hosting/default.aspx">MVC Hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+mvc+2+rc+hosting/default.aspx">asp.net mvc 2 rc hosting</category></item><item><title>Silverlight 3 Hosting :: RIA Services - RAD for the Middle Tier</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx</link><pubDate>Tue, 09 Feb 2010 06:32:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:59445</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/59445.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=59445</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span&gt;RIA Services is a new Microsoft framework for developing n-tier Line of Business (LoB) applications. RIA Services make it easier to build Silverlight applications that communicate with a server, which is the focus of this article. As a developer, RIA Services provides automatic code generation for common scenarios where you need to perform CRUD &lt;/span&gt;operations on data and have a consistent model to validate data across tiers. The following sections explain how to get started with RIA Services, specify a data source and a UI, and automatically generate code for CRUD operations. Let me show you the big picture of RIA Services from an architectural perspective first&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://www.asphostcentral.com" title="Silverlight 3 Hosting"&gt;ASPHostCentral.com&lt;/a&gt;&lt;/strong&gt; is the premier ASP.NET Hosting Provider which supports Silverlight 3 and RIA Services. You can start creating your first RIA Service project online from as low as &lt;strong&gt;$4.99/month&lt;/strong&gt; ONLY! You can check our various Silverlight Hosting Plans by visiting our website directly at &lt;/font&gt;&lt;/font&gt;&lt;a href="http://www.asphostcentral.com/"&gt;&lt;font size="3" color="#800080" face="Calibri"&gt;http://www.asphostcentral.com&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; &lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;font face="Calibri"&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Understanding RIA Services Architecture&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font size="3" face="Calibri"&gt;RIA Services solves problems in n-tier application design for Silverlight applications by making it easier to serialize and stream objects across a network, sharing common validation among tiers, and automating asynchronous communication. To compare current development practices to what RIA Services offers, consider a common architecture, shown in &lt;strong&gt;Figure 1&lt;/strong&gt;, using Web services to allow a Silverlight application to communicate with the server&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;span&gt;&lt;/span&gt;&lt;img width="460" src="http://webhosting.asphostcentral.com/image.axd?picture=2010%2f2%2ffig1.gif" alt="RIA Service Hosting" height="255" style="width:460px;height:255px;" title="RIA Service Hosting" /&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;Figure 1. &lt;/strong&gt;N-Tier architecture with Web services&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To the left of &lt;strong&gt;Figure 1 &lt;/strong&gt;is a Silverlight control in a browser, which is the presentation tier. Following the network connection to the right, the Web service resides on the server, which is a separate tier where Business Logic Layer (BLL) and Data Access Layer (DAL) code reside; the sidebar, &lt;em&gt;Layers and Tiers&lt;/em&gt;, explains the difference between layers and tiers.&lt;br /&gt;&lt;br /&gt;LoB application development is very much about managing data properly. In the Web services scenario in &lt;strong&gt;Figure 1&lt;/strong&gt;, you can see how data management must be handled in each tier. Perhaps you have a framework that makes it easier to stream data across the wire, but you still have manual work to do in each tier to manage CRUD operations&lt;br /&gt;&lt;br /&gt;Observe in &lt;strong&gt;Figure 1 &lt;/strong&gt;the separate validation code in each tier of the application, because in many cases you can&amp;rsquo;t make the assumption that presentation tier validation is sufficient. Especially in a Web services scenario, any client can send bad data&lt;br /&gt;&lt;br /&gt;A common problem with network communications is timeouts and managing perceived performance in the presentation tier in the face of latency. A common way to handle this is via asynchronous calls where your thread returns to the UI immediately and the application later handles the return thread from the Web service and marshals the call back onto the UI thread to update the screen. There are patterns and framework support for managing this, but you must write the code yourself. The solid line between tiers demonstrates the fact that communication is synchronous by default&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;&lt;em&gt;&amp;ldquo;Up to now, developers have been fortunate to have the tools to build sophisticated n-tier architectures easier than earlier generations of software technology. However, this scenario becomes even easier with RIA Services.&amp;rdquo;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Up to now, developers have been fortunate to have the tools to build sophisticated n-tier architectures easier than earlier generations of software technology. However, this scenario becomes even easier with RIA Services. &lt;strong&gt;Figure 2 &lt;/strong&gt;shows how RIA Services simplifies data management, validation, and communications&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/span&gt;&lt;img width="460" src="http://webhosting.asphostcentral.com/image.axd?picture=2010%2f2%2ffig2.gif" height="243" style="width:460px;height:243px;" /&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;Figure 2: &lt;/strong&gt;RIA Services architecture.&lt;br /&gt;&lt;br /&gt;The single Data Objects block in &lt;strong&gt;Figure 2 &lt;/strong&gt;demonstrates that the UI and BLL/DAL tiers use the same objects. RIA Services supports LINQ to SQL, ADO.NET Entity Framework, and POCO out of the box, reducing the amount of work that you must do to move data across the network. Similarly, Validation has a single block, showing that the same validation rules defined in the BLL will be used in the UI. RIA Services build a proxy for the UI layer to encapsulate asynchronous communication, represented by the dashed line between UI and middle tier, freeing you from the extra coding&lt;br /&gt;&lt;br /&gt;The rest of this article shows you how RIA Services can help reduce the amount of code you write for n-tier LoB applications, starting with an explanation of how to start a Silverlight project that uses RIA Services&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;&lt;font face="Calibri"&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Starting RIA Services in a Silverlight 3 Project&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font size="3" face="Calibri"&gt;The easiest way to use RIA Services is via the Silverlight Application wizard in Visual Studio 2008. The following steps will walk you through the process of creating a Silverlight application that uses RIA Services. For this article I&amp;rsquo;ll use a C# project, but you can do the same with a Visual Basic project:&lt;br /&gt;&lt;br /&gt;1. Start a new Silverlight application by selecting &lt;strong&gt;File &lt;/strong&gt;| &lt;strong&gt;New &lt;/strong&gt;| and &lt;strong&gt;Project&lt;/strong&gt;. You&amp;rsquo;ll see the New Project window in &lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;Figure 3&lt;br /&gt;2. &lt;/strong&gt;Select &lt;strong&gt;Visual C#, &lt;/strong&gt;select &lt;strong&gt;Silverlight &lt;/strong&gt;in Project types, and select &lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;Silverlight Application in Templates&lt;br /&gt;3. &lt;/strong&gt;Set Name to &lt;strong&gt;RIAServicesDemo&lt;/strong&gt;, specify the Location where you want the project to reside, and click &lt;strong&gt;OK&lt;/strong&gt;. You&amp;rsquo;ll see the New Silverlight Application window in &lt;/font&gt;&lt;/font&gt;&lt;strong&gt;&lt;font size="3" face="Calibri"&gt;Figure 4&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;img width="460" src="http://webhosting.asphostcentral.com/image.axd?picture=2010%2f2%2ffig3.gif" height="303" style="width:460px;height:303px;" /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;Figure 3: &lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;font size="3" face="Calibri"&gt;New Project window.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/span&gt;&lt;img width="438" src="http://webhosting.asphostcentral.com/image.axd?picture=2010%2f2%2ffig4.gif" height="389" style="width:438px;height:389px;" /&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;Figure 4: &lt;/strong&gt;New Silverlight Application window.&lt;br /&gt;&lt;br /&gt;If you&amp;rsquo;ve built Silverlight applications before, the New Silverlight Application window in &lt;strong&gt;Figure 4 &lt;/strong&gt;will be familiar. The &lt;em&gt;Host the Silverlight application in a new Web site &lt;/em&gt;check box creates a new ASP.NET Web site with sample pages containing the new Silverlight control. You can change the project name to anything you like, but this demo will use the default. This demo will also use the default of ASP.NET Web Application Project as the project type; the alternative being an ASP.NET Web Site project. What&amp;rsquo;s new, for Silverlight 3, in the New Silverlight Application window is the &lt;em&gt;Link options &lt;/em&gt;section. To use RIA Services, you must check the box for &lt;em&gt;Link to ASP.NET server project&lt;/em&gt;, which establishes the proper assembly references and any other settings required for using RIA Services. If you forget to check the &lt;em&gt;Link to ASP.NET server project &lt;/em&gt;box and change your mind later, you can open the Properties window for the Silverlight project and there is an option called &lt;em&gt;ASP.NET server project &lt;/em&gt;link on the Silverlight tab that you can change&lt;br /&gt;&lt;br /&gt;4. Click &lt;strong&gt;OK &lt;/strong&gt;to create a new solution with a Silverlight application project and an ASP.NET project, shown in &lt;/font&gt;&lt;/font&gt;&lt;strong&gt;&lt;font size="3" face="Calibri"&gt;Figure 5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;img width="460" src="http://webhosting.asphostcentral.com/image.axd?picture=2010%2f2%2ffig5.gif" height="292" style="width:460px;height:292px;" /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;Figure 5: &lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;New RIA Services application solution.&lt;br /&gt;&lt;br /&gt;A couple items in &lt;strong&gt;Figure 5 &lt;/strong&gt;are worthy of mention: assembly references and Toolbox controls. Notice that the Silverlight project, RIAServicesDemo, includes a reference to System.Windows.Ria; the assembly containing RIA Services types. In addition, you can see several new controls in the Toolbox such as DataForm, DataPager, and DatePicker that are new in Silverlight 3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;RIA Services supports multiple types of DAL in your architecture, including LINQ to SQL, LINQ to Entities, or custom.&amp;rdquo;&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx&amp;amp;;subject=Silverlight+3+Hosting+%3a%3a+RIA+Services+-+RAD+for+the+Middle+Tier" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx&amp;amp;;title=Silverlight+3+Hosting+%3a%3a+RIA+Services+-+RAD+for+the+Middle+Tier" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx&amp;amp;title=Silverlight+3+Hosting+%3a%3a+RIA+Services+-+RAD+for+the+Middle+Tier" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx&amp;amp;;title=Silverlight+3+Hosting+%3a%3a+RIA+Services+-+RAD+for+the+Middle+Tier" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx&amp;amp;;title=Silverlight+3+Hosting+%3a%3a+RIA+Services+-+RAD+for+the+Middle+Tier&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/09/Silverlight-3-Hosting-_3A003A00_-RIA-Services-_2D00_-RAD-for-the-Middle-Tier.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=59445" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+3+hosting/default.aspx">silverlight 3 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+hosting/default.aspx">silverlight hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/RIA+Service+hosting/default.aspx">RIA Service hosting</category></item><item><title>ASP.NET 4 Hosting :: What's NEW in Visual C# 4.0?</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx</link><pubDate>Mon, 08 Feb 2010 03:20:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:59387</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/59387.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=59387</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;Visual C# version 4.0 offers new features that make it easier for you to work in dynamic programming scenarios. Besides dynamic programming, you have support for optional and named parameters, better COM interop support, and contra-variance and covariance. This article will show you how each of these features work and provide suggestions of &lt;/span&gt;&lt;/b&gt;&lt;b&gt;how they can be applied to help you be more productive.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;To help you follow the path of C#, this article looks at the history of C#, today&amp;rsquo;s use of C#, and helps you understand the future of C# and what the language intends to provide for you. After you understand the theme of C# 4.0, you&amp;rsquo;ll learn about the new features of C# 4.0. Finally, this article will show you how to create a dynamic object of your own with late-bound calls to dynamic methods based on conventions.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;font face="Calibri"&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;C#: Then and Now&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="3" face="Calibri"&gt;The previous major versions of C# were 1.0, 2.0, and 3.0. There was a minor version 1.1 in April of 2003, but it didn&amp;rsquo;t significantly change the theme of the 1.0 release. &lt;br /&gt;&lt;br /&gt;Microsoft first announced C# on June 16th 2000. It was the first high-level programming language that was built specifically to target the .NET Common Language Runtime. C# 1.0 grew its heritage from C++, but borrowed features from languages such as Delphi, Java, and others. In C# 1.0, Microsoft planned to provide an object-oriented, component-based language that was very simple to use. When Microsoft released C# 1.0 to manufacturing on February 13th 2002, it was an immediate hit and steadily grew in popularity&lt;br /&gt;&lt;br /&gt;When C# 2.0 rolled around, Microsoft finally added all of the features that should have been in C# 1.0. For example, generics was huge and is an important part of .NET development today. C# 2.0 also introduced anonymous methods, iterators, and nullable types. An interesting addition to C# 2.0, nullable types was a pre-cursor feature for what was coming in the next version, focusing on data&lt;br /&gt;&lt;br /&gt;Most developers work with data, which was the primary theme of C# 3.0. The largest C# 3.0 language addition was Language Integrated Query (LINQ). Most other language features added in C# 3.0 were primarily to support LINQ, but the new features; including implicitly typed local variables, anonymous types, object and collection initializers, lambdas, and extension methods, can have value on their own in development that doesn&amp;rsquo;t involve LINQ&lt;br /&gt;&lt;br /&gt;The next version of C# will be 4.0, which is the focus of this article. C# 4.0 will primarily focus on dynamic programming. The following sections of this article explain the dynamic programming features of C# 4.0 as well as other new features such as optional/named parameters and covariance/contravariance&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;font face="Calibri"&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Why Dynamic Programming?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/b&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;The dynamic programming story in C# can fall into fulfilling categories of need in the way of multiple-language integration, simpler reflection, access to HTML DOM in Web scenarios, and easier COM interop. Some of these categories of need might not apply to your particular situation, and that&amp;rsquo;s okay because there isn&amp;rsquo;t anything that says that you have to use a language feature just because it&amp;rsquo;s there. &lt;br /&gt;&lt;br /&gt;Most C# developers use multiple tools in a single application to accomplish complex tasks. If you&amp;rsquo;re writing WPF desktop applications, you&amp;rsquo;re using C# and XAML. It is quite possible that you might find some open source code that solves a problem, but it might be written in another language such as VB or F#. One of the benefits of .NET since its inception is the ability to have cross-language interoperability and the runtime is even called the &amp;ldquo;Common Language&amp;rdquo; Runtime (CLR). In recent years, Microsoft has created dynamic languages, such as IronRuby and IronPython, but developers don&amp;rsquo;t have an easy way to perform interop with dynamic languages. If you have this need, then you&amp;rsquo;ll welcome the ease with which C# dynamic programming makes interop between C# and dynamic languages possible&lt;br /&gt;&lt;br /&gt;When performing reflection to run a method on an object, there are several hoops to jump through, including obtaining a reference to an object type, getting a reference to a member info object, determining the type of bindings to use, and then invoking the member. While reflection has an undeniable coolness factor, it still feels like a hack and that&amp;rsquo;s where C# 4.0 dynamic methods can help&lt;br /&gt;&lt;br /&gt;If you write Silverlight applications, you might have the need today or in the future to access the HTML DOM containing your Silverlight control. C# dynamic programming makes this task easier&lt;br /&gt;&lt;br /&gt;Performing COM interop with C# has always been cumbersome; partly because of the need to write extra syntax for conversions, optional parameters, and more. This has left some C# developers with a touch of VB envy because VB has easier COM interop support. One of the purposes of dynamic programming in C# is to help the C# programmer write cleaner syntax in COM interop scenarios&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Where do you go for Visual C# 4.0 Hosting?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;Basically, you need to look for a host that supports ASP.NET 4.0 Hosting. &lt;b&gt;&lt;a href="http://www.asphostcentral.com" title="ASP.NET 4 Hosting"&gt;ASPHostCentral.com&lt;/a&gt;&lt;/b&gt; is the premier ASP.NET 4 Hosting provider and you can always start from as low as $4.99/month to host your first Visual C# 4.0 project.&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx&amp;amp;;subject=ASP.NET+4+Hosting+%3a%3a+What%27s+NEW+in+Visual+C%23+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+What%27s+NEW+in+Visual+C%23+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx&amp;amp;title=ASP.NET+4+Hosting+%3a%3a+What%27s+NEW+in+Visual+C%23+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+What%27s+NEW+in+Visual+C%23+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+What%27s+NEW+in+Visual+C%23+4.0%3f&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/02/07/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-NEW-in-Visual-C_2300_-4.0_3F00_.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=59387" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net4+hosting/default.aspx">asp.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net4+hosting/default.aspx">.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+4+hosting/default.aspx">asp.net 4 hosting</category></item><item><title>ASP.NET 4 Hosting :: URL Routing in ASP.NET 4 Framework</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx</link><pubDate>Fri, 29 Jan 2010 09:57:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:59065</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/59065.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=59065</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;URL routing was a capability we first introduced with ASP.NET 3.5 SP1, and which is already used within ASP.NET MVC applications to expose clean, SEO-friendly &amp;ldquo;web 2.0&amp;rdquo; URLs.&amp;nbsp; URL routing lets you configure an application to accept request URLs that do not map to physical files. Instead, you can use routing to define URLs that are semantically meaningful to users and that can help with search-engine optimization (SEO).&lt;br /&gt;&lt;br /&gt;For example, the URL for a traditional page that displays product categories might look like below&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.mysite.com/products.aspx?category=software"&gt;http://www.mysite.com/products.aspx?category=software&lt;/a&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;Using the URL routing engine in ASP.NET 4 you can now configure the application to accept the following URL instead to render the same information:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.mysite.com/products/software"&gt;http://www.mysite.com/products/software&lt;/a&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;With ASP.NET 4.0, URLs like above can now be mapped to both ASP.NET MVC Controller classes, as well as ASP.NET Web Forms based pages.&amp;nbsp; You can even have a single application that contains both Web Forms and MVC Controllers, and use a single set of routing rules to map URLs between them.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com/Windows-2008-R2-Hosting.aspx" title="Windows Server 2008 R2 Hosting"&gt;&lt;span style="color:purple;"&gt;&lt;font size="3"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;font size="3"&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt; proudly announces that we are the first host to offer &lt;b&gt;ASP.NET 4 Hosting&lt;/b&gt; with support of &lt;b&gt;Entity Framework 4&lt;/b&gt; to all our new and existing customers and you can start using this newest server from just as low as &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;$4.99/month&lt;/span&gt;&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Response.RedirectPermanent() Method&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;u&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;font face="Calibri"&gt;&lt;span&gt;&lt;font size="3"&gt;It is pretty common within web applications to move pages and other content around over time, which can lead to an accumulation of stale links in search engines&lt;br /&gt;&lt;br /&gt;In ASP.NET, developers have often handled requests to old URLs by using the Response.Redirect() method to programmatically forward a request to the new URL.&amp;nbsp; However, what many developers don&amp;rsquo;t realize is that the Response.Redirect() method issues an HTTP 302 Found (temporary redirect) response, which results in an extra HTTP round trip when users attempt to access the old URLs.&amp;nbsp; Search engines typically &lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;will not&lt;/span&gt;&lt;/em&gt; follow across multiple redirection hops &amp;ndash; which means using a temporary redirect can negatively impact your page ranking.&amp;nbsp; You can use the SEO Toolkit to identify places within a site where you might have this issue&lt;br /&gt;&lt;br /&gt;ASP.NET 4 introduces a new &lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Response.RedirectPermanent(string url)&lt;/span&gt;&lt;/em&gt; helper method that can be used to perform a redirect using an HTTP 301 (moved permanently) response.&amp;nbsp; This will cause search engines and other user agents that recognize permanent redirects to store and use the new URL that is associated with the content.&amp;nbsp; This will enable your content to be indexed and your search engine page ranking to improve&lt;br /&gt;&lt;br /&gt;ASP.NET 4 also introduces new &lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Response.RedirectToRoute(string routeName) &lt;/span&gt;&lt;/em&gt;and &lt;em&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Response.RedirectToRoutePermanent(string routeName)&lt;/span&gt;&lt;/em&gt; helper methods that can be used to redirect users using either a temporary or permanent redirect using the URL routing engine.&amp;nbsp; The code snippets below demonstrate how to issue temporary and permanent redirects to named routes (that take a category parameter) registered with the URL routing system.&lt;br /&gt;&lt;br /&gt;You can use the above routes and methods for both ASP.NET Web Forms and ASP.NET MVC based URLs&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Summary&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;ASP.NET 4 includes a bunch of feature improvements that make it easier to build public facing sites that have great SEO.&amp;nbsp; When combined with the SEO Toolkit, you should be able to use these features to increase user traffic to your site &amp;ndash; and hopefully increase the direct or indirect revenue you make from them&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx&amp;amp;;subject=ASP.NET+4+Hosting+%3a%3a+URL+Routing+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+URL+Routing+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx&amp;amp;title=ASP.NET+4+Hosting+%3a%3a+URL+Routing+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+URL+Routing+in+ASP.NET+4+Framework" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+URL+Routing+in+ASP.NET+4+Framework&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/29/ASP.NET-4-Hosting-_3A003A00_-URL-Routing-in-ASP.NET-4-Framework.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=59065" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net4+hosting/default.aspx">asp.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net+4+hosting/default.aspx">.net 4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net4+hosting/default.aspx">.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+4+hosting/default.aspx">asp.net 4 hosting</category></item><item><title>ASP.NET MVC 2 RC Hosting with ASPHostCentral.com</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx</link><pubDate>Thu, 28 Jan 2010 03:33:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:58988</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/58988.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=58988</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;line-height:normal;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span&gt;ASP.NET MVC 2 RC provides a new Model-View-Controller (MVC) framework on top of the existing ASP.NET 3.5 SP1 runtime.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com/Windows-2008-R2-Hosting.aspx" title="Windows Server 2008 R2 Hosting"&gt;&lt;span style="color:purple;"&gt;ASPHostCentral.com&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span&gt; proudly announces that we are the first host to offer &lt;b&gt;ASP.NET MVC 2 RC Hosting&lt;/b&gt; to all our new and existing customers and you can start using this newest server from just as low as &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;$4.99/month&lt;/span&gt;&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;p&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;br /&gt;Overview&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;ASP.NET MVC 2 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern. The framework encourages developers to maintain a clear separation of concerns among the responsibilities of the application &amp;ndash; the UI logic using the view, user-input handling using the controller, and the domain logic using the model. &lt;br /&gt;&lt;br /&gt;ASP.NET MVC applications are easily testable using techniques such as test-driven development (TDD).&lt;br /&gt;The installation package includes templates and tools for Visual Studio 2008 SP 1 to increase productivity when writing ASP.NET MVC applications. For example, the Add View dialog box takes advantage of customizable code generation (T4) templates to generate a view based on a model object. &lt;br /&gt;&lt;br /&gt;The default project template allows the developer to automatically hook up a unit-test project that is associated with the ASP.NET MVC application.&lt;br /&gt;Because the ASP.NET MVC framework is built on ASP.NET 3.5 SP 1, developers can take advantage of existing ASP.NET features like authentication and authorization, profile settings, localization, and so on.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;System Requirements&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;b&gt;Supported Operating Systems: &lt;/b&gt;Windows 7; Windows Server 2003; Windows Server 2008; Windows Vista&lt;br /&gt;.NET 3.5 SP1. Visual Studio 2008, Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 are required to use certain parts of this feature.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;color:#333333;line-height:115%;"&gt;Reasons to trust your ASP.NET MVC website to us&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;span style="color:#333333;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;What we think makes ASPHostCentral.com so compelling is how deeply integrated all the pieces are. We integrate and centralize everything--from the systems to the control panel software to the process of buying a domain name. For us, that means we can innovate literally everywhere. We&amp;#39;ve put the guys who develop the software and the admins who watch over the server right next to the 24-hour Fanatical Support team, so we all learn from each other&lt;br /&gt;&lt;br /&gt;- &lt;b&gt;24/7-based Support&lt;/b&gt; - We never fall asleep and we run a service that is operating 24/7 a year. Even everyone is on holiday during Easter or Christmas/New Year, we are always behind our desk serving our customers&lt;br /&gt;- &lt;b&gt;Excellent Uptime Rate&lt;/b&gt; - Our key strength in delivering the service to you is to maintain our server uptime rate. We never ever happy to see your site goes down and we truly understand that it will hurt your onlines business. If your service is down, it will certainly become our pain and we will certainly look for the right pill to kill the pain ASAP&lt;br /&gt;- &lt;b&gt;High Performance and Reliable Server&lt;/b&gt; - We never ever overload our server with tons of clients. We always load balance our server to make sure we can deliver an excellent service, coupling with the high performance and reliable server&lt;br /&gt;- &lt;b&gt;Experts in ASP.NET MVC Hosting&lt;/b&gt; - Given the scale of our environment, we have recruited and developed some of the best talent in the hosting technology that you are using. Our team is strong because of the experience and talents of the individuals who make up ASPHostCentral&lt;br /&gt;- &lt;b&gt;Daily Backup Service&lt;/b&gt; - We realise that your website is very important to your business and hence, we never ever forget to create a daily backup. Your database and website are backup every night into a permanent remote tape drive to ensure that they are always safe and secure. The backup is always ready and available anytime you need it.&lt;br /&gt;- &lt;b&gt;Easy Site Administration&lt;/b&gt; - With our powerful control panel, you can always administer most of your site features easily without even needing to contact for our Support Team. Additionally, you can also install &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/FREE-Application-Installations.aspx"&gt;&lt;font size="3" color="#800080" face="Calibri"&gt;more than 100 FREE applications&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; directly via our Control Panel in 1 minute&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;br /&gt;Overview&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;ASP.NET MVC 2 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern. The framework encourages developers to maintain a clear separation of concerns among the responsibilities of the application &amp;ndash; the UI logic using the view, user-input handling using the controller, and the domain logic using the model. &lt;br /&gt;&lt;br /&gt;ASP.NET MVC applications are easily testable using techniques such as test-driven development (TDD).&lt;br /&gt;The installation package includes templates and tools for Visual Studio 2008 SP 1 to increase productivity when writing ASP.NET MVC applications. For example, the Add View dialog box takes advantage of customizable code generation (T4) templates to generate a view based on a model object. &lt;br /&gt;&lt;br /&gt;The default project template allows the developer to automatically hook up a unit-test project that is associated with the ASP.NET MVC application.&lt;br /&gt;Because the ASP.NET MVC framework is built on ASP.NET 3.5 SP 1, developers can take advantage of existing ASP.NET features like authentication and authorization, profile settings, localization, and so on.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;System Requirements&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;b&gt;Supported Operating Systems: &lt;/b&gt;Windows 7; Windows Server 2003; Windows Server 2008; Windows Vista&lt;br /&gt;.NET 3.5 SP1. Visual Studio 2008, Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 are required to use certain parts of this feature.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;&lt;span style="font-size:14pt;color:#333333;line-height:115%;"&gt;Reasons to trust your ASP.NET MVC website to us&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;span style="color:#333333;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;What we think makes ASPHostCentral.com so compelling is how deeply integrated all the pieces are. We integrate and centralize everything--from the systems to the control panel software to the process of buying a domain name. For us, that means we can innovate literally everywhere. We&amp;#39;ve put the guys who develop the software and the admins who watch over the server right next to the 24-hour Fanatical Support team, so we all learn from each other&lt;br /&gt;&lt;br /&gt;- &lt;b&gt;24/7-based Support&lt;/b&gt; - We never fall asleep and we run a service that is operating 24/7 a year. Even everyone is on holiday during Easter or Christmas/New Year, we are always behind our desk serving our customers&lt;br /&gt;- &lt;b&gt;Excellent Uptime Rate&lt;/b&gt; - Our key strength in delivering the service to you is to maintain our server uptime rate. We never ever happy to see your site goes down and we truly understand that it will hurt your onlines business. If your service is down, it will certainly become our pain and we will certainly look for the right pill to kill the pain ASAP&lt;br /&gt;- &lt;b&gt;High Performance and Reliable Server&lt;/b&gt; - We never ever overload our server with tons of clients. We always load balance our server to make sure we can deliver an excellent service, coupling with the high performance and reliable server&lt;br /&gt;- &lt;b&gt;Experts in ASP.NET MVC Hosting&lt;/b&gt; - Given the scale of our environment, we have recruited and developed some of the best talent in the hosting technology that you are using. Our team is strong because of the experience and talents of the individuals who make up ASPHostCentral&lt;br /&gt;- &lt;b&gt;Daily Backup Service&lt;/b&gt; - We realise that your website is very important to your business and hence, we never ever forget to create a daily backup. Your database and website are backup every night into a permanent remote tape drive to ensure that they are always safe and secure. The backup is always ready and available anytime you need it.&lt;br /&gt;- &lt;b&gt;Easy Site Administration&lt;/b&gt; - With our powerful control panel, you can always administer most of your site features easily without even needing to contact for our Support Team. Additionally, you can also install &lt;/font&gt;&lt;a href="http://www.asphostcentral.com/FREE-Application-Installations.aspx"&gt;&lt;font size="3" color="#800080" face="Calibri"&gt;more than 100 FREE applications&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; directly via our Control Panel in 1 minute&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;subject=ASP.NET+MVC+2+RC+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;title=ASP.NET+MVC+2+RC+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx&amp;amp;title=ASP.NET+MVC+2+RC+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;title=ASP.NET+MVC+2+RC+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;title=ASP.NET+MVC+2+RC+Hosting+with+ASPHostCentral.com&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-MVC-2-RC-Hosting-with-ASPHostCentral.com.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=58988" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+mvc+2+hosting/default.aspx">asp.net mvc 2 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/mvc+2+RC+hosting/default.aspx">mvc 2 RC hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+mvc+2+rc+hosting/default.aspx">asp.net mvc 2 rc hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/mvc+2+hosting/default.aspx">mvc 2 hosting</category></item><item><title>ASP.NET 4 Hosting :: What's New in Entity Framework 4.0?</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx</link><pubDate>Wed, 27 Jan 2010 07:41:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:58921</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/58921.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=58921</wfw:commentRss><description>&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Last summer Microsoft released the first version of the ADO.NET Entity Framework as part of .NET 3.5 Service Pack 1.&amp;nbsp;It builds on the concept of Dr. Peter Chen&amp;rsquo;s Entity Relationship Model by introducing a conceptual model, called the Entity Data Model (EDM), which sits on top of the database schema to represent the data in a way that is closer to how objects are modeled in the real world.&amp;nbsp;This higher level of abstraction can help reduce the impedance mismatch that exists between the worlds of relational data and object oriented programming.&amp;nbsp;However, the Entity Framework is much more than another Object-Relational Mapping (ORM) tool.&amp;nbsp;In fact, you can query the EDM using a database-agnostic dialect of SQL called Entity SQL and use old-style data readers to fetch results without materializing them as objects. &lt;p&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com/Windows-2008-R2-Hosting.aspx" title="Windows Server 2008 R2 Hosting"&gt;&lt;font size="3" color="#800080"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt; proudly announces that we are the first host to offer &lt;b&gt;ASP.NET 4 Hosting&lt;/b&gt; with support of &lt;b&gt;Entity Framework 4&lt;/b&gt; to all our new and existing customers and you can start using this newest server from just as low as &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;$4.99/month&lt;/span&gt;&lt;/strong&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;The first ORM released by Microsoft was LINQ to SQL, which shipped with .NET 3.5 and Visual Studio 2008.&amp;nbsp;It&amp;rsquo;s a single-purpose ORM that only works against SQL Server (2000 or later), so Microsoft has decided to throw most of its weight behind the Entity Framework, because it is built on the ADO.NET provider model and can connect to any database for which an Entity-Framework-enabled provider exists (including Oracle, Sybase, and other major DBMS&amp;rsquo;s).&lt;br /&gt;&lt;br /&gt;While the first version of the Entity Framework provided a richer mapping experience, including different ways to model inheritance, it lacked many features required by real-world applications, especially those built on the tenets of service-orientation.&amp;nbsp;For example, classes generated by the entity model designer were tightly coupled to the Entity Framework, which made them difficult to use in n-tier applications where entities should be completely unaware of how they will be persisted.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Coming of Age&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;With version 4.0 of the .NET Platform, Microsoft will release its second version of the Entity Framework, which will include a raft of new features, making it a viable option for use in real-world applications. (As of this writing, the first Community Technology Preview is available for Entity Framework 4.0, which runs on .NET 4.0 Beta 1 with Visual Studio 2010.)&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Persistence Ignorance:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/font&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;You can define your own POCO&amp;rsquo;s (Plain Old CLR Objects) that are decoupled from any specific persistence technology.&amp;nbsp;This allows you to swap out one data access stack for another should the need arise&lt;br /&gt;2. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;T4 Code Generation:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt; EF 4 will ship with a number of T4 code-generation templates which you can customize or replace with your own.&amp;nbsp;(T4 is a code-generation technology built into Visual Studio 2008 or later.)&lt;br /&gt;3. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Lazy Loading:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt; In addition to eager and explicit loading, related entities can be loaded automatically on demand.&amp;nbsp;For example, with an Order class that has an OrderDetails property, marking this property as &lt;i&gt;virtual&lt;/i&gt; will cause order details to be loaded from the database automatically when the OrderDetails property is enumerated&lt;br /&gt;4. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;POCO Change-Tracking:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&amp;nbsp;EF4 will support two models for tracking changes on POCO&amp;rsquo;s.&amp;nbsp;By default EF will take a snapshot of the original state of your objects and then compare it to the current version when saving changes.&amp;nbsp;Alternatively, you can define properties as &lt;i&gt;virtual&lt;/i&gt; so that their state is continually tracked and kept in sync with the object state manager&lt;br /&gt;5. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Better N-Tier Support with Self-Tracking Entities:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/font&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;The first CTP for EF4 includes a T4 template for generating entities that track their own changes on the client, which are then serialized when sent across service boundaries and saved to the database&lt;br /&gt;6. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Model-First Development:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt; &lt;/span&gt;&lt;/strong&gt;Create a model for your entities, then have Visual Studio 2010 generate DDL to create a database with matching tables and relations&lt;br /&gt;7. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Code-Only Development:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt; Write classes and have EF infer a conceptual model (no edmx file!).&amp;nbsp;You can even generate DDL from the dynamic model to create the database and tables&lt;br /&gt;&lt;br /&gt;In addition to these features, EF 4 will include a number of other improvements, such as singularization and pluralization of entity names (for example, when creating a model for the Northwind sample database), an enhanced entity model designer, complex type support, inclusion of foreign keys in the entity model, additional functions and operators for LINQ queries, testability improvements with IObjectSet&amp;lt;T&amp;gt;, and better readability / performance for generated SQL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Better N-Tier Support&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span&gt;One of the most common reasons for using POCO&amp;rsquo;s is to conceal details of object persistence behind a data access layer.&amp;nbsp;Similarly, POCO&amp;rsquo;s are often passed across tiers as Data Transfer Objects (DTO&amp;rsquo;s) in a service-oriented application.&amp;nbsp;One problem that has vexed distributed application developers is how to pass changes from one tier to another so they can be persisted in a disconnected manner.&amp;nbsp;At first, the Entity Framework team decided to provide a low-level API for applying changes to detached objects, requiring you to roll your own change-tracking mechanism, but much of the feedback they received included requests for a built-in change-tracking mechanism and an end-to-end architecture for building n-tier apps that use the Entity Framework.&amp;nbsp;In response to this feedback, the team delivered a T4 template for &lt;i&gt;Self-Tracking Entities,&lt;/i&gt; which allows each entity to keep track of its own change state, so that you can pass it to a remote service where the entire object graph is persisted&lt;br /&gt;&lt;br /&gt;Each generated class implements the &lt;i&gt;IObjectWithChangeTracker&lt;/i&gt; interface, which has a ChangeTracker property, as well as methods to mark the entity as Unchanged, Modified, Added or Deleted.&amp;nbsp;ObjectChangeTracker not only records the object state but also maintains original values of reference properties as well as objects that have been added to or deleted from collection properties.&amp;nbsp;This means that the client can make changes to an Order by adding or removing OrderDetails, and the state of the Order and OrderDetails can be sent to the service for persistence.&amp;nbsp;Change state is serialized because each entity is marked with a [DataContract] attribute and the ChangeTracker is marked with a [DataMember] attribute&lt;br /&gt;&lt;br /&gt;Self-Tracking Entities allow the client to track change state on entities without needing to reference the Entity Framework assembly, System.Data.Entity.&amp;nbsp;The change-tracking code is auto-generated by the T4 template, which produces the ObjectChangeTracker class and a generic FixupChangeTrackingCollection class that does relationship fix-up and implements ICollection to keep track of additions and deletions.&amp;nbsp;Deleted items are cached so they can be removed later when changes are persisted on the service side&lt;br /&gt;&lt;br /&gt;Your service would typically expose a method for retrieving an object graph such as Order and OrderDetails, and a method for updating the object graph.&amp;nbsp;In the update method, you would call &lt;i&gt;ApplyChanges&amp;lt;T&amp;gt;&lt;/i&gt; on the appropriate entity set.&amp;nbsp;ApplyChanges is an extension method residing in the Microsoft.Data.Entity.CTP assembly, which you bring into scope by adding a using directive for the &lt;i&gt;Microsoft.Data.Entity&lt;/i&gt; namespace.&amp;nbsp;This method accepts an object graph as well as a pointer to a method that returns an IEntityChangeTracker, which is responsible for informing the object state manager of these changes.&amp;nbsp;The Self-Tracking Entities T4 template also generates a EntityChangeTrackerAdapter class that implements IEntityChangeTracker by translating the persistence-neutral ObjectState enum (Added, Deleted, Modified, Unchanged) to the equivalent EF-specific EntityState enum values.&amp;nbsp;The code in your service-side update method could look something like this&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;public Order UpdateOrder(Order order)&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;{&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (NorthwindEntities ctx = new NorthwindEntities())&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.Orders.ApplyChanges(order,&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EntityChangeTrackerAdapter.GetSelfTrackingEntityInfo);&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.SaveChanges();&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return order;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Conclusion&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com/Windows-2008-R2-Hosting.aspx" title="Windows Server 2008 R2 Hosting"&gt;&lt;font size="3" color="#800080"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt; proudly announces that we are the first host to offer &lt;b&gt;ASP.NET 4 Hosting&lt;/b&gt; with support of &lt;b&gt;Entity Framework 4&lt;/b&gt; to all our new and existing customers and you can start using this newest server from just as low as &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;$4.99/month&lt;/span&gt;&lt;/strong&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;The first ORM released by Microsoft was LINQ to SQL, which shipped with .NET 3.5 and Visual Studio 2008.&amp;nbsp;It&amp;rsquo;s a single-purpose ORM that only works against SQL Server (2000 or later), so Microsoft has decided to throw most of its weight behind the Entity Framework, because it is built on the ADO.NET provider model and can connect to any database for which an Entity-Framework-enabled provider exists (including Oracle, Sybase, and other major DBMS&amp;rsquo;s).&lt;br /&gt;&lt;br /&gt;While the first version of the Entity Framework provided a richer mapping experience, including different ways to model inheritance, it lacked many features required by real-world applications, especially those built on the tenets of service-orientation.&amp;nbsp;For example, classes generated by the entity model designer were tightly coupled to the Entity Framework, which made them difficult to use in n-tier applications where entities should be completely unaware of how they will be persisted.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Coming of Age&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;With version 4.0 of the .NET Platform, Microsoft will release its second version of the Entity Framework, which will include a raft of new features, making it a viable option for use in real-world applications. (As of this writing, the first Community Technology Preview is available for Entity Framework 4.0, which runs on .NET 4.0 Beta 1 with Visual Studio 2010.)&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Persistence Ignorance:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/font&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;You can define your own POCO&amp;rsquo;s (Plain Old CLR Objects) that are decoupled from any specific persistence technology.&amp;nbsp;This allows you to swap out one data access stack for another should the need arise&lt;br /&gt;2. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;T4 Code Generation:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt; EF 4 will ship with a number of T4 code-generation templates which you can customize or replace with your own.&amp;nbsp;(T4 is a code-generation technology built into Visual Studio 2008 or later.)&lt;br /&gt;3. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Lazy Loading:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt; In addition to eager and explicit loading, related entities can be loaded automatically on demand.&amp;nbsp;For example, with an Order class that has an OrderDetails property, marking this property as &lt;i&gt;virtual&lt;/i&gt; will cause order details to be loaded from the database automatically when the OrderDetails property is enumerated&lt;br /&gt;4. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;POCO Change-Tracking:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&amp;nbsp;EF4 will support two models for tracking changes on POCO&amp;rsquo;s.&amp;nbsp;By default EF will take a snapshot of the original state of your objects and then compare it to the current version when saving changes.&amp;nbsp;Alternatively, you can define properties as &lt;i&gt;virtual&lt;/i&gt; so that their state is continually tracked and kept in sync with the object state manager&lt;br /&gt;5. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Better N-Tier Support with Self-Tracking Entities:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/font&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;The first CTP for EF4 includes a T4 template for generating entities that track their own changes on the client, which are then serialized when sent across service boundaries and saved to the database&lt;br /&gt;6. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Model-First Development:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt; &lt;/span&gt;&lt;/strong&gt;Create a model for your entities, then have Visual Studio 2010 generate DDL to create a database with matching tables and relations&lt;br /&gt;7. &lt;strong&gt;&lt;i&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;Code-Only Development:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt; Write classes and have EF infer a conceptual model (no edmx file!).&amp;nbsp;You can even generate DDL from the dynamic model to create the database and tables&lt;br /&gt;&lt;br /&gt;In addition to these features, EF 4 will include a number of other improvements, such as singularization and pluralization of entity names (for example, when creating a model for the Northwind sample database), an enhanced entity model designer, complex type support, inclusion of foreign keys in the entity model, additional functions and operators for LINQ queries, testability improvements with IObjectSet&amp;lt;T&amp;gt;, and better readability / performance for generated SQL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Better N-Tier Support&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span&gt;One of the most common reasons for using POCO&amp;rsquo;s is to conceal details of object persistence behind a data access layer.&amp;nbsp;Similarly, POCO&amp;rsquo;s are often passed across tiers as Data Transfer Objects (DTO&amp;rsquo;s) in a service-oriented application.&amp;nbsp;One problem that has vexed distributed application developers is how to pass changes from one tier to another so they can be persisted in a disconnected manner.&amp;nbsp;At first, the Entity Framework team decided to provide a low-level API for applying changes to detached objects, requiring you to roll your own change-tracking mechanism, but much of the feedback they received included requests for a built-in change-tracking mechanism and an end-to-end architecture for building n-tier apps that use the Entity Framework.&amp;nbsp;In response to this feedback, the team delivered a T4 template for &lt;i&gt;Self-Tracking Entities,&lt;/i&gt; which allows each entity to keep track of its own change state, so that you can pass it to a remote service where the entire object graph is persisted&lt;br /&gt;&lt;br /&gt;Each generated class implements the &lt;i&gt;IObjectWithChangeTracker&lt;/i&gt; interface, which has a ChangeTracker property, as well as methods to mark the entity as Unchanged, Modified, Added or Deleted.&amp;nbsp;ObjectChangeTracker not only records the object state but also maintains original values of reference properties as well as objects that have been added to or deleted from collection properties.&amp;nbsp;This means that the client can make changes to an Order by adding or removing OrderDetails, and the state of the Order and OrderDetails can be sent to the service for persistence.&amp;nbsp;Change state is serialized because each entity is marked with a [DataContract] attribute and the ChangeTracker is marked with a [DataMember] attribute&lt;br /&gt;&lt;br /&gt;Self-Tracking Entities allow the client to track change state on entities without needing to reference the Entity Framework assembly, System.Data.Entity.&amp;nbsp;The change-tracking code is auto-generated by the T4 template, which produces the ObjectChangeTracker class and a generic FixupChangeTrackingCollection class that does relationship fix-up and implements ICollection to keep track of additions and deletions.&amp;nbsp;Deleted items are cached so they can be removed later when changes are persisted on the service side&lt;br /&gt;&lt;br /&gt;Your service would typically expose a method for retrieving an object graph such as Order and OrderDetails, and a method for updating the object graph.&amp;nbsp;In the update method, you would call &lt;i&gt;ApplyChanges&amp;lt;T&amp;gt;&lt;/i&gt; on the appropriate entity set.&amp;nbsp;ApplyChanges is an extension method residing in the Microsoft.Data.Entity.CTP assembly, which you bring into scope by adding a using directive for the &lt;i&gt;Microsoft.Data.Entity&lt;/i&gt; namespace.&amp;nbsp;This method accepts an object graph as well as a pointer to a method that returns an IEntityChangeTracker, which is responsible for informing the object state manager of these changes.&amp;nbsp;The Self-Tracking Entities T4 template also generates a EntityChangeTrackerAdapter class that implements IEntityChangeTracker by translating the persistence-neutral ObjectState enum (Added, Deleted, Modified, Unchanged) to the equivalent EF-specific EntityState enum values.&amp;nbsp;The code in your service-side update method could look something like this&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;public Order UpdateOrder(Order order)&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;{&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (NorthwindEntities ctx = new NorthwindEntities())&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.Orders.ApplyChanges(order,&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EntityChangeTrackerAdapter.GetSelfTrackingEntityInfo);&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.SaveChanges();&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return order;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt;Conclusion&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:14pt;line-height:115%;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;The nice part about POCO and N-Tier support is the use of T4 templates for code generation, which you can customize or replace altogether.&amp;nbsp;This greatly reduces the amount of code you would otherwise have to write.&amp;nbsp;In addition to these and other features, there are numerous bug fixes and improvements that provide a richer and more rewarding development experience, making the Entity Framework 4.0 an attractive candidate when selecting an ORM tool for building distributed line of business applications&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx&amp;amp;;subject=ASP.NET+4+Hosting+%3a%3a+What%27s+New+in+Entity+Framework+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+What%27s+New+in+Entity+Framework+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx&amp;amp;title=ASP.NET+4+Hosting+%3a%3a+What%27s+New+in+Entity+Framework+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+What%27s+New+in+Entity+Framework+4.0%3f" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx&amp;amp;;title=ASP.NET+4+Hosting+%3a%3a+What%27s+New+in+Entity+Framework+4.0%3f&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/27/ASP.NET-4-Hosting-_3A003A00_-What_2700_s-New-in-Entity-Framework-4.0_3F00_.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=58921" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net4+hosting/default.aspx">asp.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net+4+hosting/default.aspx">.net 4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/.net4+hosting/default.aspx">.net4 hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asp.net+4+hosting/default.aspx">asp.net 4 hosting</category></item><item><title>ASPHostCentral.com - Hosting WCF Services</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx</link><pubDate>Wed, 06 Jan 2010 07:02:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:58245</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/58245.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=58245</wfw:commentRss><description>&lt;p style="margin:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color:black;"&gt;Windows Communication Foundation (WCF) Services can be hosted with Internet Information Services (IIS); with the new Windows Activation Service (WAS) installed with IIS 7.0; or with any managed application process including console, Windows Forms, Windows Presentation Foundation (WPF), or managed Windows service applications. Selecting the right hosting environment for your services is a choice driven largely by deployment requirements related to transport protocol and operating platform&lt;/span&gt;&lt;span style="color:black;"&gt;.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt; &lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#1f497d;font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com/Windows-2008-R2-Hosting.aspx" title="Windows Server 2008 R2 Hosting"&gt;&lt;span style="color:#1f497d;"&gt;&lt;font size="3"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="color:black;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt; proudly announces that we are the first host to offer Windows WCF Hosting Service to all our new and existing customers and you can start using this newest server from just as low as &lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;$4.99/month&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;WCF is part of the .NET Framework 3.0 stack and thus is supported on the following operating platforms: Windows XP/SP2, Windows Vista, Windows Server 2003, and Windows &amp;ldquo;Longhorn&amp;rdquo; Server. Regardless of platform, you can access WCF services over many protocols including HTTP, TCP, IPC and MSMQ. Unfortunately, not all hosting environments are available to each platform, nor does every host support the entire suite of protocols-limiting your options at times&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;Beyond operating platform and choice of protocol, other features available to the hosting environment also influence deployment decisions and choice of host. In this article, I&amp;rsquo;ll describe the desired features of a hosting environment; provide you with an overview of WCF hosting options and their availability; and explain how to implement scenarios applicable to each environment&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;Why choosing ASPHostCentral.com to host your WCF Service website?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;Hosting environments make it possible to expose your services to client applications. They facilitate request processing to service operations, but they can also play a critical role in the availability and scalability of your services&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span&gt;. ASPHostCentral.com hosting environment provides these features:&lt;br /&gt;&lt;br /&gt;- &lt;/span&gt;&lt;b&gt;&lt;i&gt;Executable Process/Application Domain&lt;/i&gt;&lt;/b&gt;: You can use any managed process to host WCF services, which implies the existence of an application domain (&amp;ldquo;app domain&amp;rdquo;).&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;Configuration: A mechanism for external configuration should be available to support deployment and manageability. For managed hosts this is supplied by the application configuration file (app.config or web.config).&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;Activation&lt;/i&gt;&lt;/b&gt;: Ultimately the service model instantiates the appropriate service type to handle incoming requests, but the host process must initialize the channel stack that receives incoming messages. You can do this activation at host startup but it is preferably done through message-based activation&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;Idle-Time Management&lt;/i&gt;&lt;/b&gt;: To conserve server resources during idle time, hosts can release unused resources. Hosts that support this feature usually provide a configurable timeout. Idle-time management relies on the activation capabilities of the host to instantiate resources as needed&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;Health Monitoring&lt;/i&gt;&lt;/b&gt;: To ensure availability a host process must always be running to service requests. Some hosting environments can proactively monitor their processes to ensure a new host process is started when existing processes are unable to service requests.&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;Process Recycling&lt;/i&gt;&lt;/b&gt;: To avoid problems associated with memory leaks or faulty code, some hosting environments support configurable process recycling to &amp;ldquo;freshen up&amp;rdquo; running host processes&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;i&gt;Management Tools&lt;/i&gt;&lt;/b&gt;: Sophisticated hosting environments also provide tools for configuring hosting features for greater control and manageability. This toolset sometimes contains tools for monitoring the health and status of running host processes&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx&amp;amp;;subject=ASPHostCentral.com+-+Hosting+WCF+Services" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx&amp;amp;;title=ASPHostCentral.com+-+Hosting+WCF+Services" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx&amp;amp;title=ASPHostCentral.com+-+Hosting+WCF+Services" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx&amp;amp;;title=ASPHostCentral.com+-+Hosting+WCF+Services" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx&amp;amp;;title=ASPHostCentral.com+-+Hosting+WCF+Services&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/06/ASPHostCentral.com-_2D00_-Hosting-WCF-Services.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=58245" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/WCF+Service+Hosting/default.aspx">WCF Service Hosting</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/wcf+hosting/default.aspx">wcf hosting</category></item><item><title>Silverlight 4 Hosting with ASPHostCentral.com</title><link>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx</link><pubDate>Tue, 05 Jan 2010 04:18:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:58210</guid><dc:creator>asphostcentral</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/comments/58210.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/commentrss.aspx?PostID=58210</wfw:commentRss><description>&lt;p style="margin:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size:14pt;color:black;line-height:115%;"&gt;&lt;font face="Calibri"&gt;What&amp;rsquo;s New in Silverlight 4 Beta?&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:12pt;color:black;line-height:115%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Silverlight 4 delivers a full suite of powerful capabilities to business application developers, bringing the best-of-breed .NET platform to browser-based experiences. Silverlight provides an ideal platform for developing and deploying modern business applications for both customer facing and staff-facing applications.&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#1f497d;font-family:'Calibri','sans-serif';"&gt;&lt;a href="http://www.asphostcentral.com/Windows-2008-R2-Hosting.aspx" title="Windows Server 2008 R2 Hosting"&gt;&lt;span style="color:#1f497d;"&gt;&lt;font size="3"&gt;ASPHostCentral.com&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt; proudly announces that we are the first host to offer Windows Server 2008 R2 Edition to all our new and existing customers and you can start using this newest server from just as low as &lt;/font&gt;&lt;strong&gt;&lt;span style="font-family:'Calibri','sans-serif';"&gt;&lt;font size="3"&gt;$4.99/month&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:12pt;color:black;line-height:115%;font-family:'Calibri','sans-serif';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span style="font-size:13pt;color:black;line-height:115%;"&gt;&lt;font face="Calibri"&gt;Business Application Development&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:12pt;color:black;line-height:115%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Silverlight 4 consolidates its position as the natural choice for building business applications on the Web:&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;New Features for Application Developers&lt;/font&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Comprehensive printing support enabling hardcopy reports and documents as well as a virtual print view, independent of screen content&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;A full set of forms controls with over 60 customizable, styleable components. New controls include RichTextbox with hyperlinks, images and editing and Masked textbox for complex field validation. Enhanced controls include DataGrid with sortable/resizeable columns and copy/paste rows&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;WCF RIA Services introduces enterprise class networking and data access for building n-tier applications including transactions, paging of data, WCF and HTTP enhancements&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Localization enhancements with Bi-Directional text, Right-to-Left support and complex scripts such as Arabic, Hebrew and Thai and 30 new languages&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;The .NET Common Runtime (CLR) now enables the same compiled code to be run on the desktop and Silverlight without change&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Enhanced databinding support increases flexibility and productivity through data grouping/editing and string formatting within bindings&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Managed Extensibility Framework supports building large composite applications&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Exclusive tooling support for Silverlight, new in Visual Studio 2010. Including a full editable design surface, drag &amp;amp; drop data-binding, automatically bound controls, datasource selection, integration with Expression Blend styling resources, Silverlight project support and full IntelliSense&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Developer tools&lt;/font&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Fully editable design surface for drawing out controls and layouts&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Rich property grid and new editors for values&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Drag and drop support for databinding and automatically creating bound controls such as listbox, datagrid. New datasources window and picker&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Easy to pick styles and resources to make a good looking application based on designer resources built in Expression Blend&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Built in project support for Silverlight applications&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Editor with full intellisense for XAML and C# and VB languages&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Empowering richer, more interactive experiences&lt;/font&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Silverlight is already in use as a comprehensive platform for building rich experiences both for application and pure media scenarios including HD quality, interactive video through Smooth Streaming. Silverlight 4 introduces additional capabilities to enable creation of ever more rich, appealing high-performance interactive experiences and innovative media experiences&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="color:black;"&gt;:&lt;br /&gt;&lt;br /&gt;- &lt;/span&gt;&lt;span style="color:black;"&gt;Fluid interface enhancements advance application usability through animation effects&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Webcam and microphone to allow sharing of video and audio for instance for chat or customer service applications&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Audio and video local recording capabilities capture RAW video without requiring server interaction, enabling a wide range of end-user interaction and communication scenarios for example video conferencing&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Bring data in to your application with features such as copy and paste or drag and drop&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Long lists can now be scrolled effortlessly with the mouse wheel&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Support conventional desktop interaction models through new features such as right-click context menu&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Support for Google&amp;rsquo;s Chrome browser&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Performance optimizations mean Silverlight 4 applications start quicker and run 200% faster than the equivalent Silverlight 3 application&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Multi-touch support enables a range of gestures and touch interactions to be integrated into user experiences&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Multicast networking, enabling Enterprises to lower the cost of streaming broadcast events such as company meetings and training, interoperating seamlessly with existing Windows Media Server streaming infrastructure&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Content protection for H.264 media through Silverlight DRM powered by PlayReady&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Output protection for audio/video streams allowing content owners or distributors to ensure protected content is only viewed through a secure video connection&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;b&gt;&lt;span style="font-size:13pt;color:black;line-height:115%;"&gt;Move beyond the browser&lt;/span&gt;&lt;/b&gt;&lt;span style="color:black;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Silverlight 3 pioneered the delivery of a new class of Rich Internet Applications to work on the desktop without additional code or runtimes. Silverlight 4 extends this capability&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="color:black;"&gt;:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color:black;"&gt;For Sandboxed applications&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Place HTML within your application enabling much tighter integration with content from web servers such as email, help and reports&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Provide support for &amp;lsquo;toast&amp;rsquo; notification windows, allowing applications to communicate status or change information while the user is working on another application through a popup window on the taskbar&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Offline DRM, extending the existing Silverlight DRM powered by PlayReady technology to work offline. Protected content can be delivered with a persistent license so that users can go offline immediately and start enjoying their content&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Control over aspects of UI include window settings such as start position, size and chrome&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;For Trusted applications&lt;/font&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Read and write files to the user&amp;rsquo;s MyDocuments, MyMusic, MyPictures and MyVideos folder (or equivalent for non-windows platforms) for example storage of media files and taking local copies of reports&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Run other desktop programs such as Office, for example requesting Outlook to send an email, send a report to Word or data to Excel&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;COM automation enables access to devices and other system capabilities by calling into application components; for instance to access a USB security card reader&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;A new user interface for requesting application privileges access outside the standard Silverlight sandbox&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Group policy objects allow organizations to tailor which applications may have elevated trust&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Full keyboard support in fullscreen mode richer kiosk and media applications&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font size="3" face="Calibri"&gt;- &lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;font size="3" face="Calibri"&gt;Enhancements to networking allow cross-domain access without a security policy file&lt;/font&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;subject=Silverlight+4+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;title=Silverlight+4+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx&amp;amp;title=Silverlight+4+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;title=Silverlight+4+Hosting+with+ASPHostCentral.com" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx&amp;amp;;title=Silverlight+4+Hosting+with+ASPHostCentral.com&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/2010/01/04/Silverlight-4-Hosting-with-ASPHostCentral.com.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=58210" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/ASPHostCentral/default.aspx">ASPHostCentral</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/asphostcentral.com/default.aspx">asphostcentral.com</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+4+host/default.aspx">silverlight 4 host</category><category domain="http://aspadvice.com/blogs/asphostcentralcom_aspnet_host/archive/tags/silverlight+4+hosting/default.aspx">silverlight 4 hosting</category></item></channel></rss>