Wednesday, March 10, 2010

Server Error in application on navigating to Items link in Portal Integration and Partner Relationship Management Accelerators

On navigating to "Items" link in Portal Integration and Partner Relationship Management Accelerators, following error message is obtained:
Server Error in '/' Application.--------------------------------------------------------------------------------
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSourceCategories' could not be found. 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.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSourceCategories' could not be found.
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:
[InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSourceCategories' could not be found.] System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) +1122515 System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1171 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 System.Web.UI.WebControls.GridView.DataBind() +4 Items.Page_Load() in C:\MSA_Drop\Web\Portals\Portals\PRMPortal\PRMPortal\Items.aspx.cs:82 System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +8 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +8664611 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


This error occurs because catalog provider is in the Fabrikam.Application.Catalog namespace, where all the other providers are without a namespace.
Therefore, to resolve the error, we need to make the following change to the Items.aspx page:




<asp:Panel ID="PanelCategories" runat="server" Visible="true"> &nbsp;<asp:ObjectDataSource ID="ObjectDataSourceCategories" runat="server" SelectMethod="GetChildCategories" TypeName="Fabrikam.Application.Catalog.Catalog">

Since we are making changes to aspx page, we do not need to re-compile the application.
Hope this helps.




1 comment:

  1. When a certain business learn to automate important administrative duties, they can now focus on dealing with other aspects of business techiques and strategies more and would eventually increase sales later on. That can be achieved thru the use of popular sofware called partner relationship management (PRM).

    ReplyDelete