Site Archives

Buon Natale


Sopra il fieno colcato, vidi un fanciul di vergin madre nato
che facea di dolcezza e di desire morire, morire.
Gli dissi con parole piene d’affetto umil – O mio bel Sole
pietà ti prenda di un afflitto core che more, che more.
Ei, con soave viso parea dicesse e, con dolce riso:
- Io t’amo – ed io risposi: [...]

NotFound exception, but service URI is OK


I was trying to retrieve data from a WCF web service (.svc) using a WebClient HTTP invocation. The service was signed like this:

[OperationContract]
[WebGet(UriTemplate = "tree/{sessionId}", ResponseFormat = WebMessageFormat.Json)]
public MapData GetTree(string sessionId) {
// … implementation
}

and returned [...]

AG_E_PARSER_UNKNOWN_ERROR


Let’s share a new bit of secret regarding the dreaded AG_E_PARSER_UNKNOWN_ERROR in Silverlight 3.
If you extend UserControl in class X, and you declare X’s constructor as private, you’ll get AG_E_PARSER_UNKNOWN_ERROR. Of course, you should never do such a foolish thing, but accidents happen, and this error is really difficult to track down, if you don’t [...]