2014年9月25日 星期四

Clean a Microsoft Dynamics NAV Company

Quick and dirty way to clean a Microsoft Dynamics NAV company.

1. Create a new company under same instance.
2. Switch old and new company.
3. Set user's permission on new company.
4. Migrate all the custimized code to new company if need.
5. Remove old company.

PowerShell command example:

1. Create new company.
New-NAVCompany -ServerInstance "devilhouse" -CompanyName "devilroom_new"

2. Switch old and new company.
Rename-NAVCompany -ServerInstance "devilhouse" -CompanyName "devilroom" -NewCompanyName "devilroom_old"
Rename-NAVCompany -ServerInstance "devilhouse" -CompanyName "devilroom_new" -NewCompanyName "devilroom"

3. Set user's permission on new company. (I am using AD authentication for my solution. In different authentication model may need different user name format.)
New-NAVServerUserPermissionSet -PermissionSetId "SUPER" -ServerInstance "devilhouse" -UserName "ADDomain\JOHN_DEVILHOUSE.ADD" -CompanyName "devilroom"

2010年4月15日 星期四

New project template in AgilePoint Developer 5.0!!


Guess who are they.
Only I can tell is I love them!!

2009年4月14日 星期二

AgilePoint - SPCommon Can not Find

Problem:

Log Name:      Application
Source:        SPCommon.GetAdminService({MACHINE_NAME}\Administrator)
Date:          4/14/2009 9:56:45 AM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      {MACHINE_NAME}
Description:
The description for Event ID 0 from source SPCommon.GetAdminService({MACHINE_NAME}\Administrator) cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

Message: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: 1DCED31183B04261896B23C4452276F1_AGILEPOINTUser ‘{MACHINE_NAME}\Administrator' is not impersonator for the application='SPSIntegration' on machine='{MACHINE_NAME}', please contact system administrator.AGILEPOINT_1DCED31183B04261896B23C4452276F1
   at Ascentn.Workflow.Service.Admin.RaiseSoapException(String message)
   at Ascentn.Workflow.Service.Admin.Surrogate(String userName)
   --- End of inner exception stack trace ---

 

Solution:

Add impersonate in AgilePoint Server Configuration.

2009-04-14_112558

2009年4月13日 星期一

Path of stsadm

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\BIN

2009年4月2日 星期四

Enable Globalization and Localization for ScriptManager

<asp:scriptmanager runat="server" id="SC1" EnableScriptGlobalization="true" EnableScriptLocalization="true" />


Without this, AJAX control will not have capability to globalize or localize.

2009年3月3日 星期二

Callback manually

Usually we use __doPostBack(‘’,’’); for manually do PostBack action in our ASP.NET code, but if you use this function in an AJAX enable page, you won’t get any benefit from UpdatePanel, your UI will still get flash every you call __doPostBack().

Now, try to call __doPostBack() in the other way: setTimeout('__doPostBack(\'\',\'\')', 0);

Use javascript function setTimeout instead call __doPostBack directly then you won’t see any UI flash now. :-)

2008年12月11日 星期四

Can’t use explorer open library in MOSS.

I saw a message when I tried to open a library with Windows Explorer in the MOSS.

2008-12-11_164418

 

The message is…

2008-12-11_164447

 

I found some body talking about it too, but their method not work for me.

even the hot-fix from Microsoft didn’t work for me.

http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64&displaylang=en

 

Windows 2008 Enterprise, Office 2007, Microsoft Office SharePoint Server 2007, IE7