<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silverlight Hosting News (SuperBlogAds Network)</title>
	<atom:link href="http://www.silverlighthostingnews.com/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.silverlighthostingnews.com</link>
	<description>News about Silverlight Hosting, Silverlight 4 Hosting and WCF RIA Service Hosting</description>
	<lastBuildDate>Fri, 17 Feb 2012 03:50:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Silverlight 5 Hosting :: How to Debug XAML Data Bindings in Silverlight 5 Beta ?</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/664</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/664#comments</comments>
		<pubDate>Fri, 17 Feb 2012 03:50:19 +0000</pubDate>
		<dc:creator>Mark Latchey</dc:creator>
				<category><![CDATA[Silverlight 5 Hosting]]></category>
		<category><![CDATA[cheap silverlight 5 hosting]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>
		<category><![CDATA[silverlight hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=664</guid>
		<description><![CDATA[
<p>Recently launched Silverlight 5 beta having nice features of XAML binding debugging. To Start with this, as a  prerequisites makes sure  you have  latest version Silverlight Toolkit SDK with  Visual Studio 2010 SP1 installed. Once you are done with the setup, first create a simple Silverlight 5 Application with which has some XAL Data Binding.</p>
<p>Now you <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/664">Silverlight 5 Hosting :: How to Debug XAML Data Bindings in Silverlight 5 Beta ?</a></span>]]></description>
			<content:encoded><![CDATA[<div><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-1065" title="European Windows Hosting" src="http://www.aspnethostingnews.com/wp-content/uploads/2011/12/ads_300x180.jpg" alt="" width="400" height="230" /></a></div>
<p>Recently launched Silverlight 5 beta having nice features of XAML binding debugging. To Start with this, as a  prerequisites makes sure  you have  latest version Silverlight Toolkit SDK with  Visual Studio 2010 SP1 installed. Once you are done with the setup, first create a simple Silverlight 5 Application with which has some XAL Data Binding.</p>
<p>Now you can set the breakpoint for the data binding in XAML Code. Run the Application When a breakpoint is hit, you can use the Locals window to explore the state of binding .</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/02/image_12.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/02/image_12.png" alt="" title="image_1" width="447" height="419" class="aligncenter size-full wp-image-665" /></a><br />
There are some additional enhancement introduced with Silverlight Data Binding. you can get complete info from <a href="http://msdn.microsoft.com/en-us/library/gg986857%28VS.96%29.aspx#xaml">http://msdn.microsoft.com/en-us/library/gg986857%28VS.96%29.aspx#xaml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/664/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight Hosting :: Editing Silverlight page data using Domain Service</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/659</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/659#comments</comments>
		<pubDate>Mon, 13 Feb 2012 04:03:11 +0000</pubDate>
		<dc:creator>Landon Ferguson</dc:creator>
				<category><![CDATA[Silverlight 4 Hosting]]></category>
		<category><![CDATA[Silverlight Hosting]]></category>
		<category><![CDATA[cheap hosted silverlight 4]]></category>
		<category><![CDATA[cheap silverlight 4 hosting]]></category>
		<category><![CDATA[cheap silverlight hosting]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>
		<category><![CDATA[silverlight 4 hosting]]></category>
		<category><![CDATA[silverlight hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=659</guid>
		<description><![CDATA[<p>This post discusses to edit the displayed data in Silverlight page and save the changes back to database. Insert, Update and Delete operations can be done using domain service object context. All the changes you made to this object are collectively submitted to the database when you call the SubmitChanges method.</p>

<p>This post requires to create a <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/659">Silverlight Hosting :: Editing Silverlight page data using Domain Service</a></span>]]></description>
			<content:encoded><![CDATA[<p>This post discusses to edit the displayed data in Silverlight page and save the changes back to database. Insert, Update and Delete operations can be done using domain service object context. All the changes you made to this object are collectively submitted to the database when you call the <strong>SubmitChanges</strong> method.</p>
<div><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-1065" title="European Windows Hosting" src="http://www.aspnethostingnews.com/wp-content/uploads/2011/12/ads_300x180.jpg" alt="" width="400" height="230" /></a></div>
<p>This post requires to create a Silverlight Business Application in Visual Studio 2010.<br />
1. Open the Mainpage.xaml , Add the following XAML code to see the Save changes and Reject changes button</p>
<pre>   1: &lt;Button Content="Save Changes" Click="SaveButton_Click"  Margin="5"
   2:       x:Name="SaveButton"&gt;&lt;/Button&gt;
   3: &lt;Button Content="Reject Changes" Click="RejectButton_Click" Margin="5"
   4:       x:Name="RejectButton"&gt;&lt;/Button
   5: &lt;TextBlock x:Name="ChangeText" VerticalAlignment="Center" Width="Auto"&gt;&lt;/TextBlock&gt;</pre>
<p>2. Add the code for button click event handlers as shown below</p>
<pre>   1: private void SaveButton_Click(object sender, RoutedEventArgs e)
   2:  {
   3:   awDept.SubmitChanges(OnSubmitCompleted, null);
   4:  }
   5:
   6:  private void RejectButton_Click(object sender, RoutedEventArgs e)
   7:  {
   8:    awDept.RejectChanges();
   9:    CheckChanges();
  10:  }
  11: private void CheckChanges()
  12:  {
  13:   EntityChangeSet changeSet = awDept.EntityContainer.GetChanges();
  14:   ChangeText.Text = changeSet.ToString();
  15:   bool hasChanges = awDept.HasChanges;
  16:   SaveButton.IsEnabled = hasChanges;
  17:   RejectButton.IsEnabled = hasChanges;
  18:  }
  19:
  20: private void OnSubmitCompleted(SubmitOperation so)
  21:  {
  22:    if (so.HasError)
  23:     {
  24:         MessageBox.Show(string.Format("Submit Failed: {0}", so.Error.Message));
  25:         so.MarkErrorAsHandled();
  26:      }
  27:             CheckChanges();
  28:  }

  29: private void departmentDataGrid_RowEditEnded(object sender,
          DataGridRowEditEndedEventArgs e)
  30: {
  31:          CheckChanges();
  32: }</pre>
<p>3. Open the Metadata file in server project and add the editable attribute to the Id and modified date as shown below</p>
<pre>   1: internal sealed class DepartmentMetadata
   2:         {
   3:
   4:             // Metadata classes are not meant to be instantiated.
   5:             private DepartmentMetadata()
   6:             {
   7:             }
   8:
   9:             [Editable(false)]
  10:             public short DepartmentID { get; set; }
  11:
  12:             public string GroupName { get; set; }
  13:             [Editable(false)]
  14:             public DateTime ModifiedDate { get; set; }
  15:
  16:             public string Name { get; set; }
  17:         }</pre>
<p>4. When you run the application you should be able to see the below screen</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/02/image_11.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/02/image_11.png" alt="" title="image_1" width="1024" height="271" class="aligncenter size-full wp-image-662" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/659/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 5 Hosting :: Silverlight 5 vs HTML 5 in the CRM Namespace</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/657</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/657#comments</comments>
		<pubDate>Mon, 06 Feb 2012 04:59:52 +0000</pubDate>
		<dc:creator>Mark Latchey</dc:creator>
				<category><![CDATA[Silverlight 5 Hosting]]></category>
		<category><![CDATA[amsterdam silverlight 5 hosting]]></category>
		<category><![CDATA[asphostportal]]></category>
		<category><![CDATA[asphostportal.com]]></category>
		<category><![CDATA[cheap silverlight 5 hosting]]></category>
		<category><![CDATA[europe silverlight 5 hosting]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>
		<category><![CDATA[silverlight hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=657</guid>
		<description><![CDATA[<p>It has been so painful to write the title above, but I have been asked the question above several times. The reason people are asking the question is simple. They have seen support introduced for Silverlight 4 in MSCRM 2011, they are aware of the upcoming of Silverlight 5 and HTML 5, which on the face <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/657">Silverlight 5 Hosting :: Silverlight 5 vs HTML 5 in the CRM Namespace</a></span>]]></description>
			<content:encoded><![CDATA[<p>It has been so painful to write the title above, but I have been asked the question above several times. The reason people are asking the question is simple. They have seen support introduced for Silverlight 4 in MSCRM 2011, they are aware of the upcoming of Silverlight 5 and HTML 5, which on the face of things look similar and so are asking the question whats best silverlight 5 or HTML 5.</p>
<div><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-1065" title="European Windows Hosting" src="http://www.aspnethostingnews.com/wp-content/uploads/2011/12/ads_300x180.jpg" alt="" width="400" height="230" /></a></div>
<p>Why is the question painful? Well it’s the wrong question! The question we should be asking exists in the context of a development project. For my given project can I achieve my requirements, while keeping the solution simple and maintainable through Silverlight 5 or HTML 5. This is obviously a question a developer is more likely to ask rather than a consultant, sales person, marketing manager or manager will ask. They are more likely to brisk over the details and simply say, Silverlight 5 does animations, HTML does animations, which one do we use?</p>
<p>I’m not going to get in to the technical details, theres plenty of blogged technical comparisons out there that demonstrate the differences, I’m going to keep it simple. I’m going to give you my opinion, so how do I answer the question?</p>
<p><strong>They are two completely different technologies! </strong>Put aside the funky groovy animations that you have seen demonstrations of! Silverlight is an entire platform that sits on the Microsoft stack and offers increased efficiency and functionality by utilising the resources of your machine. HTML 5 is a markup language which is dependant on browsers implementation of the new standard. The standard has been updated to reduce the amount of plugins you need to install to handles things such as video.</p>
<p>So with CRM in mind if your application requires a lot of functionality that interfaces to your PC devices or interfaces to external system (web services, dlls) then silverlight is your port of call. If you are looking for client rich UI that is based on simple input then HTML 5 is the better option.</p>
<p>What do I think we will see in the future deployed in to MSCRM? The answer is both, hopefully deployed in the right scenarios. Personally I can’t see Microsoft dropping Silverlight as its currently integrated in to MSCRM, one of their main flagship products. It is also heavily used on the windows phone platform which is being marketed by Microsoft and Nokia. In phone development you have the choice of XNA for game development or Silverlight for application development. HTML isn’t going anywhere either. The standard just needs to be fully agreed and implemented by the browsers.</p>
<p>In the future I can see Silverlight moving on much quicker than HTML, offering new rounds of features quicker than HTML. A new feature in HTML will have to be approved and browsers will have to implement the new changes. For Silverlight all Microsoft need to do is update their silverlight runtime and deploy the update through a Windows Update.</p>
<p>I may have glossed over a lot of in-depth details between the two but my view point is simple. They are both here to stay and as developers we should embrace them both. We should be looking at our requirements independently and deciding which is the simplest solution to deploy. For now until the standard has been agreed for HTML 5 and implemented I personally will be using Silverlight. However, I’m looking forward to implementing my first HTML 5 solution within MSCRM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/657/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Europe Web Hosting Providers</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/654</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/654#comments</comments>
		<pubDate>Fri, 03 Feb 2012 04:10:51 +0000</pubDate>
		<dc:creator>Jonas OReilly</dc:creator>
				<category><![CDATA[Other Related Posts]]></category>
		<category><![CDATA[Silverlight 4 Hosting]]></category>
		<category><![CDATA[Silverlight 5 Hosting]]></category>
		<category><![CDATA[Silverlight Hosting]]></category>
		<category><![CDATA[WCF RIA Service Hosting]]></category>
		<category><![CDATA[asp.net european hosting]]></category>
		<category><![CDATA[cheap europe hosting]]></category>
		<category><![CDATA[european hosting]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>
		<category><![CDATA[windows european hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=654</guid>
		<description><![CDATA[<p>What is it?</p>
<p>Web host providers in Europe can offer all the amenities that any host in an industrialized country can offer. Web site customers can find budget, dedicated, shared, reseller, and shared hosting. Applications include all the latest languages, frameworks, and capabilities that a consumer could find at a Web host in the U.S. Domain name <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/654">Best Europe Web Hosting Providers</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>What is it?</strong></p>
<p><a href="http://www.hostforlife.eu/">Web host providers</a> in Europe can offer all the amenities that any host in an industrialized country can offer. Web site customers can find budget, dedicated, shared, reseller, and shared hosting. Applications include all the latest languages, frameworks, and capabilities that a consumer could find at a Web host in the U.S. Domain name registration also is conducted throughout Europe. Top level domains are used for different countries (such as ‘.de’ for Germany), but consumers can find an purchase a registration for any top level domain through domain registrars or hosting companies throughout Europe.</p>
<p><strong>What Are the Issues?</strong></p>
<p>European Web hosts vary from country to country for services and for pricing. Depending upon the country and whether they take the country currency or Euros, the prices can vary widely. Currently, there seems little point in comparing Web hosting in Euros to the price of Web hosting in American dollars, due to the dollar value. However, a test of prices on Web hosting from various countries to American sites shows that the cost of hosting in the U.S. remains less expensive for the services offered.</p>
<p>Domain name registration can vary from country to country as well. Many registrars will offer all domain names, and others offer European top level domains only. Annual registration for domain names remains more expensive in Europe than it does in the U.S., and some domain names require a special set up fee depending upon the hosting service.</p>
<p><strong>Where to go for European Web Hosting?</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="433" valign="top"><a href="http://www.hostforlife.eu/">HostForLife.eu</a> is awarded a <strong>SPOTLIGHT</strong> status on Microsoft ASP.NET website (<a href="http://www.microsoft.com/web/hosting/home">http://www.microsoft.com/web/hosting/home</a>) for offering the best, most affordable and features-rich ASP.NET Hosting in European Continent. Our service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and many top European countries.</td>
<td width="205" valign="top"> <a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-655" title="HostForLife_awards_spotlight" src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/02/awards_spotlight.gif" alt="" width="180" height="197" /></a><a href="http://www.hostforlife.eu/"></a></td>
</tr>
</tbody>
</table>
<p>We are selected by Microsoft website due to the fact that we have passed several verification and validation process. A &#8220;Spotlight&#8221; status indicates offers that utilize the latest Microsoft technology, deliver 99.9% uptime, and provide 24/7 support. All offers must pre-install and pre-configure SQL Server 2008, ASP.NET 4.0, MVC 2.0, URL Rewrite, IIS Remote Management, and Web Deploy. We have also successfully completed a Web Matrix publishing test.</p>
<p>The following are the features of our STARTER PLAN with SPOTLIGHT status:</p>
<p>- Unlimited Disk Space<br />
- Unlimited Domains<br />
- Unlimited Bandwidth<br />
- Support ASP.NET 4.0, ASP.NET MVC 3.0, URL Rewrite, Silverlight 4<br />
- Support SQL Server 2008 R2 and mySQL database<br />
- Support WebDeploy and Remote IIS Manager Access<br />
- Price: from €3.00/month<br />
- To register, please proceed directly to <a href="https://secure.hostforlife.eu/">https://secure.hostforlife.eu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/654/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Press Release &#8211; Premier European HostForLIFE.eu Launches Silverlight 5 Hosting</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/651</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/651#comments</comments>
		<pubDate>Fri, 03 Feb 2012 03:57:51 +0000</pubDate>
		<dc:creator>Mark Latchey</dc:creator>
				<category><![CDATA[Silverlight 5 Hosting]]></category>
		<category><![CDATA[amsterdam silverlight 5 hosting]]></category>
		<category><![CDATA[cheap silverlight 5 hosting]]></category>
		<category><![CDATA[europe silverlight 5 hosting]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>
		<category><![CDATA[silverlight hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=651</guid>
		<description><![CDATA[<p>HostForLIFE.eu was established to cater to an under served market in the hosting industry; web hosting for customers who want excellent service. HostForLIFE.eu – a cheap, constant uptime, excellent customer service, quality, and also reliable hosting provider in advanced Windows and ASP.NET technology. We proudly announces the availability of the Silverlight 5 hosting in our entire <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/651">Press Release &#8211; Premier European HostForLIFE.eu Launches Silverlight 5 Hosting</a></span>]]></description>
			<content:encoded><![CDATA[<p>HostForLIFE.eu was established to cater to an under served market in the hosting industry; web hosting for customers who want excellent service. HostForLIFE.eu – a cheap, constant uptime, excellent customer service, quality, and also reliable hosting provider in advanced Windows and ASP.NET technology. We proudly announces the availability of the Silverlight 5 hosting in our entire servers environment.</p>
<div><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-1065" title="European Windows Hosting" src="http://www.aspnethostingnews.com/wp-content/uploads/2011/12/ads_300x180.jpg" alt="" width="400" height="230" /></a></div>
<p>You can start hosting your ASP.NET MVC 3 site on our environment from as just low €3.00/month only. For more information about our new product, please visit our site at <a href="http://www.hostforlife.eu/Silverlight-5-European-Hosting.aspx" target="_blank">http://www.hostforlife.eu/Silverlight-5-European-Hosting &#8230;</a>.</p>
<p>“Today, we are really happy to announce the release of Silverlight 5 on our hosting environment. Silverlight 5 is part of a rich offering of technologies from Microsoft helping developers deliver applications for the web, desktop, and mobile devices. I personally would like to thank the people who have assisted in completing this project.” Said CEO of HostForLIFE.eu, Anthony Johnson.</p>
<p>“Silverlight 5 delivers great features that allow hardware H.264 decoding, adapting it better for video content. It also sports an improved graphics stack with 3D support, using the XNA API. This makes Silverlight 5 a more mature and capable platform for developing rich internet application.” Said John Curtis, VP Marketing and Business Development at HostForLIFE.eu. “We believe that our Silverlight 5 provide great opportunity to web developers.”</p>
<p>Silverlight 5 also includes the following developer related enhancements:</p>
<p>- XAML Debugging with breakpoints for binding debugging<br />
- Implicit data templates for easy UI reuse<br />
- Double (and multi) click support<br />
- GPU-accelerated XNA-compatible 3D and immediate-mode 2D API<br />
- Low-latency sound effects and WAV support<br />
- Real operating system windows and multi-display support<br />
- Significant performance improvements, fixes and much more</p>
<p>For complete information about this new product, please visit our official site at <a href="http://www.hostforlife.eu/" target="_blank">http://www.hostforlife.eu</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/651/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 Hosting :: How to Read and Write Files in Silverlight 4</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/640</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/640#comments</comments>
		<pubDate>Fri, 27 Jan 2012 05:35:51 +0000</pubDate>
		<dc:creator>Mark Latchey</dc:creator>
				<category><![CDATA[Silverlight 4 Hosting]]></category>
		<category><![CDATA[cheap silverlight 4 hosting]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>
		<category><![CDATA[silverlight 4 europe hosting]]></category>
		<category><![CDATA[silverlight 4 hosting]]></category>
		<category><![CDATA[silverlight europe hosting]]></category>
		<category><![CDATA[silverlight hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=640</guid>
		<description><![CDATA[<p>Introduction:</p>
<p>As we know, Silverlight has limitations for accessing files from local drives. In this article, we will see how to read and write files anywhere in local drives.</p>

<p>Creating OOB Silverlight Application:</p>
<p>Fire up VS 2010 and create a Silverlight Application with the name ReadingWritingFiles.</p>
<p></p>
<p>Setting for OOB Silverlight Application:</p>
<p>The settings for OOB application is given here.</p>
<p></p>
<p>First, go to the <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/640">Silverlight 4 Hosting :: How to Read and Write Files in Silverlight 4</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction:</strong></p>
<p>As we know, Silverlight has limitations for accessing files from local drives. In this article, we will see how to read and write files anywhere in local drives.</p>
<div><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-1065" title="European Windows Hosting" src="http://www.aspnethostingnews.com/wp-content/uploads/2011/12/ads_300x180.jpg" alt="" width="400" height="230" /></a></div>
<p><strong>Creating OOB Silverlight Application:</strong></p>
<p>Fire up VS 2010 and create a Silverlight Application with the name <strong>ReadingWritingFiles.</strong></p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_19.gif"><img class="aligncenter size-full wp-image-641" title="image_1" src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_19.gif" alt="" width="624" height="432" /></a></p>
<p><strong>Setting for OOB Silverlight Application:</strong></p>
<p>The settings for OOB application is given here.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_21.gif"><img class="aligncenter size-full wp-image-642" title="image_2" src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_21.gif" alt="" width="602" height="303" /></a></p>
<p>First, go to the Project Properties -&gt; Silverlight.</p>
<p>As shown above select the checkbox marked as 1 and click the Out-Of-BrowserSettings button it will pop up a window. In that Out-Of-BrowserSettings window select the Require elevated trust when running outside the browser which makes the Silverlight application to access the local files (My Documents, My Music etc.).</p>
<p>Now our OOB Application is ready to have the feature of reading and writing local files.</p>
<p><strong>Designing the Silverlight OOB Application:</strong></p>
<p>Design the Application as per the image given below.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_31.gif"><img class="aligncenter size-full wp-image-643" title="image_3" src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_31.gif" alt="" width="460" height="226" /></a><br />
Else, use the XAML code to produce the above design.</p>
<pre>&lt;Grid x:Name="LayoutRoot"  Width="695"&gt;
        &lt;Grid.Background&gt;
            &lt;LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"&gt;
                &lt;GradientStop Color="Black" Offset="1" /&gt;
                &lt;GradientStop Color="White" Offset="0.785" /&gt;
            &lt;/LinearGradientBrush&gt;
        &lt;/Grid.Background&gt;
        &lt;Grid.ColumnDefinitions&gt;
            &lt;ColumnDefinition Width="*" /&gt;
            &lt;ColumnDefinition Width="115" /&gt;
        &lt;/Grid.ColumnDefinitions&gt;
        &lt;Border&gt;
            &lt;StackPanel Orientation="Vertical" Grid.Column="0" Background="Transparent"&gt;
                &lt;RichTextBox Name="rtbContent" Height="405" ScrollViewer.VerticalScrollBarVisibility="Auto"  ScrollViewer.HorizontalScrollBarVisibility="Auto" &gt;
                &lt;/RichTextBox&gt;
            &lt;/StackPanel&gt;
        &lt;/Border&gt;
        &lt;Border Grid.Column="1"&gt;
            &lt;StackPanel Orientation="Vertical" &gt;
                &lt;StackPanel Orientation="Vertical"  Height="20"&gt;
                    &lt;Image Name="imgClose" Width="20" Height="20" HorizontalAlignment="Right"  MouseLeftButtonDown="imgClose_MouseLeftButtonDown" Source="/ReadingWritingFiles;component/Image/close.png"&gt;&lt;/Image&gt;
                &lt;/StackPanel&gt;
                &lt;Button Content="Read File" Name="btnReadFile" Width="100" Height="20" Margin="0,160,0,0" Click="ReadFileFromLocalDrive"&gt;&lt;/Button&gt;
                &lt;Button Content="Write File" Name="btnWriteFile" Width="100" Height="20" Margin="0,30,0,0" Click="WriteFileToLocalDrive"&gt;&lt;/Button&gt;
            &lt;/StackPanel&gt;
        &lt;/Border&gt;
    &lt;/Grid&gt;</pre>
<p><strong>Reading Files from Local Drives :</strong></p>
<p>Using the OpenFileDialog class, we are accessing the files from Local Drives. We cannot access the root path of file but we can access the file as a Stream using the following piece of code.</p>
<p>When you call the ShowDialog method in OpenFileDialog it will show the OpenFileDialog so that Silverlight gives the access permission to the files from anywhere in the local drives like from C:\ or D:\ etc.</p>
<p>However, when you try to access the root path of the file or when you try to access the files using the root path like c:\SomeFolder\SomeFile.txt at the time it will throw error.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_41.gif"><img class="aligncenter size-full wp-image-644" title="image_4" src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_41.gif" alt="" width="480" height="137" /></a></p>
<p>The above code uses the method OpenRead () to read the stream of the file.</p>
<p><strong>Writing Files to Local Drives:</strong></p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_51.gif"><img class="aligncenter size-full wp-image-645" title="image_5" src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_51.gif" alt="" width="475" height="220" /></a><br />
As the image shown above, we can write the file in local drive with the help of SaveFileDialog.</p>
<p>The OpenFile() file method will open a text file in the selected folder to write the content.</p>
<p>Here we have used the RichTextBox to show the content of the text file and save the content to the File.</p>
<p><strong>Summary:</strong></p>
<p>In conclusion, we can access the files anywhere in the system using OpenFileDialog and SaveFileDialog in Silverlight 4.</p>
<p>Please provide your valuable feedbacks and suggestions. Thanks in Advance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/640/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 5 Hosting :: Basic About Silverlight 5</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/619</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/619#comments</comments>
		<pubDate>Tue, 10 Jan 2012 07:59:26 +0000</pubDate>
		<dc:creator>Mark Latchey</dc:creator>
				<category><![CDATA[Silverlight 5 Hosting]]></category>
		<category><![CDATA[cheap silverlight 5 hosting]]></category>
		<category><![CDATA[cheap silverlight hosting]]></category>
		<category><![CDATA[cheap WCF RIA hosting]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>
		<category><![CDATA[silverlight hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=619</guid>
		<description><![CDATA[<p>In this article we are going to explore the WCF Ria Services with Silverlight 5. Lets start with the basics for the first timers .</p>

<p>Create a new SL project as shown below :</p>
<p>
Note the DLLs that are added when you enable WCF RIA Service support.</p>
<p>
In the web project Add New Item . Add a Data Model <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/619">Silverlight 5 Hosting :: Basic About Silverlight 5</a></span>]]></description>
			<content:encoded><![CDATA[<p>In this article we are going to explore the WCF Ria Services with Silverlight 5. Lets start with the basics for the first timers .</p>
<div><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-1065" title="European Windows Hosting" src="http://www.aspnethostingnews.com/wp-content/uploads/2011/12/ads_300x180.jpg" alt="" width="400" height="230" /></a></div>
<p>Create a new SL project as shown below :</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_1.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_1.gif" alt="" title="image_1" width="509" height="405" class="aligncenter size-full wp-image-621" /></a><br />
Note the DLLs that are added when you enable WCF RIA Service support.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_2.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_2.gif" alt="" title="image_2" width="359" height="530" class="aligncenter size-full wp-image-622" /></a><br />
In the web project Add New Item . Add a Data Model as shown below:</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_3.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_3.gif" alt="" title="image_3" width="553" height="337" class="aligncenter size-full wp-image-623" /></a><br />
<a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_4.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_4.gif" alt="" title="image_4" width="554" height="493" class="aligncenter size-full wp-image-624" /></a><br />
<a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_5.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_5.gif" alt="" title="image_5" width="554" height="493" class="aligncenter size-full wp-image-625" /></a><br />
<a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_6.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_6.gif" alt="" title="image_6" width="554" height="493" class="aligncenter size-full wp-image-626" /></a><br />
<a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_7.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_7.gif" alt="" title="image_7" width="159" height="180" class="aligncenter size-full wp-image-627" /></a><br />
Then Build the Solution . It is necessary you give it a build otherwise when we create a Domain Service , the Data Model would not be recognised by the Domain Service .</p>
<p><strong>Creating a Domain Service :</strong></p>
<p>In the Web project , add a Domain Service.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_8.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_8.gif" alt="" title="image_8" width="553" height="337" class="aligncenter size-full wp-image-628" /></a><br />
Add new Domain Service class Dialog appears.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_9.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_9.gif" alt="" title="image_9" width="460" height="550" class="aligncenter size-full wp-image-629" /></a><br />
Select the Article Entity.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_10.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_10.gif" alt="" title="image_10" width="460" height="550" class="aligncenter size-full wp-image-630" /></a><br />
A couple of classes are generated as shown below:</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_11.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_11.gif" alt="" title="image_11" width="231" height="231" class="aligncenter size-full wp-image-631" /></a><br />
Give it a Build again.</p>
<p>Go to the Data Menu and click Show Data Sources.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_12.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_12.gif" alt="" title="image_12" width="381" height="183" class="aligncenter size-full wp-image-632" /></a><br />
Data Sources Panel should now show the DataDomainContext. Under that Article.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_13.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_13.gif" alt="" title="image_13" width="272" height="205" class="aligncenter size-full wp-image-633" /></a><br />
Select the Article and a drop down appears. say Customize as shown below:</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_14.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_14.gif" alt="" title="image_14" width="274" height="156" class="aligncenter size-full wp-image-634" /></a><br />
Go ahead and attach the DataGrid Control to the Data Source. You could select themes as well.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_15.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_15.gif" alt="" title="image_15" width="491" height="406" class="aligncenter size-full wp-image-635" /></a><br />
Notice the change in the icon.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_16.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_16.gif" alt="" title="image_16" width="272" height="134" class="aligncenter size-full wp-image-636" /></a><br />
Now go to the Design Screen. Simply drag and drop the entity into the MainPage layout area. A datagrid should be added automatically now.</p>
<p>Make sure AutoGenerateColumns=&#8221;True&#8221;</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_17.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_17.gif" alt="" title="image_17" width="453" height="340" class="aligncenter size-full wp-image-637" /></a><br />
Build and Run it.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_18.gif"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2012/01/image_18.gif" alt="" title="image_18" width="465" height="357" class="aligncenter size-full wp-image-638" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/619/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HostForLife.EU now supports Web Deploy 2.0 Hosting</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/614</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/614#comments</comments>
		<pubDate>Wed, 14 Dec 2011 07:05:17 +0000</pubDate>
		<dc:creator>Jonas OReilly</dc:creator>
				<category><![CDATA[Other Related Posts]]></category>
		<category><![CDATA[europe web deploy hosting]]></category>
		<category><![CDATA[european web deploy 2.0 hosting]]></category>
		<category><![CDATA[european web deploy host]]></category>
		<category><![CDATA[HostForLife]]></category>
		<category><![CDATA[HostForLife.eu]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=614</guid>
		<description><![CDATA[<p>HostForLIFE.EU has supported Web Deploy technique on all our hosting plans. With a web deploy technique, a customer can efficiently synchronize sites, applications or servers across your IIS 7.0 server farm by detecting differences between the source and destination content and transferring only those changes which need synchronization.</p>
<p>What is Web Deploy 2.0?</p>
<p>Web Deploy (Web Deployment Tool) simplifies <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/614">HostForLife.EU now supports Web Deploy 2.0 Hosting</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-615" title="Crystal Report European Hosting" src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/adsone_cr2010.gif" alt="" width="450" height="270" /></a><a href="http://www.hostforlife.eu/">HostForLIFE.EU</a></strong> has supported Web Deploy technique on all our hosting plans. With a web deploy technique, a customer can efficiently synchronize sites, applications or servers across your IIS 7.0 server farm by detecting differences between the source and destination content and transferring only those changes which need synchronization.</p>
<p><strong>What is Web Deploy 2.0?</strong></p>
<p>Web Deploy (Web Deployment Tool) simplifies the migration, management and deployment of IIS Web servers, Web applications and Web sites. Administrators can use command-line scripting with Web Deploy to synchronize IIS 6.0 and IIS 7.0 servers or to migrate an IIS 6.0 server to IIS 7.0. Web Deploy Tool also enables administrators and delegated users to use IIS Manager to deploy ASP.NET and PHP applications to an IIS 7.0 server. </p>
<p><strong>Web Deploy 2.0 Features</strong>             </p>
<p>- Seamless integration with IIS 7.0 Manager and Visual Studio 2010 interface for creating packages and deploying them onto a machine, both locally and remotely<br />
- Seamless integration with the Web Platform Installer to install community web applications simply and easily.<br />
- Web application packaging<br />
- Web application deployment<br />
- Web server migration and synchronization<br />
- In addition to the IIS Manager and Visual Studio 10, tasks can be performed using the command-line or public APIs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/614/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 5 Hosting :: Debugging XAML Binding with Silverlight 5</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/598</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/598#comments</comments>
		<pubDate>Tue, 13 Dec 2011 04:30:18 +0000</pubDate>
		<dc:creator>Landon Ferguson</dc:creator>
				<category><![CDATA[Other Related Posts]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=598</guid>
		<description><![CDATA[<p>Prerequisites</p>
<p>Makes sure that you have downloaded latest version Silverlight Toolkit SDK .If not download from here .Also make sure that you are running on VisualStudio SP1.</p>

The XAML Data binding
<p>The example demonstrated here implement basic XAML data binding with DomainDataSource control , lets look at the XAML binding of one of the controls.</p>
<p></p>
<p>Nothing fancy , simple binding.</p>
The <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/598">Silverlight 5 Hosting :: Debugging XAML Binding with Silverlight 5</a></span>]]></description>
			<content:encoded><![CDATA[<p><b>Prerequisites</b></p>
<p>Makes sure that you have downloaded latest version Silverlight Toolkit SDK .If not download from <a href="http://www.silverlight.net/getstarted/silverlight-5-beta/" target="_blank">here</a> .Also make sure that you are running on VisualStudio SP1.</p>
<div><a href="http://www.hostforlife.eu"><img class="aligncenter size-full wp-image-1065" title="European Windows Hosting" src="http://www.aspnethostingnews.com/wp-content/uploads/2011/12/ads_300x180.jpg" alt="" width="400" height="230" /></a></div>
<h3>The XAML Data binding</h3>
<p>The example demonstrated here implement basic XAML data binding with DomainDataSource control , lets look at the XAML binding of one of the controls.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_1.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_1.png" alt="" title="image_1" width="815" height="55" class="aligncenter size-full wp-image-600" /></a></p>
<p>Nothing fancy , simple binding.</p>
<h3>The XAML Debugging</h3>
<p><b>Setting Up Breakpoint</b><br />
As of now the XAML allows to apply breakpoint on Binding syntax only.Once break point applied ,it hits the breakpoint when ever <strong>push and pull triggered</strong> for that control.The image bellow shows the breakpoint with in XAML.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_2.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_2.png" alt="" title="image_2" width="981" height="88" class="aligncenter size-full wp-image-601" /></a></p>
<p>The XAML editor <strong>will not allow you to set breakpoint anywhere else other than Binding syntax</strong>.<br />
<b>The Debug Information</b><br />
Once Breakpoint set start the application and wait for the compiler to hit it .</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_3.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_3.png" alt="" title="image_3" width="914" height="56" class="aligncenter size-full wp-image-603" /></a></p>
<p>You can find the debug information from <strong>Local tab</strong>.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_4.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_4.png" alt="" title="image_4" width="700" height="108" class="aligncenter size-full wp-image-604" /></a></p>
<p>The information shows up a <strong>BindingState</strong> object holding complete binding context information of the control.as in above image , the BindingState value is <strong>UpdatingTarget</strong> so this way it shows that the binding is pushing data to control.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_51.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_51.png" alt="" title="image_5" width="608" height="86" class="aligncenter size-full wp-image-611" /></a><br />
Going deeper into the debugging information it shows complete picture on the nature of data and binding.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_6.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_6.png" alt="" title="image_6" width="811" height="370" class="aligncenter size-full wp-image-606" /></a></p>
<p>Now another interesting fact , on TwoWay binding scenario once you change the data , for .e.g the <em>FirstName</em> control,</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_7.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_7.png" alt="" title="image_7" width="529" height="251" class="aligncenter size-full wp-image-607" /></a></p>
<p>the breakpoint again gets a hit as the binding source is getting updated .And the debug information shows the Binding state as Updating Source status.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_8.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_8.png" alt="" title="image_8" width="808" height="88" class="aligncenter size-full wp-image-608" /></a></p>
<p>and the <strong>CurrentItem</strong> Information shows up the editing item detail and its properties.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_9.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/12/image_9.png" alt="" title="image_9" width="664" height="120" class="aligncenter size-full wp-image-609" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/598/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight WCF Hosting :: Configuring WCF service to utilise Enterprise Library &#8211; Logging application to log data to database</title>
		<link>http://www.silverlighthostingnews.com/index.php/archives/581</link>
		<comments>http://www.silverlighthostingnews.com/index.php/archives/581#comments</comments>
		<pubDate>Tue, 22 Nov 2011 03:29:52 +0000</pubDate>
		<dc:creator>Landon Ferguson</dc:creator>
				<category><![CDATA[WCF RIA Service Hosting]]></category>
		<category><![CDATA[asphostcentral]]></category>
		<category><![CDATA[asphostcentral.com]]></category>
		<category><![CDATA[asphostportal]]></category>
		<category><![CDATA[asphostportal.com]]></category>
		<category><![CDATA[cheap silverlight 4 hosting]]></category>
		<category><![CDATA[cheap silverlight hosting]]></category>
		<category><![CDATA[cheap wcf service hosting]]></category>
		<category><![CDATA[silverlight 4 hosting]]></category>
		<category><![CDATA[silverlight hosting]]></category>
		<category><![CDATA[wcf ria hosting]]></category>
		<category><![CDATA[wcf service hosting]]></category>

		<guid isPermaLink="false">http://www.silverlighthostingnews.com/?p=581</guid>
		<description><![CDATA[<p>This article walks through the &#8216;Enterprise Library: Logging application&#8216; configuration process to log data to database using WCF service.</p>
<p>Note that regardless of Web service type i.e., SOAP or RESTful the configuration process is same.

Technical environment:-</p>
<p>Visual Studio 2010 with .NET 4.0
Enterprise library 5.0
WCF</p>
<p>ASP.NET Web application on Client end.</p>
<p>Open Service Web.config using Enterprise library configuration tool</p>
<p>Open the Service <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.silverlighthostingnews.com/index.php/archives/581">Silverlight WCF Hosting :: Configuring WCF service to utilise Enterprise Library &#8211; Logging application to log data to database</a></span>]]></description>
			<content:encoded><![CDATA[<p>This article walks through the &#8216;<strong>Enterprise Library: Logging application</strong>&#8216; configuration process to <strong>log data </strong>to database using WCF service.</p>
<p>Note that regardless of Web service type i.e., SOAP or RESTful the configuration process is same.<br />
<a href="http://asphostcentral.com/Silverlight-4-Hosting.aspx"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/adsone_sl4_mod2.gif" alt="" title="Silverlight WCF Hosting" width="450" height="270" class="aligncenter size-full wp-image-584" /></a><br />
<strong>Technical environment:-</strong></p>
<p>Visual Studio 2010 with .NET 4.0<br />
Enterprise library 5.0<br />
WCF</p>
<p>ASP.NET Web application on Client end.</p>
<p>Open Service Web.config using <strong>Enterprise library configuration tool</strong></p>
<p>Open the Service Web configuration file using Enterprise library configuration tool, which can be found at C:\Program Files\Microsoft Enterprise Library 5.0\Bin [assuming that you chosen C: drive for Enterprise library installation process]</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_1.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_1.jpg" alt="" title="image_1" width="640" height="381" class="aligncenter size-full wp-image-583" /></a><br />
[Image: Enterprise library configuration tool location]</p>
<p><strong>Note</strong>: Make sure that Service Web.config contains database connection string in connectionStrings section.</p>
<p><strong>Step 1: Open Enterprise library configuration tool</strong></p>
<p>Below screenshot shows the configuration tool after opening the service web.config file.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_2.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_2.jpg" alt="" title="image_2" width="544" height="339" class="aligncenter size-full wp-image-588" /></a></p>
<p>[Service web.configuration with in Enterprise Library configuration tool]</p>
<p><strong>Step 2: </strong><span style="text-decoration: underline;">_</span><strong>Choosing the Default database instance with in Database settings section</strong></p>
<p>Choose the Default Database Instance from drop down list, in this example Logging is chosen as default one as shown below.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_31.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_31.jpg" alt="" title="image_3" width="544" height="346" class="aligncenter size-full wp-image-589" /></a><br />
[Default Database Instance]</p>
<p><strong>Step 3: Add Logging block block </strong></p>
<p>Choose &#8216;Logging Settings&#8217; to add logging application block from <strong>Blocks</strong> menu as shown below screenshot.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_41.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_41.jpg" alt="" title="image_4" width="544" height="346" class="aligncenter size-full wp-image-590" /></a><br />
[Add_Logging_Block]</p>
<p><strong>Step 4: Expand Logging Settings section</strong></p>
<p>In order to configure Logging block, expand logging settings by clicking the icon on the  left hand side as marked in red below image.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_51.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_51.jpg" alt="" title="image_5" width="544" height="339" class="aligncenter size-full wp-image-591" /></a><br />
[Expand_Logging_Section_Image]</p>
<p><strong>Step 5: Add Database Trace listener </strong></p>
<p>From <em>Logging Target Listeners</em> selecting the <strong>+</strong> opens &#8216;Add Logging Target  Listeners&#8217;.</p>
<p>Choose &#8216;Add Database Trace Listener&#8217; from context menu that is opened from<br />
&#8216;Add Logging Target Listeners&#8217; as shown below screenshot.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_6.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_6.jpg" alt="" title="image_6" width="544" height="326" class="aligncenter size-full wp-image-592" /></a><br />
[Add-database-trace-listener]</p>
<p><strong>Step 6: Choose Database Trace Listener as default listener </strong></p>
<p>Make sure that &#8216;Database Trace listener&#8217; is chosen as default listener in Logging settings &#8211;&gt; General section as shown in below image.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_7.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_7.jpg" alt="" title="image_7" width="544" height="234" class="aligncenter size-full wp-image-593" /></a><br />
[Choose-db-trace-listener]</p>
<p><strong>Note</strong>:- By selecting right mouse button on particular configuration section it is feasible to Validate particular section as shown in below image.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_8.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_8.jpg" alt="" title="image_8" width="544" height="211" class="aligncenter size-full wp-image-594" /></a><br />
[Configuration-Sections-Validate]</p>
<p><strong>Step 7: Enterprise library application block DLL references </strong></p>
<p>Make sure that below mentioned references from Enterprise library API are added to<br />
the service WCF service as shown in below image.</p>
<p>These DLLs are available from Enterprise Library installation at</p>
<p><span style="text-decoration: underline;">C:\Program Files\Microsoft Enterprise Library 5.0\Bin</span></p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_9.jpg"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_9.jpg" alt="" title="image_9" width="544" height="180" class="aligncenter size-full wp-image-595" /></a><br />
[Required DLLs]</p>
<p><strong>Step 8: Add required &#8216;using&#8217; statements </strong></p>
<pre>using Microsoft.Practices.EnterpriseLibrary.Logging;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Logging.ExtraInformation;
using Microsoft.Practices.EnterpriseLibrary.Logging.Filters;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data;</pre>
<p><strong>Step 9: Create a method that utilises Logging application block to log data to database. </strong></p>
<p>Create a private <strong>LogWriter</strong> variable as below;</p>
<pre>private LogWriter writer = EnterpriseLibraryContainer.Current.GetInstance</pre>
<p>Logger method can be similar to the one below or it can have more parameters.</p>
<pre>///Create a logEntry object and write to database
public void  DbLogger(string _Title, string _Message, string _MachineName
{
    LogEntry logEntry = new LogEntry();

    logEntry.Title = _Title;
    logEntry.Message = _Message;
    logEntry.MachineName = _MachineName;
    logEntry.TimeStamp = DateTime.Now

    writer.Write(logEntry);
}</pre>
<p><strong>Step 10: Test the functionality with a client instance </strong></p>
<pre>protected void Page_Load(object sender, EventArgs e)
        {
            //Create an instance of client proxy
            Service1Client client = new Service1Client();
            client.Open();

            try
            {
                client.DbLogger("Logger service consumer", "Testing the
            }

            catch (Exception ex)
            {
                Response.Write(ex.InnerException.Message.ToString());
            }
        }</pre>
<p>Running the client app with above should log data to Logging database, which can be installed from scripts provided with Hands-on-Labs referenced below.</p>
<p><a href="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_10.png"><img src="http://www.silverlighthostingnews.com/wp-content/uploads/2011/11/image_10.png" alt="" title="image_10" width="544" height="44" class="aligncenter size-full wp-image-596" /></a><br />
<strong>Creating Logging database </strong><strong><span style="text-decoration: underline;"><br />
</span></strong><br />
Note that Logging database can be created by running the SQL script provided with Enterprise Library 5.0 Hands on labs, which can be downloaded at <a href="http://www.microsoft.com/download/en/details.aspx?id=6932">http://www.microsoft.com/download/en/details.aspx?id=6932</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlighthostingnews.com/index.php/archives/581/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

