Welcome to MSDN Blogs Sign in | Join | Help

Enterprise Portal Screencasts at Channel9.msdn.com

Microsoft Dynamics AX 2009 – Creating simple List Page in Enterprise Portal
This how-to video demonstrates how to create a simple List Page in Enterprise Portal using AxGridView control.
Microsoft Dynamics AX 2009 – Creating simple Task Page in Enterprise Portal
This how-to video demonstrates how to create a simple Task Page in Enterprise Portal using AxForm control
Microsoft Dynamics AX 2009 – Creating simple Tunnel(Wizard) Page in Enterprise Portal
This how-to video demonstrates how to create a simple Tunnel(Wizard) Page in Enterprise Portal using ASP.net Wizard control and EP AxForm control.
Microsoft Dynamics AX 2009 – Calling X++ classes in Enterprise Portal User Controls in C#
This how-to video demonstrates how to create a simple X++ Class in AOT and create a C# proxy for this class and call it in Enterprise Portal user control written in C#
Microsoft Dynamics AX 2009 – Using Record Context in Enterprise Portal
This how-to-video demonstrates using record context in Enterprise Portal. Record context is used to pass currently selected record information on a page or Web part to another page or connected Web part.
Microsoft Dynamics AX 2009 – Advanced Grid in Enterprise Portal List Page
This how-to video demonstrates how to add ranges in dataset to restrict the data displayed and the different options supported (open,hidden,locked). This also demonstrates how to use display and edit methods defined in the table in the Grid.

Microsofty Dynamics AX 2009 Enterprise Portal / Role Centers - Deployment Tips-n-Tricks - 1

(1) Installation of Enterprise portal component, gives the following error:Error executing code: SysDevelopmentProxy (object) has no valid runable code in method 'generate'.
a. Go to Ax Client ( on a machine where Business Connector is installed)
b. Open the AOT\Classes node
c. Right click on the SysDevelopmentProxy class node and select compile
and make sure it compiles correctly. Then run the EP deployment.

(2) I have successfully created the EP Site and I can view the site. But other users are not able to view it.
a. Make sure the user is added to Ax and to the right AX user groups.
b. Make sure the user is configured as Employee or Customer or Vendor in User Relations form in Ax
c. Make sure the user is added in EP site using Site Settings
   i. Click on the “Site Actions” tab, and select “Site Settings” from the drop down list
   ii. Click the “People and groups” link
   iii. Click the “New” button, in the “Add Users” page click the “Add all authenticated users” and check all the permissions boxes to give all configured users full rights
   iv. Click “OK”

(3) Role Centers are working fine in EP , but are not coming up in Ax Client
a. Make Sure the "Web site used to dispaly Role Center in the Ax Client " setting in Administration -> Setup -> Internet -> Web Sites form at the bottom right is set to the right EP site
b. Navigate to the EP site mentioned in the above setting and verify none of the web parts are throwing any error. If any web part is not rendering correctly , either fix the source of the problem for that web part or remove that web part

(4) After I added “Business Overview WebPart”, I tried to add some indicators. It gave the error message “An error has occurred while processing the business overview indicator. Check the web server application event log for more information.” From Event Viewer:“An unexpected error has occurred.The period is not valid......"
Did you initialize the profiles? You need to "Initialize Role Center Profiles" from Basic->Setup->Role Center or Import Time Periods from Administration -> Setup -> Business Analysis -> OlAP -> Time Periods

(5) In Enterprise Portal setup BC Proxy Account cannot be set if the FQDN is not a superset of the short domain name
In Enterprise Portal setup BC Proxy Account cannot be set if the FQDN is not a superset of the short domain name

if the FQDN is different from the short domain name , for example
If the FQDN = XYZ.microsoft.com
and the short dominname = XYZCORP
then setting the BCProxy user during EP setup fails.

To workaround,
(1) change the app pool in IIS used by the EP Site to  to be run by the bc proxy account with the FQDN specified.
(2) Also blank out the business connector proxy account in Ax.
(3) Then run EP setup and n the BC proxy user dialog , use the FQDN of the bc proxy.

(6)Manage Deployments dialog in Ax Client for Enterprise Portal may not function correctly on 64 bit machine
Manage Deployments dialog in Ax Client for Enterprise Portal may not function correctly on 64 bit machine

