Technical support This forum is closed.
Version 1.x > Technical support > Error when adding a new document View modes: 
User avatar
Member
Member
janusz - 7/26/2005 1:05:52 AM
   
Error when adding a new document
I have experienced a new error when adding a new document type. Any ideas what it might be?

Thanks,

Janusz


Server Error in '/' Application.
--------------------------------------------------------------------------------

Key cannot be null. Parameter name: key
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.ArgumentNullException: Key cannot be null. Parameter name: key

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:


[ArgumentNullException: Key cannot be null.
Parameter name: key]
System.Collections.Hashtable.get_Item(Object key) +340
System.Data.DataColumnCollection.get_Item(String name) +16
System.Data.DataRow.set_Item(String columnName, Object value) +55
Kentico.CMS.Form.BasicForm.SetDataRow(String columnName, Object value) +430
Kentico.CMS.Form.BasicForm.SaveData(String redirectUrlAfterSave) +6650
Kentico.CMS.Form.BasicForm.SaveDataClick(Object sender, EventArgs e) +13
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



User avatar
Guest
admin - 7/26/2005 1:25:47 PM
   
Re: Error when adding a new document
Hi Janusz,

Thank you for sending the metadata to my e-mail. In your form definition, you're using a user control Shop_SendEmail.ascx. Could you please try use the built-in calendar control instead of it just to see if it can have any impact on saving of form?

Thank you.

Best Regards,

User avatar
Member
Member
janusz - 7/26/2005 9:56:35 PM
   
Re: Error when adding a new document
Sorry Petr. This was my error. I have just discovered that I am returning a non assigned result from this function:

Public Overrides Function GetOtherValues() As Object(,)

Next time I will not be posting before midnight but I will leave it to morning :)

Thanks,

Janusz

User avatar
Guest
admin - 7/26/2005 10:02:12 PM
   
Re: Error when adding a new document
Great. I'm glad to hear that you were able to solve this issue.

Good luck in your night development adventures :)

Regards,