1

Closed

When click to update, then occure unexpected error!

description

Server Error in '/' Application.

 
Value does not fall within the expected range.
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.ArgumentException: Value does not fall within the expected range.
 
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:
 
 
[ArgumentException: Value does not fall within the expected range.]
Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException) +249
Microsoft.SharePoint.SPFieldCollection.GetField(String strName) +31
Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, SPField field, Boolean protectFields) +808
Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, Boolean protectFields) +41
Microsoft.SharePoint.SPListItem.set_Item(String fieldName, Object value) +35
SPMessaging.<>c__DisplayClass4.<AddListItem>b__3() +206
Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) +58
Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +342
Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +137
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +330
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +81
SPMessaging.WhatAreYouDoing.AddListItem(SPList list) +98
SPMessaging.WhatAreYouDoing.btnUpdate_Click(Object sender, EventArgs e) +462
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Closed Jun 12, 2009 at 6:12 PM by nickboumans

comments