I have a problem with a website. I have a datagrid on one of my web pages
that users update, etc. Everything worked fine until I added another column
and tried to do an update. I am getting the error;
Specified argument was out of the range of valid values. Parameter name:
index
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.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: index
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: index]
System.Web.UI.ControlCollection.get_Item(Int32 index) +58
System.Web.UI.WebControls.TableCellCollection.get_Item(Int32 index) +22
Entry.Entry.Button1_Click(Object sender, EventArgs e) +445
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
What is wierd about this is if I do a debug on my local machine it works, if
I copy - install the site it to the server, this page doesn't work. It is
acting like the cell i am referencing, doesn't exist. The cell is not visible
on the screen (by choice - visible="False").
I have tried different cell numbers, and it appears like that cell just
doesn't exist on the server, but it does locally.
Why would locolhost work, but the server doesn't? What setting could be
different that the cell referencing seems off between the two?
Thanks
Lyners - 21 Sep 2005 21:50 GMT
i figured out my problem. I was using an old ASPX file with the current dll.
I learned i need to make sure i am including all the files when I am making
my install assemblies. thanks!
> I have a problem with a website. I have a datagrid on one of my web pages
> that users update, etc. Everything worked fine until I added another column
[quoted text clipped - 43 lines]
>
> Thanks