Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

localhost site works, server does not? cell reference

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lyners - 21 Sep 2005 20:55 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.