web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Getting Exception: Sequence Contains more than one element when I run MasterPortal solution from Visual studio2015.

(0) ShareShare
ReportReport
Posted on by 55

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"

43802.Error.PNG

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.

AdxCustomerPortal.PNG

Kindly suggest me something to resolve this issue.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    M Anand Kumar Profile Picture
    55 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans