鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver>

Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'.

璇存槑: 鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭缁忓鐞嗙殑寮傚父銆傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€

寮傚父璇︾粏淇℃伅: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'.

婧愰敊璇?

鎵ц褰撳墠 Web 璇锋眰鏈熼棿鐢熸垚浜嗘湭缁忓鐞嗙殑寮傚父銆傚彲浠ヤ娇鐢ㄤ笅闈㈢殑寮傚父鍫嗘爤璺熻釜淇℃伅纭畾鏈夊叧寮傚父鍘熷洜鍜屽彂鐢熶綅缃殑淇℃伅銆侟/code>

鍫嗘爤璺熻釜:


[InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'.]
   RanSun.ShowNews.Page_Load(Object sender, EventArgs e) in D:\Project\2017\鑳藉叴绉戞妧\鑳藉叴婧愮爜\RanSun\RanSun\ShowNews.aspx.cs:56
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2857


鐗堟湰淇℃伅: Microsoft .NET Framework 鐗堟湰:4.0.30319; ASP.NET 鐗堟湰:4.7.2114.0