<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8944256652433533647.post4199556127407564481..comments</id><updated>2011-11-02T07:08:15.395-04:00</updated><category term='images'/><category term='silverlight seo'/><category term='xaml keys'/><category term='textblock'/><category term='transport'/><category term='dynamic modules'/><category term='liskov substitution'/><category term='bugs'/><category term='development'/><category term='source code browser'/><category term='dynamic types'/><category term='tombstone'/><category term='snowflake'/><category term='conversion'/><category term='events'/><category term='OOB'/><category term='rss reader'/><category term='rest services'/><category term='silverlight toolkit'/><category term='nonsecure items'/><category term='module'/><category term='silverlight navigation'/><category term='silverlight download'/><category term='ria services'/><category term='moq'/><category term='image transform'/><category term='powershell'/><category term='web client'/><category term='property change'/><category term='video'/><category term='nosql'/><category term='#msmix11w'/><category term='codeproject'/><category term='prism'/><category term='locator'/><category term='saga pattern'/><category term='ie 6.0'/><category term='facebook'/><category term='by ref'/><category term='linq'/><category term='windows mobile 7'/><category term='mix 2011'/><category term='theme'/><category term='observable'/><category term='azure'/><category term='datagridtemplatecolumn'/><category term='embedded resources'/><category term='click event'/><category term='common table expression'/><category term='crud'/><category term='mvc'/><category term='ms-pl'/><category term='build'/><category term='mvvm'/><category term='databinding'/><category term='rx'/><category term='client script'/><category term='unit testing'/><category term='NHibernate'/><category term='asp.net'/><category term='design'/><category term='scrollchanged'/><category term='anti-aliasing'/><category term='copyleft'/><category term='postback. callback. button'/><category term='enumerator'/><category term='windsor'/><category term='.NET tools'/><category term='text search'/><category term='silverlight animation'/><category term='subversion'/><category term='yuml'/><category term='dropdown'/><category term='fluent interfaces'/><category term='reflection'/><category term='model-view-controller'/><category term='list'/><category term='storyboard'/><category term='reportviewer'/><category term='cal'/><category term='serialization'/><category term='paging'/><category term='preloading'/><category term='ASP.NET control'/><category term='command'/><category term='OODB'/><category term='model-view-presenter'/><category term='silverlight 5'/><category term='silverlight printing'/><category term='single responsibility'/><category term='datacontext'/><category term='#msmix11s'/><category term='silverlight controls'/><category term='mvp'/><category term='olympics'/><category term='dynamic xap'/><category term='knockoutjs'/><category term='tortoisesvn'/><category term='MEF'/><category term='frameworks'/><category term='child window'/><category term='value type'/><category term='partinitializer'/><category term='plugin'/><category term='hierarchical data template'/><category term='animation'/><category term='line of business'/><category term='mix'/><category term='dynamic control'/><category term='source control'/><category term='host control'/><category term='JSON'/><category term='cross domain'/><category term='scrollview'/><category term='touch'/><category term='focus'/><category term='data temlate'/><category term='law of demeter'/><category term='silverlight 4'/><category term='feed reader'/><category term='navigation'/><category term='dry'/><category term='transaction'/><category term='windows service'/><category term='silverlight'/><category term='number'/><category term='design-time'/><category term='wpf control'/><category term='expression blend'/><category term='modules'/><category term='cube'/><category term='dispatcher'/><category term='solid principle'/><category term='silveright 3'/><category term='old school'/><category term='delegates'/><category term='weakreference'/><category term='constructor injection'/><category term='observablecollection'/><category term='datagrid'/><category term='jquery'/><category term='idataerrorinfo'/><category term='odata'/><category term='user control'/><category term='silverlight 3'/><category term='iapplicationservice'/><category term='dropdown bug'/><category term='CTE'/><category term='wpf'/><category term='behavior'/><category term='automated testing'/><category term='id'/><category term='exception'/><category term='lifetime management'/><category term='caching'/><category term='entity framework'/><category term='sql 2008'/><category term='custom markup extension'/><category term='silverlight services'/><category term='yield'/><category term='dialog'/><category term='xaml'/><category term='path'/><category term='SQL'/><category term='scriptableobject'/><category term='html5'/><category term='encoding'/><category term='Jounce'/><category term='singleton'/><category term='Windows Workflow Foundation'/><category term='yagni'/><category term='treeview'/><category term='windows phone 7'/><category term='smooth streaming'/><category term='out of browser'/><category term='unity framework'/><category term='plasma'/><category term='nunit'/><category term='validation'/><category term='service host'/><category term='convention'/><category term='ultralight.mvvm'/><category term='c#'/><category term='firefox'/><category term='image reflection'/><category term='interface segregation'/><category term='queries'/><category term='fractal'/><category term='data form'/><category term='pinvoke'/><category term='inotifypropertychanged'/><category term='mocking'/><category term='embedded javascript'/><category term='web service'/><category term='ancestor'/><category term='dynamic data'/><category term='event aggregator'/><category term='.net'/><category term='cag'/><category term='isolated storage'/><category term='bing maps'/><category term='value converter'/><category term='xml'/><category term='silverlight myths'/><category term='relative source'/><category term='data contract'/><category term='select'/><category term='attribute'/><category term='sharpdevelop'/><category term='silverlight games'/><category term='#msmix11sw'/><category term='ultra light'/><category term='visual tree'/><category term='schema'/><category term='licenses'/><category term='silverlight unit test'/><category term='metro'/><category term='callback'/><category term='icustomtypeprovider'/><category term='webforms'/><category term='deploymentcatalog'/><category term='handler'/><category term='data grid'/><category term='style'/><category term='inversion of control'/><category term='visual studio'/><category term='composite application guidance'/><category term='windows 8'/><category term='ssrs'/><category term='custom'/><category term='ui virtualization'/><category term='live smooth streaming'/><category term='html'/><category term='combobox'/><category term='large data sets'/><category term='quickstart'/><category term='task parallel library'/><category term='visual state manager'/><category term='syntax highlighter'/><category term='sterling'/><category term='ref keyword'/><category term='media'/><category term='xbox live'/><category term='viewmodel'/><category term='width'/><category term='system.web.ui'/><category term='javascript'/><category term='silverlight 3.0.50106.0'/><category term='asynchronous'/><category term='workflow'/><category term='debugging'/><category term='anonymous method'/><category term='silverlight richtextarea'/><category term='tablet'/><category term='server control'/><category term='windows communication foundation'/><category term='silverlight splash'/><category term='pivot'/><category term='pipes and filters'/><category term='gnu'/><category term='vs 2010'/><category term='windows phone 7 series'/><category term='childwindow'/><category term='regions'/><category term='view model'/><category term='zoom'/><category term='partial members'/><category term='panel'/><category term='iusertype'/><category term='pipeline pattern'/><category term='changed'/><category term='enterprise'/><category term='telerik'/><category term='html 5'/><category term='triggeraction'/><category term='viewbox'/><category term='postbacksettings error'/><category term='Koch'/><category term='database'/><category term='ndepend'/><category term='scrollviewer'/><category term='wcf'/><category term='delegatecommand'/><category term='assert'/><category term='debug'/><category term='codestock'/><category term='coroutine'/><category term='tpl'/><category term='dependency injection'/><category term='key'/><category term='slate'/><category term='assert.true'/><category term='wcf ria'/><category term='Managed Extensibility Framework'/><category term='code first'/><category term='composite wpf'/><category term='dynamic xaml'/><category term='magic string'/><category term='unspecified error'/><category term='lambda expression'/><category term='zune'/><category term='ajax'/><category term='updatepanel'/><category term='trigger'/><category term='view engine'/><category term='ui automation'/><category term='inline hyperlink'/><category term='reference type'/><category term='exportprovider'/><category term='isinteger'/><category term='listbox'/><category term='XAP'/><category term='single point of truth'/><category term='textbox'/><category term='windbg'/><category term='gmail autopilot'/><category term='enumerable'/><category term='napkee'/><category term='resource dictionary'/><category term='silverlight test'/><category term='free software'/><category term='performance profiling'/><category term='balsamiq'/><category term='captcha'/><category term='dependency property'/><category term='matrix'/><category term='generics'/><category term='multivalue'/><category term='dictionary'/><category term='resource file'/><category term='https'/><category term='reactive extensions'/><category term='open closed'/><category term='attached property'/><category term='references'/><category term='collections'/><category term='metadata'/><category term='model-view-viewmodel'/><category term='profiling'/><category term='bitmap'/><category term='binding'/><title type='text'>Comments on C#er : IMage: Programmatically Accessing the Live Smooth Streami...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://csharperimage.jeremylikness.com/feeds/4199556127407564481/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8944256652433533647/4199556127407564481/comments/default'/><link rel='alternate' type='text/html' href='http://csharperimage.jeremylikness.com/2010/01/programmatically-accessing-live-smooth.html'/><author><name>Jeremy Likness</name><uri>https://profiles.google.com/104681642850492486855</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-zVEO4BsSOjc/AAAAAAAAAAI/AAAAAAAAAAA/ocZyKfGEY-Y/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8944256652433533647.post-7289444470444631274</id><published>2011-11-02T01:52:33.493-04:00</published><updated>2011-11-02T01:52:33.493-04:00</updated><title type='text'>Hi
i am using below code to get the list of all Pu...</title><content type='html'>Hi&lt;br /&gt;i am using below code to get the list of all Publishing points.&lt;br /&gt;            ConfigurationMethodInstance instance = liveStreamingConfig.Methods[METHODGETPUBPOINTS].CreateInstance();&lt;br /&gt;&lt;br /&gt;            instance.Input[ATTR_SITENAME] = siteName;&lt;br /&gt;            instance.Input[ATTR_VIRTUALPATH] = applicationPath;&lt;br /&gt;&lt;br /&gt;            instance.Execute();&lt;br /&gt;&lt;br /&gt;            ConfigurationElement collection = instance.Output.GetCollection();&lt;br /&gt;&lt;br /&gt;            foreach (var item in collection.GetCollection())&lt;br /&gt;            {&lt;br /&gt;                retVal.Add(new PublishingPoint&lt;br /&gt;                {&lt;br /&gt;                    SiteName = siteName,&lt;br /&gt;                    Path = applicationPath,&lt;br /&gt;                    Name = item.Attributes[ATTR_NAME].Value.ToString(),&lt;br /&gt;                    ArchiveState = (State)item.Attributes[ATTR_ARCHIVES].Value,&lt;br /&gt;                    FragmentState = (State)item.Attributes[ATTR_FRAGMENTS].Value,&lt;br /&gt;                    StreamState = (State)item.Attributes[ATTR_STREAMS].Value,&lt;br /&gt;                    PubState = (PublishingPointState)item.Attributes[ATTR_STATE].Value&lt;br /&gt;                });&lt;br /&gt;                LogDetails(&amp;quot;----------------------------------------&amp;quot;);&lt;br /&gt;                LogDetails(&amp;quot;siteName: &amp;quot; + siteName);&lt;br /&gt;                LogDetails(&amp;quot;applicationPath: &amp;quot; + applicationPath);&lt;br /&gt;                LogDetails(&amp;quot;Name: &amp;quot; + item.Attributes[ATTR_NAME].Value.ToString());&lt;br /&gt;                LogDetails(&amp;quot;ArchiveState: &amp;quot; + item.Attributes[ATTR_ARCHIVES].Value.ToString());&lt;br /&gt;                LogDetails(&amp;quot;FragmentState: &amp;quot; + item.Attributes[ATTR_FRAGMENTS].Value.ToString());&lt;br /&gt;                LogDetails(&amp;quot;StreamState: &amp;quot; + item.Attributes[ATTR_STREAMS].Value.ToString());&lt;br /&gt;                LogDetails(&amp;quot;PubState: &amp;quot; + item.Attributes[ATTR_STATE].Value.ToString());&lt;br /&gt;                LogDetails(&amp;quot;&amp;quot;);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;But i always get the item.Attributes[ATTR_STATE].Value as zero, whatever be the state.&lt;br /&gt;can you please help me why it is not showing the correct state?&lt;br /&gt;&lt;br /&gt;Additionally if I click the shutdown button I get an error:&lt;br /&gt;-------------------------&lt;br /&gt;Exception Details: System.Runtime.InteropServices.COMException: The data is invalid. (Exception from HRESULT: 0x8007000D)&lt;br /&gt;&lt;br /&gt;Source Error: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Line 277:                    var method =&lt;br /&gt;item.Methods[command.ToString()];&lt;br /&gt;Line 278:                    var methodInstance =&lt;br /&gt;method.CreateInstance();&lt;br /&gt;Line 279:                    methodInstance.Execute();&lt;br /&gt;Line 280:                    break;&lt;br /&gt;Line 281:                }&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Source File: c:\inetpub\wwwroot\MountPointHandler\Default.aspx.cs&lt;br /&gt;Line: 279&lt;br /&gt;-------------------------&lt;br /&gt;&lt;br /&gt;Please suggest&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;Warm Regards,&lt;br /&gt;Parag Gupta</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8944256652433533647/4199556127407564481/comments/default/7289444470444631274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8944256652433533647/4199556127407564481/comments/default/7289444470444631274'/><link rel='alternate' type='text/html' href='http://csharperimage.jeremylikness.com/2010/01/programmatically-accessing-live-smooth.html?showComment=1320213153493#c7289444470444631274' title=''/><author><name>Parag Gupta</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://csharperimage.jeremylikness.com/2010/01/programmatically-accessing-live-smooth.html' ref='tag:blogger.com,1999:blog-8944256652433533647.post-4199556127407564481' source='http://www.blogger.com/feeds/8944256652433533647/posts/default/4199556127407564481' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-770906351'/></entry></feed>
