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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Vendor Portal: LogonAsGuest failed

(0) ShareShare
ReportReport
Posted on by 98

after deploying vendor portal AX 2012 R3 successfully , I tried to browse the vendor portal, but am receiving the below error, can any one advise about it please ?

Message: Dynamics Adapter LogonAsGuest failed.

Source: Microsoft.Dynamics.AX.ManagedInteropCore

Exception details:

External component has thrown an exception.

at BCLogon(LOGON_INFO* , SesPblk_t** , Char** )
at AxCore.AxSessionFactory.Logon(BC_PROXY_ACCOUNT_INFO* pBCProxyAccountInfo, String company, String language, String objectServer, String configuration, String aol, String aolCode, String tenant, String* msg, SesPblk_t** ppSesPblk)
at AxCore.AxSessionFactory.LogonUsingBCProxyAccount(_SEC_WINNT_AUTH_IDENTITY_W* pImpersonatedUserAccount, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration, String tenant, String* msg, IAxSession** ppaxSession, (fnptr)* pAxCheckIsILSession)
at Microsoft.Dynamics.AX.ManagedInterop.Session.LogonAsGuest(NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration, String tenant)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsAdapter.LogonAsGuest(NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration, String partitionKey)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    The error you are getting are related to the Guest user and role:

    technet.microsoft.com/.../hh527095.aspx

    But the real issue is that most likely you are not passing in a Windows Active Directory security credential when signing in I assume, or your Internet Information Services service or AX Business Connector proxy account is not configured correctly or at all. Users using your AX system must be authenticated, and using the Guest account is a bad idea.

    I would suggest going through the documentation yourself again to verify which setup step or access did you miss.

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Here is the checklist, verify all points and links:

    [View:https://technet.microsoft.com/en-us/library/gg732273.aspx:750:50]

  • MDeeb Profile Picture
    98 on at

    Than you Vilmos,

    when trying to access the vendor portal with another user that has the guest role and the external portal role am getting different error as per the below, I already configured vendor portal just like TechNet steps:

    Message: An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs.

    Source: Microsoft.Dynamics.Framework.Metadata.AX

    Exception details:

    Unable to cast object of type 'Microsoft.Dynamics.AX.Framework.Services.Client.WebMenuItemReferenceNode`1[Microsoft.Dynamics.AX.Framework.Services.Client.WebModuleMetadata]' to type 'Microsoft.Dynamics.AX.Framework.Services.Client.WebModuleMetadata'.

    at Microsoft.Dynamics.AX.Framework.Services.Client.WebModuleMetadata.Visible(ISession session)

    at Microsoft.Dynamics.AX.Framework.Services.Client.WebModuleMetadata.Visible(ISession session)

    at Microsoft.Dynamics.AX.Framework.Services.Client.WebModuleMetadata.IsVisible(ISession session)

    at Microsoft.Dynamics.Framework.Portal.UI.WebControls.WebMenuGeneratorBase`2.GenerateMenu(ISession session, ICollection`1 childNodes)

    at Microsoft.Dynamics.Framework.Portal.UI.WebControls.WebMenuGeneratorBase`2.Generate(WebMenuGeneratorSetting setting)

    at Microsoft.Dynamics.Framework.Portal.Navigation.TopNavProvider.GetChildNodes(SiteMapNode node)

    at System.Web.SiteMapNode.get_HasChildNodes()

    at System.Web.UI.WebControls.Menu.DataBindRecursive(MenuItem node, IHierarchicalEnumerable enumerable)

    at System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item)

    at System.Web.UI.WebControls.Menu.PerformDataBinding()

    at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()

    at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()

    at System.Web.UI.WebControls.Menu.EnsureDataBound()

    at Microsoft.SharePoint.WebControls.AspMenu.OnPreRender(EventArgs e)

    at System.Web.UI.Control.PreRenderRecursiveInternal()

    at System.Web.UI.Control.PreRenderRecursiveInternal()

    at System.Web.UI.Control.PreRenderRecursiveInternal()

    at System.Web.UI.Control.PreRenderRecursiveInternal()

    at System.Web.UI.Control.PreRenderRecursiveInternal()

    at System.Web.UI.Control.PreRenderRecursiveInternal()

    at System.Web.UI.Control.PreRenderRecursiveInternal()

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

  • MDeeb Profile Picture
    98 on at

    Hi Vilmos,

    Does vendor portal has to be on new web application , or it can be on existing web application used for Enterprise Portal employee services?

    Thank you,

  • Vilmos Kintera Profile Picture
    46,149 on at

    I cannot comment on the above question, we are using our own custom implementation of a Vendor Self-Service portal.

  • MDeeb Profile Picture
    98 on at

    Hi Vilmos,

    if I want to use vendor portal for vendors that have users on AD, and log in using VPN, any setup needed for those users(vendors) on AX other than giving vendor role on AX?

    Thank you.

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Not sure, like I said above, we have our own VSS portal where we just send out the PO number and a PIN code, with which they could see the pending orders and confirm them to book in a delivery on a specific date.

    I would recommend to have a look at the documentation, that usually clearly explains what should be done. It does not go in the details of using a VPN service, that is something for you to explore, since it belongs to infrastructure and not the AX product itself. Let us know how it goes in case you have succeeded, so other community members could learn from it if they have similar requirements.

  • MDeeb Profile Picture
    98 on at

    Thanks a lot Vilmos, i will be trying  to use the flexible authentication with form based authentication and once i finish it successfully will share it.

    Thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans