Server Error in '/' Application.

Error retrieving Supplier name: Invalid attempt to read when no data is present..    at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
  at System.Data.SqlClient.SqlDataReader.get_Item(String name)
  at clarkstationery.products.ViewItemsNew.GetSupplier(String supplierid) in e:\inetpub\vhosts\clarkstationery.com\httpdocs\App_Code\ViewItemsNew.aspx.cs:line 168

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.Exception: Error retrieving Supplier name: Invalid attempt to read when no data is present..    at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
  at System.Data.SqlClient.SqlDataReader.get_Item(String name)
  at clarkstationery.products.ViewItemsNew.GetSupplier(String supplierid) in e:\inetpub\vhosts\clarkstationery.com\httpdocs\App_Code\ViewItemsNew.aspx.cs:line 168

Source Error:


Line 174:			catch(Exception ex)
Line 175:			{
Line 176:				throw new Exception("Error retrieving Supplier name: " + ex.Message + ". " + ex.StackTrace);
Line 177:			}
Line 178:		}

Source File: e:\inetpub\vhosts\clarkstationery.com\httpdocs\App_Code\ViewItemsNew.aspx.cs    Line: 176

Stack Trace:


[Exception: Error retrieving Supplier name: Invalid attempt to read when no data is present..    at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
   at System.Data.SqlClient.SqlDataReader.get_Item(String name)
   at clarkstationery.products.ViewItemsNew.GetSupplier(String supplierid) in e:\inetpub\vhosts\clarkstationery.com\httpdocs\App_Code\ViewItemsNew.aspx.cs:line 168]
   clarkstationery.products.ViewItemsNew.GetSupplier(String supplierid) in e:\inetpub\vhosts\clarkstationery.com\httpdocs\App_Code\ViewItemsNew.aspx.cs:176
   clarkstationery.products.ViewItemsNew.Page_Load(Object sender, EventArgs e) in e:\inetpub\vhosts\clarkstationery.com\httpdocs\App_Code\ViewItemsNew.aspx.cs:88
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8970; ASP.NET Version:2.0.50727.8962