AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.12.2006, 19:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,491 / 846 (79) +++++++
Регистрация: 28.10.2006
Fred Shen: Failed to create COM objects on AX 4 AOS
Источник: http://fredshen.spaces.live.com/Blog...E4E3!190.entry
==============
You may come across this issue when attempt to initialize a COM object on AX 4 AOS server side:
 
static server void ActivateCOMOnAOS()
{
    #define.Word('Word.Application')
    COM com;
    InteropPermission permission = new InteropPermission(InteropKind::ComInterop);
    ;
 
    permission.assert();
    //BP deviation documented
    com = new COM(#Word);
    CodeAccessPermission::revertAssert();
}
And an error message will appear:
COM object of class 'Word.Application' could not be created. Ensure that the object has been properly registered on computer 'ComputerName'.
 
It is because by default, Microsoft Word as a COM object can not be launched by the user NT AUTHORITY\NETWORK SERVICE. 
 
The way to resolve this issue is to modify the Activation permission for Word Application using the Component Services administrative tool.
 
Configure DCOM (Windows 2003)
  • Start -> All programs -> Administrative Tools -> Component Services.
  • Expand Component Services
  • Expand Computers
  • Expand My Computer
  • Select the DCOM Config item
  • Select the Microsoft Word Document item.
  • Right click and select Properties
  • Under Launch and Activation Permissions select the Customize option.
  • Click the Edit button
  • Click the Add button to add a new account to the list.
  • Click the OK button
  • On the dialog that is displayed enter Network Service as the account name.
  • Grant Network Service the launch and activate permission.


==============
Источник: http://fredshen.spaces.live.com/Blog...E4E3!190.entry
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Arijit Basu: Reporting & BI in AX: An Overview [Level 100] Blog bot DAX Blogs 0 07.01.2008 16:01
Arijit Basu: AX 4 AOS Basics: [Level 100] Blog bot DAX Blogs 0 18.11.2007 14:30
Fred Shen: Development Features of Dynamics Ax (Axapta) 4.0 Blog bot DAX Blogs 0 28.10.2006 16:40

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 02:38.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.