Dynamics CRM SDK WebAppWalkthrough
-
Tuesday, August 23, 2011 3:51 PM
Anyone faced this error before?
The value 'Xrm.XrmServiceContext, WebAppWalkthrough' is not recognized as a valid type or is not of the type 'Microsoft.Xrm.Sdk.Client.OrganizationServiceContext'.
I am followiing exactly the steps in the SDK Sample WebAppWalkthrough, but hit with this error and not able to get the web page returning the result.
Appreciate immediate feedback.
All Replies
-
Saturday, December 01, 2012 10:48 PM
No Solution yet...do any one has any fix for this issue
The value 'Xrm.XrmServiceContext, WebAppWalkthrough' is not recognized as a valid type or is not of the type 'Microsoft.Xrm.Sdk.Client.OrganizationServiceContext'. 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.Configuration.ConfigurationErrorsException: The value 'Xrm.XrmServiceContext, WebAppWalkthrough' is not recognized as a valid type or is not of the type 'Microsoft.Xrm.Sdk.Client.OrganizationServiceContext'.
Source Error:[No relevant source lines]
Source File: c:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\xrmwebearlybound\b2339826\76a738a9\App_Web_jzqatbsm.2.cs Line: 0
Stack Trace:[ConfigurationErrorsException: The value 'Xrm.XrmServiceContext, WebAppWalkthrough' is not recognized as a valid type or is not of the type 'Microsoft.Xrm.Sdk.Client.OrganizationServiceContext'.] Microsoft.Xrm.Client.Configuration.InitializableConfigurationElement`1.GetDependencyType() +411 Microsoft.Xrm.Client.Configuration.InitializableConfigurationElement`1.CreateDependency(Func`1 createDefault, Object[] args) +61 Microsoft.Xrm.Client.Configuration.InitializableConfigurationElement`1.CreateDependencyAndInitialize(Func`1 createDefault, Object[] args) +99 Microsoft.Xrm.Client.Configuration.OrganizationServiceContextElement.CreateOrganizationServiceContext(IOrganizationService service) +190 Microsoft.Xrm.Client.Configuration.CrmConfigurationManager.CreateContext(String contextName, Boolean allowDefaultFallback) +227 Microsoft.Xrm.Portal.OrganizationServiceContextFactory.Create(String name) +43 Microsoft.Xrm.Portal.Web.UI.WebControls.SavedQueryDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +129 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +138 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30 System.Web.UI.WebControls.GridView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +105 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75 System.Web.UI.Control.EnsureChildControls() +83 System.Web.UI.Control.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +168 System.Web.UI.Control.PreRenderRecursiveInternal() +168 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6660 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245 System.Web.UI.Page.ProcessRequest() +72 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +58 ASP.webform_savedquerydatasource_aspx.ProcessRequest(HttpContext context) in c:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\xrmwebearlybound\b2339826\76a738a9\App_Web_jzqatbsm.2.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929Chandrashubh
-
Wednesday, January 23, 2013 1:33 AM
I was receiving the same error message. In my case, I had run the CrmSvcUtil.exe with a small typo with one of the parameters:
/namespace:XRM
I ran it again with:
/namespace:Xrm
Then added the revised Xrm.cs file to my project and the "Contact Grid 2" ran correctly.