Administration->Setup -> Internet -> Enterprise Portal -> Manage deployments on 64 bit machine may give
"Manage Deployment can not run because Enterprise Portal is not deployed on this computer" even though Enterprise Portal is deployed and working fine. Manage Deployment is used to update the Enterprise Portal web server with the changed made in AOT web files and resources. To workaround this probelm, use the alternate way of publishing these changes to the web server, which is running Ax Setup and deploy EP without recreating the site.

(7) KPIs and Business Overviw keeps loading all the time and never ends.

if all the Role Center content in enterprise portal are coming up except the Business Overview webpart and it keeps displaying loading progress image for long time with no error msg in the event log, it may be because IE security setting is preventing the webpart from asynchronously getting the data. To resolve this issue add the EP site to the intranet site zone in IE or disable IE Enhanced Security Configuration from Add / Remove programs -> Add / Remove Widnows Components.

Role Centers in Microsoft Dynamics Ax

Role Centers 

Role Centers offer a Role Tailored User Experience in Microsoft Dynamics Ax 2009 that

  1. provides at-a-glance business overview above the data to monitor business performance
  2. provides summary view of each person’s work and present it in one, made-for-that user default page
    1. Helps users plan and prioritize their work
    2. Put work into consumable chunks
    3. Notify users of work to keep the (work)flow going
  3. provides "software made for me" experience
    1. Users/businesses can personalize Home Pages
    2. ISVs can add parts

Value Proposition 

End Users

  1. Reach every employee with pervasive BI in business process
  2. Add value to every decision
  3. Provides big picture and help keep the work flowing
  4. Increase the impact and productivity of information workers
  5. Analytics embedded in the Business application itself. One integrated tool for both analytics and business transaction
  6. Easy to drill into the transaction details from the analytical information
  7. Available in both Client and Portal

Developers

  1. Leverages Meta data defined in business system to generate the cubes
  2. Out of the box Cues and Role Centers simplifies the development
  3. Easy to integrate other systems
  4. Easy to customize the user interface using std Microsoft development tools

Administrators

  1. Easy to assign users to Role Centers
  2. Familiar SharePoint, SSRS, SSAS admin tools to manage user's permissions

Role Center Web Parts

  1. Business Overview - for displaying KPIs and for time comparison
  2. Dynamics Reports - for displaying charts and summary reports
  3. Cues - for displaying work information like paper stacks pictorial representation
  4. Quick Links - for shortcuts
  5. Unified Worklist - for displaying alets, workflow actions and crm tasks
  6. EP Web parts
    1. Gantt View , List, any ASP.net control
  7. WSS  Web parts - for collaboration
  8. MOSS Web parts - for BI
    1. Filter, KPI List, Excel Web Access, RSS Feed etc
  9. Any std SharePoint and/or ASP.net controls

 

 

Posted by meysun | 1 Comments

Enterprise Portal in Microsoft Dynamics Ax 2009

What is Enterprise Portal? 

  1. Portal Platform for Microsoft Dynamics AX
  2. Rich development tools and technology
  3. Out-of-the-box self-service scenarios for  customers, vendors, business partners and employees
  4. Personalized, role-based portal

Enterprise Portal Architecture

  1. Similarly to Desktop Ax 5.0 Portal builds on the rich Ax programming model and data binding
  2. It exposes the rich Ax Metadata Binding
  3. It uses the full flexibility of ASP.NET (code and markup)
  4. It uses the dynamic customization and personalization of SharePoint
  5. It unifies ASP.NET, SharePoint and Ax Metadata in the AOT

Value Proposition
End users

  1. Modern web experience (responsive & interactive)
  2. Utilizes AJAX for rich interactions
  3. Rich data visualization through controls

Developers

  1. Integrates with Visual Studio for design time experience
  2. Rich toolset for developers
    1. ASP.NET controls
    2. EP Controls ( List / Form / Look up etc..)
    3. SharePoint Web Parts
    4. Third Party ASP.NET controls
    5. User Controls
    6. Custom Controls
    7. ASP.NET pages
  3. Provides full control of UI rendering
  4. ASP.NET runtime and rich CLR language and libraries
  5. Allows associations of web parts in one page

