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)