locked
Could not find schema information for the element 'microsoft.xrm.client' ? RRS feed

  • Question

  • I am trying to run a walkthrough of building a web application that connects to Microsoft Dynamics CRM using developer extensions. Like it mention in 

    Set up your web application project in Visual Studio

    section how to change the XML and provide the credentials which i have done following way 

    This is the web.config of the project and I have edited the part which the said to do 

    <configuration>
      
      <configSections>
        <section name="microsoft.xrm.client"
          type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client" />
      </configSections>
      
      <connectionStrings>
        <add name="Xrm"
             connectionString="Server=https://192.168.1.1;     Domain=costa;    Username=foo;         Password=fooo123"/>
      </connectionStrings>
    
      <microsoft.xrm.client>
        <contexts>
          <add name="Xrm" type="Xrm.XrmServiceContext, WebApplication1" />
        </contexts>
      </microsoft.xrm.client>
    
      <system.web>
        
        <pages>
          <controls>
            <add tagPrefix="crm" namespace="Microsoft.Xrm.Portal.Web.UI.WebControls" assembly="Microsoft.Xrm.Portal" />
          </controls>
        </pages>
        
        <compilation debug="true" targetFramework="4.0" />
    
        <authentication mode="Forms">
          <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
        </authentication>
    
        <membership>
          <providers>
            <clear/>
            <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
                 enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
                 maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
                 applicationName="/" />
          </providers>
        </membership>
    
        <profile>
          <providers>
            <clear/>
            <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
          </providers>
        </profile>
    
        <roleManager enabled="false">
          <providers>
            <clear/>
            <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
            <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
          </providers>
        </roleManager>
    
      </system.web>
    
      <system.webServer>
         <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
    </configuration>

    After adding a form to the application when I compile it there are 5 messages from web.config and many errors in Xrm.cs file some are given below 

    Message	1	Could not find schema information for the element 'microsoft.xrm.client'.	C:\Users\Fooo\documents\visual studio 2010\Projects\WebApplication1\WebApplication1\Web.config	20	4	WebApplication1
    
    Message	2	Could not find schema information for the element 'contexts'.	C:\Users\Fooo\documents\visual studio 2010\Projects\WebApplication1\WebApplication1\Web.config	21	6	WebApplication1
    
    Message	3	Could not find schema information for the element 'add'.	C:\Users\Fooo\documents\visual studio 2010\Projects\WebApplication1\WebApplication1\Web.config	22	8	WebApplication1
    
    Message	4	Could not find schema information for the attribute 'name'.	C:\Users\Fooo\documents\visual studio 2010\Projects\WebApplication1\WebApplication1\Web.config	22	12	WebApplication1
    
    Message	5	Could not find schema information for the attribute 'type'.	C:\Users\Fooo\documents\visual studio 2010\Projects\WebApplication1\WebApplication1\Web.config	22	23	WebApplication1

    and many errors of this kind in Xrm.cs 

    Error	6	The type or namespace name 'IgnorePropertiesAttributeAttribute' does not exist in the namespace 'System.Data.Services' (are you missing an assembly reference?)	C:\Users\foo\documents\visual studio 2010\Projects\WebApplication1\WebApplication1\Xrm.cs	24	24	WebApplication1

    The References of dll are

     

    did I do something wrong in Web.config ?

    Help!


    Rana Muhammad Waqas


    Thursday, July 17, 2014 7:49 AM

All replies