Administrators 

  1. End to End  EP deployment completely integrated in Ax Setup
  2. Prerequisites checks built-in
  3. Auto Install WSS , Auto configure WSS , Auto create EP site
  4. No manual steps required

What's new in EP? 

  1. New Asp.net based Framework
  2. Web Modules are Sub Sites
  3. One Site for All Ax companies similar to Client
  4. Context Specific EP help
  5. Reduced Configuration Steps ( For example, User Relation Configuration Optional for Role Centers ( Required for specific EP modules))
  6. End to End Deployment part of Ax Setup
  7. Consistent Navigation for Web Modules in Quick Launch
  8. Lots of new application functionality
    1. CRM in Sales Module
    2. Expense Management
    3. Purchase Requisition
    4. Service Management
    5. Compliance Center
    6. Role Centers 
Posted by meysun | 4 Comments

Enterprise Portal - Publish Images how to include custom tables with images?

For the images  that are stored in tables in Ax, there is "Publish Images" functionality to push them to the web server. If you have custom tables which contains images and would like to include them as part of "Publish Images" for it to appear in Enterprise Portal pages, you should customize the SysEPDeployment class in AOT.

In SysEPDeployment class deployCompanyImages method, you should add deployImages(<TableName>), where <TableName> is the new table that you added.

 

Posted by meysun | 1 Comments
Filed under:

New Blog from the EP Team

The EP Team has created a blog. Welcome team to the wonderful world of blogs.We have made tons of enhancements and a really cool ASP.net AJAX based EP framework in Microsoft Dynamics AX 2009 and we need more than one blog to talk about EP. This blog http://blogs.msdn.com/epblog is straight from the heart to the masses.  All the dev/test/pm team members are going to contribute to this blog. We are also in the process of creating and releasing number of EP quick start guides, screencasts etc. So get ready to be drenched from information firehose.

Posted by meysun | 1 Comments

Setup fails when you attempt to install Enterprise Portal with SysDevelopmentProxy (object) has no valid runable code in method 'generate' error

Setup fails when you attempt to install Enterprise Portal If the .NET Business Connector is not installed on the Microsoft Dynamics AX client computer when the initialization checklist is run, then the SysDevelopmentProxy class is not compiled. If this class is not compiled, Setup fails when you attempt to install Enterprise Portal.

 

To compile the SysDevelopmentProxy class, open the AOT > Classes node, right-click SysDevelopmentProxy, and click Compile. If you receive a compile error, then the .NET Business Connector is not installed. Install the .NET Business Connector using Setup, and then compile the AOT (Right-click the AOT root node and click Compile).Once you compile this successfully, then proceed to EP setup.

 

 

Below is the error that you would see in the setup log file. Don't get confused with the last line in the error log as Reason: No .NET Business Connector session could be found. The real issue is the one reported above about SysDevelopmentProxy (object) has no valid runable code in method 'generate' error.

...

...

... 

Deploying proxies...
In SysEPDeployment::deployProxies...
In SysEPDeployment::clrGetVirtualServerProxyDir...
 
Entering function GetConfigurationFilePath
 Leaving function GetConfigurationFilePath
 
 C:\Inetpub\wwwroot\wss\VirtualDirectories\<portnumber>\App_Code\Proxies
In SysEPDeployment::clrGenerateProxies...
 Error executing code: SysDevelopmentProxy (object) has no valid runable code in method 'generate'.

 

(C)\Classes\SysDevelopmentProxy\generate
(C)\Classes\SysEPDeployment\clrGenerateProxies - line 7
(C)\Classes\SysEPDeployment\deployProxies
(C)\Classes\SysEPDeployment\deployAllWebParts
(C)\Classes\SysEPDeployment\deployEPOnSharepoint
(C)\Classes\SysEPDeployment\installEnterprisePortal


Microsoft.Dynamics.BusinessConnectorNet.BusinessConnectorException
   at Microsoft.Dynamics.BusinessConnectorNet.AxaptaObject.Call(String methodName, Object[] paramList)
    at Microsoft.Dynamics.BusinessConnectorNet.AxaptaObject.Call(String methodName, Object param1)
    at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)

