| | | Supreme Being
       
Group: Forum Members Last Login: Friday, September 05, 2008 Posts: 11, Visits: 89 |
| Hi
I use the code that RSimon give me to put a WorkFlowList is a aspx form.
<%@ Register Assembly="Skelta.Repository.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=bfb586d2c6c4a4f4" Namespace="Skelta.Repository.Web" TagPrefix="cc1" %>
HeaderControlPath="/Repository/ListControl/ListHeader.ascx" MenuControlPath="/Repository/ListControl/WorkflowRibbonBar.ascx" VersionMenuControlPath="/Repository/ListControl/VersioningRibbonBar.ascx" />
In the CS page, add the following lines of code.
ListControl1.RepositoryName = ConfigurationManager.AppSettings["RepositoryName"];
ListControl1.ListName = "WorkFlow";
Server Error in '/' Application. --------------------------------------------------------------------------------
Value 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: Value cannot be null. Parameter name: key
Source Error:
Line 12: Line 13: ListControl1.RepositoryName = ConfigurationManager.AppSettings("InfoDoc") Line 14: ListControl1.ListName = "WorkFlow" Line 15: Line 16: End Sub
Source File: C:\InfodocX\frm_skeltaworkflowlist.aspx.vb Line: 14
Stack Trace:
[ArgumentNullException: Value cannot be null. Parameter name: key] System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +41 System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +2667593 System.Collections.Generic.Dictionary`2.ContainsKey(TKey key) +4 Skelta.Core.DS.SkeltaDataSetCollectionBaseWithName`1.Contains(String name) +39 Workflow.NET.Config.x5ce02f9335ac15e5(String xb4c20196cca6b7fb, String x1cf809fba6a08057, Boolean x82dce0a1f680dc94) +1675 Workflow.NET.Config.x650982ad5afb0f23(String xb4c20196cca6b7fb, String x1cf809fba6a08057, Boolean x82dce0a1f680dc94) +269 Workflow.NET.Config.x4cd1a2dd2810341d(String xb4c20196cca6b7fb, String x1cf809fba6a08057) +148 Workflow.NET.Config..ctor(String Application, String WorkflowName) +1023 Workflow.NET.Config.x69f7431ec7a43674(String x0f428d255515ea15, String x77bd0e662e0277e8) +243 Workflow.NET.Config.GetConfig(String applicationName, String workflowName) +44 Workflow.NET.Config.GetConfig(String applicationName) +46 Skelta.Core.DS.SingleTableObject.get_Configuration() +45 Skelta.Core.DS.SingleTableObject.x3ca5acd7ade415a8() +243 Skelta.Core.DS.SingleTableObject..ctor(ApplicationObject application, String tableName, String identifierColumn, Boolean tableContainsApplicationColumn) +281 Skelta.Core.DS.SingleTableObjectWithName..ctor(ApplicationObject application, String tableName, String identifierColumn, String nameColumn, Boolean tableContainsApplicationColumn) +57 Skelta.Repository.List.ListDefinition..ctor(ApplicationObject application, String name) +50 Skelta.Repository.Web.ListControl.set_ListName(String value) +75 infodocX.frm_skeltaworkflowlist.Page_Load(Object sender, EventArgs e) in C:\InfodocX\frm_skeltaworkflowlist.aspx.vb:14 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.143
Can someone helps
Thanks |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, March 17, 2011 Posts: 66, Visits: 73 |
| | Hope "InfoDoc" has the correct repository name in App settings, alternatively you can set the Repository name as below. ListControl1.RepositoryName = "Repo Name";You can also try dragging and dropping the list control from the toolbox after adding "Skelta.Repository.Web" as an item in the toolbox. Regards, RSimon |
| |
|
|