'/' Uygulamasında Sunucu Hatası.

'System.DBNull' türündeki nesne 'System.Byte[]' türüne atılamadı.

Açıklama: Geçerli web isteği yürütülürken işlenmemiş özel durum oluştu. Lütfen hata ve kod içinde kaynaklandığı yer hakkında daha fazla bilgi almak için yığın izlemesini gözden geçirin.

Özel Durum Ayrıntıları: System.InvalidCastException: 'System.DBNull' türündeki nesne 'System.Byte[]' türüne atılamadı.

Kaynak Hatası:


Satır 36:         {
Satır 37:             string resimBu = Convert.ToString(reader["resimAdi"]);
Satır 38:             byte[] icerikBu = (byte[])reader["resimIcerik"];
Satır 39:             string tipBu = Convert.ToString(reader["resimTip"]);
Satır 40:             

Kaynak Dosya: c:\inetpub\vhosts\uphillcourtcada.com\httpdocs\ResimGosterHaber.ashx    Satır: 38

Yığın İzleme:


[InvalidCastException: 'System.DBNull' türündeki nesne 'System.Byte[]' türüne atılamadı.]
   ResimGosterHaber.ProcessRequest(HttpContext context) in c:\inetpub\vhosts\uphillcourtcada.com\httpdocs\ResimGosterHaber.ashx:38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Sürüm Bilgisi: Microsoft .NET Framework Sürümü:4.0.30319; ASP.NET Sürümü:4.7.4087.0