An error occurred during setup of Role Centers and Enterprise Portal.
Reason: No .NET Business Connector session could be found.
=== Rolling back setup of Role Centers and Enterprise Portal due to error ===
Launching MSI:  /i "D:\Msi\Components32\Components32.msi" /qb-! /l*v "C:\Documents and Settings\All Users\Application Data\Microsoft\Dynamics AX\Dynamics AX Setup Logs\<Date Time>\Components32 Rollback Log.txt" DIRECTEXECUTE=1 SETUPLANGUAGE=EN INSTALLDIR="C:\Microsoft Dynamics AX\50" INSTALLDIR32="C:\Microsoft Dynamics AX\50" ADDLOCAL="ClientUI,EnterprisePortal,NetBusinessConnector,ClientConfig" REMOVE="EnterprisePortal"
=== Rolling back setup of Role Centers and Enterprise Portal due to error ===
Rollback of === Rolling back setup of Role Centers and Enterprise Portal due to error ===

 installation has been completed. For details about why the installation failed, see the previous messages in the log.


 === Setup was canceled or failed. For details see the previous messages in the log.

Posted by meysun | 1 Comments
Filed under:

Tech Ed 2008

 

TechEd North America 2008 Developers is starting next week ( June 3-8 , 2008) at Orlando, Florida. This is going to be a very exciting event for Microsoft Dynamics AX as the first major event immediately after the release of Microsoft Dynamics Ax 2009.

I am presenting EP and Role Centers at a breakout session. Attend this deep-dive discussion on the portal strategy and Role Centers for Microsoft Dynamics AX to learn about the enhancements made to Microsoft Dynamics AX Enterprise Portal, the cool new user experience, powerful ASP.NET/AJAX/VS.NET development tools, seamless setup and deployment options, out-of-the-box Role Centers, customization and adaptability. See how to build and customize enterprise portal pages and Role Centers to add new functionality and help meet customers' needs.

Dev Conference DYN208 Microsoft Dynamics AX Enterprise Portal and Role Centers
Session Day/Time: 6/3/2008 4:45PM-6:00PM
Room: S310 E (DEV)
Dev Conference DYN13-TLC Microsoft Dynamics AX Enterprise Portal and Role Centers
Session Day/Time: 6/4/2008 8:30AM-9:45AM
Room: Yellow Theater 2

Forcing NTLM on IISWebsite

1) Go to IISManager and find the identifier for your Web Site. Click on the web sites folder in IISManager and on the left side you should get the list of web sites and their identifier

(2) Open a command prompt and runt the following 3 commands. Change the <identifier> with the identifier value found in the previous step
cd c:\inetpub\adminscripts
cscript adsutil.vbs set w3svc/<identifier>/root/NTAuthenticationProviders "NTLM"
iisreset

 

NOTE:

(1) if you want to set NTLM at a virtual direcotry level then use the below command and replace <virtualdirectoryname> with the virutal directory name
cscript adsutil.vbs set w3svc/<identifier>/root/<virtualdirectoryname>/NTAuthenticationProviders "NTLM"

(2) To revert back to Kerberos use "Negotiate,NTLM" as the parameter

(3) To check what is currently set use the below commands
cscript adsutil.vbs get w3svc/<identifier>/root/NTAuthenticationProviders
cscript adsutil.vbs get w3svc/<identifier>/root/<virtualdirectoryname>/NTAuthenticationProviders

Microsoft Dynamics AX 2009 RTMed

We started this journey two years back and yesterday was a historical day when the product was RTM'ed. Microsoft Dynamics AX 2009 is available now for download from Partner Sourcehttps://mbs.microsoft.com/partnersource/support/selfsupport/productreleases/DynamicsAX2009release.htm.

 

This is a significant release with tons of new app & framework features with solid tighter integration to Microsoft platform technologies. The team size almost doubled in all three locations during this release and it was a phenomenal immersing experience working across three different sites/time zones and working with various disciplines in my product feature areas from the idea/conceptual state and taking it to a real shippable end product state.

