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 AX (Archived)

Error 401 Unauthorized creating a Site Collection using templates of Enterprise portal 2012

(0) ShareShare
ReportReport
Posted on by 305

I´m trying to  integrate FBA ,Sharepoint 2010 Foundation,  with Enterprise portal 2012... but when i try to create the site collection using a template of Enterprise portal i got   the error: 401 unauthorized.

the user who deploys the EP templates is local administrator in the AOS Server, SQL Server and  the  Sharepoint Server too and is System administrator en Ax and farm administrator in sharepoint

the funny thing is , if I select other template from sharepoint ,the site collection is created and works with FBA

Can anyone help me

Please

*This post is locked for comments

I have the same question (0)
  • Tommy Skaue Profile Picture
    Moderator on at

    Hi

    Does the Event Viewer reveal anything related that might give you a clue on what is missing?

    If you have the stamina, perhaps you could try use Process Monitor and see where ACCESS is being denied when creating the Site Collection.

  • Community Member Profile Picture
    on at

    the eventviewer report this:

    The Web site http://servername:82/sites/Dynamics was not created correctly. The remote server returned an error: (401) Unauthorized.

    If you are using the fully qualified domain name (FQDN) or a custom host header on the SharePoint web application, make sure that the following workaround is applied before you install Enterprise Portal: support.microsoft.com/.../896861.

    The remote server returned an error: (401) Unauthorized.

    System.Net.WebException

      at System.Net.HttpWebRequest.GetResponse()

      at Microsoft.Dynamics.Framework.Portal.Deployment.EPFeatureReceiver.ProcessAxSiteCreationAsBCProxyUser(SPWeb site, Boolean isEPHomeSite)

      at Microsoft.Dynamics.Framework.Portal.Deployment.EPFeatureReceiver.ProvisionAxSite(SPWeb site)

    and i´m not using hotheader.

    and when i deploy EP over sharepoint, the log doesnt  show any error

  • Tommy Skaue Profile Picture
    Moderator on at

    Verify the managed account for this site collection is the same as the business connector. Also make sure you've applied the correct login for this managed account (ie mistyped proxy account password).

    Also make sure the client configuration for the business connector on the SharePoint Server is correct, including its WCF configuration.

    Obviously the business connector needs to be defined correctly as system account within AX.

    For the sake of your own sanity, add business connector as local admin on the SharePoint Server. There are more secure setup for this, but just to rule out any local security issues for the bcproxy as managed account.

    Is this a single server farm?

  • Community Member Profile Picture
    on at

    is a single server farm

    the bcproxy  account is define as a system account in Ax

    bcproxy account is local administrator on sharepoint server and Farm administrator

    i checked the client configuration for BCP on Sharepoin Server its OK

    what do you mean here:

    Verify the managed account for this site collection is the same as the business connector. Also make sure you've applied the correct login for this managed account (ie mistyped proxy account password).

  • Tommy Skaue Profile Picture
    Moderator on at

    Well, the bcproxy needs to be a managed account. :-)

    Have a look here http://yetanotherdynamicsaxblog.blogspot.no/2010/12/error-when-adding-business-connector.html?q=managed

  • Community Member Profile Picture
    on at

    Ok I checked ..  and bcp is a managed account in sharepoint :(

  • Tommy Skaue Profile Picture
    Moderator on at

    Good. You could also look at the SharePoint logs for more clues, normally located under:

    C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\LOGS

    For more information on troubleshooting installation of EP for AX 2012, please have a look here:

    technet.microsoft.com/.../ee355087.aspx

    It would be interesting to know exactly what path it is trying to load when it throws the unauthorized error. I'm assuming you didn't name your server "servername". ;-)

    I'll admit I have not yet gone through the pain of setting up this for Forms Based Authentication (FBA), but according to the comments in this thorough guide, it sounds like you also need to make sure your installation is patched:

    technet.microsoft.com/.../hh575253.aspx

    How far through these steps have you come already?

  • AlexCMi Profile Picture
    85 on at

    Hi guys, I'm facing the same issue, I got the error  ."..was not created correctly. The request failed with HTTP status 401: Unauthorized" isntalling Enterprise Portal in my environment. I don't know what else try. here the step I followed this suggestion:

    -the environment is fully patched AX2012 R2 CU7

    -AX setup user and business connector proxy user are local adinsitrator, SharePoint farm administrator, share point web application administrator.

    - run AX setup as administrator

    - I installed EP (clearing web site creation) on Sharepoing front-end servers, then, at last, installed EP (with website creation) on web adminsitration SharePoint server

    - UAC disabled

    please I'm getting crazy, I don't know how to proceed, any help is much appreciated

    thank you

    Alessandro Colombi

  • Suggested answer
    AlexCMi Profile Picture
    85 on at

    Hi all, I finally solved the issue disabling loopback in SharePoint :)

    reference: https://support.microsoft.com/en-us/kb/896861

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans