Mark Barto's Blog

Technical Blog about the Microsoft .NET Platform and everything that surrounds it such as .Net, C#, BizTalk, WCF, ASP.NET, SQL, Silverlight, IIS ...

Silverlight, C#: Cross domain security error

silverlight3 When trying to read an RSS feed within my Silverlight application I was getting a security error exception.

The reason for getting this security error was that by default unauthorized connections will not be allowed to prevent Denial of Service (DoS) attacks, DNS Rebinding attacks and Reverse tunnel attacks other then the host where you want to connect to.

 

Read More ...

Posted by Mark on 01-12-2009 and Filed under: C#, Silverlight
5 comments

C#, .NET: Current Directory for Windows Service

cat_icon_files_256



When calling for the current directory in a Windows Service with the Path.GetCurrentDirectory() you will probably not getting the correct directory but the C:\Windows\System32 directory.

 

Read More ...

Posted by Mark on 01-09-2009 and Filed under: .NET, C#
3 comments