Server Error in '/Normelombardia' Application.

String reference not set to an instance of a String.
Parameter name: s

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s

Source Error:


Line 1136:        //Versione per Sandro che vuole lo stream HTML: imposta la proprietà
Line 1137:        Visualizzazione.BlockRender = true;
Line 1138:        Visualizzazione.VisualizzaDocumentoIntero(docDaVisualizzare);
Line 1139:
Line 1140:        Visualizzazione.CancellaFileTemporaneo();

Source File: \\file01\nir$\accessibile\main.aspx.cs    Line: 1138

Stack Trace:


[ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s]
   System.Text.Encoding.GetBytes(String s) +11436697
   BusinessVisualizzazione.GestioneVisualizzazioneDocumento.PreparaXml(String xmlDaTrasformare) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1055
   BusinessVisualizzazione.GestioneVisualizzazioneWeb.VisualizzaDocumentoIntero(Documento DocumentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneWeb.cs:241
   accessibile_main.visualizzaDocumento() in \\file01\nir$\accessibile\main.aspx.cs:1138
   accessibile_main.Page_Load(Object sender, EventArgs e) in \\file01\nir$\accessibile\main.aspx.cs:249
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0