Posts
38
Comments
48
Trackbacks
1
Interpretare certi tipi di errore quando ASP.NET ospita un componente.

Se avete il vostro componente in host su IIS (aspnet_wp) e utilizzate BinaryFormatter può capitare di avere un certo tipo di errori che il canale lato client non riesce ad interpretare, precisamente quelli di tipo testuale (text/HTML) ottenendo un dettaglio del tipo:

System.Runtime.Serialization.SerializationException: The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-57-65-62-2E-48-74-74-70-45-78 ...

Incomprensibile. La soluzione è quella di utilizzare uno sniffer.

Qui si trova un custom channel sink in grado di interpretare questo tipo di messaggi in caso appunto di

System.Runtime.Serialization.SerializationException
posted on sabato 13 gennaio 2007 12:16 Print
Comments have been closed on this topic.
News
Locations of visitors to this page Blog personale