
Hi All,
I am unable to run the Master Portal from visual studio. Getting below Error in Startup.cs file. "Sequence contains more than one element"
Following are the steps I have followed.
I have online Dynamics365 trial verstion, downloaded AdxstudioPortals-7-0-0023.
Next Installed Customer Protal and Basic Protal to CRM online.
Next Opened MasterPortal in Visual Studio 2015 and modified the references of
Microsoft.Crm.Sdk.Proxy.dll to 8.0.0.0
Microsoft.Xrm.Sdk.dll to 8.0.0.0
Microsfot.Xrm.Client.dll to 7.0.0.0 as this is not part of CRM 2016 SDK.
Next added the belowing lines in web.config
<dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Xrm.Sdk" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="8.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Xrm.Client" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="7.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Crm.Sdk.Proxy" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="8.0.0.0"/>
</dependentAssembly>
Next Modified the Master Portal properties , set Framework to 4.5.2 and EnablSSL to False. Now Ran the project using IISExpress. It opened a page where I need to enter CRM organization service Url ,UID and PWD.
Down below it automatically selected the Customer Portal in the dropdown.
Next I clicked on "Apply" as shown in below pic.
Kindly suggest me something to resolve this issue.
*This post is locked for comments
I have the same question (0)Hi All,
I just resolved the issue. Followed the below steps.
I have deleted some WebSite Bindings for Customer portal from online CRM.
Next turned off IIS features on my lapatop.
Restarted the laptop.
Next created virtual directory for MasterPortal from visual studio.
Edited the Web.config to have the websiteName="Customer Portal".
Now every thing works am able to now connect to Customer Portal.