Erro de Servidor no Aplicativo '/'.

Não há linha na posição 0.

Descrição: Ocorreu uma exceção sem tratamento durante a execução da atual solicitação da Web. Examine o rastreamento de pilha para obter mais informações sobre o erro e onde foi originado no código.

Detalhes da Exceção: System.IndexOutOfRangeException: Não há linha na posição 0.

Erro de Origem:


Linha 41:         dtb = not.CarregarNoticia();
Linha 42: 
Linha 43:         DataRow row = dtb.Rows[0];
Linha 44:         DateTime date;
Linha 45: 

Arquivo de Origem: c:\inetpub\wwwroot\Site\frmNoticia.aspx.cs    Linha: 43

Rastreamento de Pilha:


[IndexOutOfRangeException: Não há linha na posição 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2136515
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   frmNoticia.CarregaNoticia(String codigo) in c:\inetpub\wwwroot\Site\frmNoticia.aspx.cs:43
   frmNoticia.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\Site\frmNoticia.aspx.cs:21
   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


Informações sobre a Versão: Microsoft .NET Framework Versão:4.0.30319; Versão do ASP.NET:4.7.4069.0