You will see an awesome looking Enterprise Portal using ASP.net AJAX . You can do amazing things with this powerful ASP.net based EP framework and VS.net development tools . You can take advantage of greater user interface interactivity and responsiveness through the use of Asynchronous JavaScript and XML (AJAX) and ASP.NET and build rich web applications. In this release performance and throughput has increased many fold and setup is made simpler.

 

Role Centers deliver on the promise of providing Role Tailored user experience and is very unique to Microsoft Dynamics products. Role Centers brings the power of many Microsoft products and technologies together (WSS, MOSS, SSRS, SSAS, ASP.net, AJAX) to Microsoft Dynamics AX. Role Centers in Microsoft Dynamics AX 2009 provide an overview of the work relevant to job-specific roles, empowering them to make quick decisions and take actions and helping people to prioritize and plan their activities. They can monitor , analyze  business performance with actionable BI displayed in the Role Center in the form key performance indicators (KPIs) ,  charts and reports and seamlessly drilldown to details and transactions.

 

In the coming days , I will blog more about these two features...

 

 

Posted by meysun | 1 Comments

Channel 9 Interview on Enterprise Portal & Role Centers

Arif,Dima,Chad and I sat with Dan Fernandez from Channel 9 team and discussed the Microsoft Dynamics AX 2009 Enterprise Portal and Role Center features.  http://channel9.msdn.com/showpost.aspx?postid=405045

 

More such sessions are planned for many of the Ax features and keep watching Channel 9 for Ax interviews.

Convergence 2008 - Microsoft Dynamics AX Enterprise Portal and Role Centers

Convergence 2008 Orlando is starting next week ( March 11-14 , 2008) at Orlando, Florida. This is going to be a very exciting event for Microsoft Dynamics AX as we are very close to the next big release of Microsoft Dynamics Ax 2009 and have lots of exciting information to share with partners and customers and also to listen to them and get feedback on the current and upcoming product versions.

I am presenting EP and Role Centers at two breakout sessions. Attend this deep-dive discussion on the portal strategy and Role Centers for Microsoft Dynamics AX to learn about the enhancements made to Microsoft Dynamics AX Enterprise Portal, the cool new user experience, powerful ASP.NET/AJAX/VS.NET development tools, seamless setup and deployment options, out-of-the-box Role Centers, customization and adaptability. See how to build and customize enterprise portal pages and Role Centers to add new functionality and help meet customers' needs.

Code Title Date/Time Room
AX13 Microsoft Dynamics AX Enterprise Portal and Role Centers 3/13/2008 5:00PM-6:00PM W206BC
AX13 Microsoft Dynamics AX Enterprise Portal and Role Centers(Repeat) 3/14/2008 4:00PM-5:00PM W206BC

I am also hosting couple of partner and customer round tables and meetings through customer connect. So if you have any questions/feedback/suggestions or would like to know more about current or upcoming versions of Ax , Enterprise Portal, SharePoint, ASP.net/AJAX, Web Application Development, BI , Dashboard, Role Tailored experience etc, please connect with me either through Convergence Connect or email or through comments in to this blog posting.
Posted by meysun | 1 Comments

Enterprise Portal Kerberos Delegation for connecting to Reporting/Analysis Services on a different box

Here are the steps that I followed for setting up Kerberos Delegation on For Enterprise Portal  connecting to Reporting Services/ Analysis Services on different boxes 

1)       The first thing to do is to check that your domain controller is operating in Windows 2003 mode. By default you’ll find your system will operate in the Windows 2000 compatible mode. To check this go to active directory users and computers, right click on your domain, and click ‘Raise Domain Functional Level’. If it’s in Windows 2000 compatible mode, then raise it to Windows 2003 mode.

2)       Enable Kerberos in SharePoint

a.        Open Central Administration

b.       Navigation to Application Management > Authentication Providers

c.        Choose the web application you wish to configure from the drop-down in the top right corner

d.       Click on 'Default'

e.       Set the authentication to Negotiate (Kerberos)

f.         IISRESET

g.        In case of MOSS perform the below additional steps

                                                               i.      Repeat  the steps “c” to “e” until all application pools needed are modified.  (Minimum should be the content application and the ssp application)

                                                              ii.      To set the SSP and Excel Services if you are running them to use Kerberos authentication it is best to run the following two commands:

