Server Error in '/web' Application.

Conversion from type 'DBNull' to type 'String' is not valid.

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.InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.

Source Error:


Line 227:                
Line 228:                if ucase(request("l"))="IT" then
Line 229:					ltSeminario3.text= utilita.fixdbnull(rs("titolo_seminario_it"),rs("titolo_seminario_eng"))
Line 230:					page.title=utilita.fixdbnull(rs("titolo_seminario_it"),"") & " | " & dottoratohelper.TitoloDottorato(request("i"),ucase(request("l")))
Line 231:				else

Source File: D:\web\web\incMenuHeader.ascx    Line: 229

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +715783
   ASP.incMenuHeader.Page_Load(Object sender, EventArgs e) in D:\web\web\incMenuHeader.ascx:229
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062