c# - Error in Early Bound Class in Dynamics CRM 2015 -


we using crm 2015 on-premise, trying build customer portal, generated bound class

it generated , added vs 2012. problem when build project in vs goes fine , when run project throws error in auto generated code

the code below

    public xrmservicecontext()     {      } 

below web.config code

<?xml version="1.0"?> <configuration>   <configsections>     <section name="microsoft.xrm.client" type="microsoft.xrm.client.configuration.crmsection, microsoft.xrm.client"/>   </configsections>   <connectionstrings>     <add name="xrm" connectionstring="serviceuri=http://contoso/xrmservices/2011/organizationdata.svc/; domain=mydomain; username=vsaravanakumar; password=password@5"/>      </connectionstrings>   <microsoft.xrm.client>     <contexts>       <add name="xrm" type="xrm.xrmservicecontext, webappwalkthrough"/>     </contexts>   </microsoft.xrm.client>   <system.web>     <compilation debug="true" targetframework="4.5"/>     <pages controlrenderingcompatibilityversion="4.0" clientidmode="autoid">       <controls>         <add tagprefix="crm" namespace="microsoft.xrm.portal.web.ui.webcontrols" assembly="microsoft.xrm.portal"/>       </controls>     </pages>     <authentication mode="none"/>   </system.web> </configuration> 

the exception im getting "unable find connection string name".

i got error during debugging of code

i followed each , every steps msdn website mentioned in website portal development, if missed please me resolve error

below web.config code

you need define crm connection string in app.config/web.config files. if don't specify connection string client dll defaults using config file.


Comments