1.        STSADM.EXE –o Set-ECSsecurity –SSP <ssp name> -AccessModel Delegation

2.        STSADM.EXE –o SetSharedWebServiceAuthN –negotiate

                                                      iii.      Optional if SharePoint admin service is enabled – STSADM.EXE –o execadmsvcjobs
If the service is not running the command is needed to propagate the change to additional servers and services.

                                                             iv.      IISRESET

3)       Make sure Reporting server and Report Manager virtual directory has Kerberos enabled. ( By default this is set to Kerberos. So this is an optional step , just to verify and correct)

a.        In IIS Manager, right-click the local computer, and then click Properties..

b.       Select the Enable Direct Metabase Edit check box, and then click OK.

c.        Click Start, click Run, type cmd, and then click OK.

d.       At the command prompt, type the following command to change to the directory where the MetaBase.xml file is located:

e.       cd %systemroot%\system32\inetsrv

f.          To open the file with Notepad, at the command prompt, type the following:

g.        notepad MetaBase.xml

h.        In the <IISWebServer> section, locate the NTAuthenticationProviders metabase property and modify its setting to read "Negotiate,NTLM".

i.         Repeat the same for Reports and ReportServer Virtual directory

j.           Save and close the MetaBase.xml file.

k.        IISRESET

4)       Register the App pool

a.        SPNs are configured by using SetSPN.exe (download it from here for Windows 2003 SP1  or SP2) which is a command line  provided as part of the Windows 2003 resource kit

b.       Run SetSPN for all EP servers and Reporting Servers with the app pool account alias for  HTTP   ( for each server you have to run twice one with FQDN and another with just host name for each service. So for a given server there will be two commands)

                                                               i.      Setspn.exe -A HTTP/mey1  redmond\meysun

                                                              ii.      Setspn.exe -A HTTP/mey1.redmond.corp.microsoft.com redmond\meysun

In the above command, replace
mey1” with the server name
redmond.corp.microsoft.com” with the domain name
redmond\meysun with the app pool account

c.        Add the SSAS service to each account for each Analysis Service machine

                                                               i.      Setspn.exe -A MSOLAPSvc.3/mey1  ssasaccount

                                                              ii.      Setspn.exe -A MSOLAPSvc.3/mey1.redmond.corp.microsoft.com ssasaccount

In the above command, replace
mey1 ” with the server name
redmond.corp.microsoft.com” with the domain name
ssasaccount with the machine name if the SSAS service is running in network service  or the domain account which is running this service

5)       The user account(s) you want to be delegated must have the "Account Is Sensitive And Cannot Be Delegated" option cleared (i.e. not checked). You'll find this property in "Active Directory Users And Groups", under the "Account" property tab. I believe this is unchecked by default.

6)       The app pool accounts should have the" Account Is Trusted For Delegation" option enabled in "Active Directory Users And Groups"->"User"->"Properties"->"Delegation"->"Account is trusted for delegation ".

7)       In the odc file stored in Data Connections document library on the EP site, edit the connection string and append  the following ";SSPI=Kerberos"

8)       Component Services Configuration

a.        Open Component Services on the EP server

b.       Navigate to Component Services > Computers > My Computer > DCOM Config > IIS WAMREG Admin Service

c.        Click on Properties (for IIS WAMREG Admin Service) and navigate to the Security tab

d.       Edit Launch and Activate Permissions

e.       Grant all  application pool account 'Local Activation' permissions (see http://support.microsoft.com/kb/920783). In our example, these accounts would be  your network service and app pool account of your EP site.

Note: If you are Windows 2008 Server, then by default Kernel Mode Authentication is enabled and it uses LocalSystem account. So for web sites which use Domain account as App Pool account either you need to configure useAppPoolCredentials  in applicationHost.config 

  • Configure the useAppPoolCredentials attribute in system.webServer/security/authentication/Windows-Authentication configuration section to true. For example:

    <windowsAuthentication enabled="true" useKernelMode="true" useAppPoolCredentials="true" />

    OR disable Kernel-mode authentication for the web site
  • In IISManager7 , under the Windows Authentication ->  Advanced Settings option, uncheck "Enable Kernel Mode authentication"
  • More Posts Next page »
     
    Page view tracker