Add to Technorati Favorites Delicious.com Sakthi Facebook Profile Sakthi Google Profile Sakthi MySpace Profile Sakthi Twitter Profile Sakthi Youtube Profile Sakthi LinkedIn Profile Sakthi Picasa Albums

Tuesday 20 May 2008

Silverlight - KeyNotFound Exception

Finally, I found out the reason for this exception in Silverlight. Though I had put try catch blocks in all the methods, sometimes this exception is thrown.
I had a doubt that it may be because of animation. And, it was.

I was using storyboard1 for opening canvas1 and storyboard2 for closing it.
And canvas1 opens when i do a mouse enter event to another canvas-canvas2. Similarly, canvas1 is closed in the mouseleave event of canvas2.
The exception was thrown only when I did a fast mouse enter and mouse leave(ie before storyboard1 ended and storyboard2 was called).
So, it is always better to stop all the storyboards modifying the control before beginning a storyboard for animating the control.

Sunday 18 May 2008

Server did not recognize the value of HTTP Header SOAPAction

This is a SOAP protocol exception. I got this exception when I tried to access a method in a webservice. The reason for getting this exception is that the method I accessed was not a web method.

The following is the exception that i recieved

soap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/GetFileString.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

Sunday 20 April 2008

Silverlight Linq error

Today also I noticed a new kind of error when I was migrating my existing Silverlight 1.1 control to 2.0. If I add reference of System.Linq.Xml namespace to any existing Silverlight library, I got the below exception when I ran the website.



Now, i have changed the logic so that I dont have to use System.Xml.Linq.
If I find the solution, I shall update it here

Tuesday 15 April 2008

Silverlight2.0 Security Tighened??

I am trying to migrate my existing Silverlight 1.1 control to 2.0 version. I noticed another change. Access to other Dlls placed in the folder is denied by System.Reflection. In other words, the Assembly.Load(fullname) does not work unless a reference is added to the assembly.
Though one may say that it is a security feature, it was happening in 1.1. And I dont think loading a silverlight dll from the ClientBin directly will affect the security in anyways.

Friday 11 April 2008

Silverlight System.OutofMemoryException

Today, I encountered a weird exception that I have mentioned in the title when i was building my solution.
I had added many images as assets to a particular project that made it exceed the memory stack. So guys check out.

Wednesday 23 January 2008

Shakespeare Programming Language - SPL

I had created this blog years before but did not update the same. I should say, I was very lazy to do it. But now, I found something very interesting which I want to share.Today, I was reading a newsletter from Code Project.com and it had an item by name The Shakespeare Programming Language(abbreviated as SPL). I expected this to be something that relates Shakespeare with some other programming language. But, i was surprised to see the whole code of the SPL written in the style of Shakespeare's plays. By learning the syntax, one may even improve his English(one of the word I learnt is Exeunt which means exit from the stage).

http://shakespearelang.sourceforge.net/

http://en.wikipedia.org/wiki/Shakespeare_programming_language