Tuesday, January 13, 2015

Url 2 Embed library

What is Url 2 Embed library?

It's ASP.NET library to convert URLs pages into embeddable content (Videos). source code is C# 

YouTube Page:



Url 2 Embed Demo:



For more info, please visit: http://url2embed.codeplex.com/


Thursday, September 22, 2011

Handling Silverlight exception 'System.UnauthorizedAccessException' in asynchronous http post problem


when you use asynchronous http post you should make sure that you use "Deployment.Current.Dispatcher.BeginInvoke" to a void "System.UnauthorizedAccessException" exception.

......


void DownloadNow()
{
      WebClient request = new WebClient();
      request.DownloadStringCompleted += new DownloadStringCompletedEventHandler(request_DownloadStringCompleted);
      request.DownloadStringAsync(serviceUri);
}


void request_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
      Deployment.Current.Dispatcher.BeginInvoke(() =>
              {
                 log.Text = e.Result;
              });
}

......

for more info please check this link http://forums.silverlight.net/t/66271.aspx/1?asynchronous+http+post+problem+System+UnauthorizedAccessException+Invalid+cross+thread+access+

Sunday, April 10, 2011

Debugging Silverlight with Visual Studio and Firefox

Here’s how to ensure the VS debugger attaches to the Silverlight app for debugging:

1- In Firefox address bar type about:config
2- Read the warning, choose your preference to always remind you or not and accept
3- In the search bar of the config options now type: npctrl
4- You should then see the entry: dom.ipc.plugins.enabled.npctrl.dll
5- Change the value from true to false (simply double-clicking will change this for you)
6- Restart Firefox