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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.09.2012, 05:20   #1  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: AX 2012 Print destination settings dialog does not show up due to WMI error
Источник: http://blogs.msdn.com/b/axsupport/ar...wmi-error.aspx
==============

I recently come across a case where printer destination settings dialog typically used by report to select print destination does not show up.

The cause we found is that an exception occurs when AX client queries existing printer from hosted machine. The code is from Forms\SRSPrintDestinationSettingsForm\printerMap() at line 30 which is a call to external DLL to query WMI for all printers in the machine. The exception is thrown so the rest of the code thereafter is not executed resulting in the dialog not shown.

You could use try/catch block like below at Forms\SRSPrintDestinationSettingsForm\printerMap() at line 30 to log more information of the exception thrown from the CLR call with variable of System.Exception ex declared.



The exception is “not found” that indicates WMI library could not revert back with printer list. What AX does is to send "Select * from Win32_Printer" to WMI so wbemtest could also be used to detected the error or to verify using the steps in below.
  1. Start->Run->Wbemtest.exe
  2. Click “Connect…” on the Windows Management Instrumentation Tester dialog box
  3. Click “Connect” on the Connect dialog box
  4. Click “Query” button and then type in “select * from Win32_Printer” and click Apply
  5. Send us the Query Result dialog box with printer lists or if it errors out


I eventually works with an window support engineer to rebuild WMI that You may want to do the same by discussing with your system admin. and/or window support engineer. Below is the step we use to rebuild WMI which addresses the print destination setting not shown error for your information.
  1. Change startup type to Window Management Instrumentation (WMI) Service to disabled
  2. Stop the WMI Service; you may need to stop IP Helper Service first or other dependent services before it allows you to stop WMI Service
  3. Make a copy of the repository folder: C:\WINDOWS\system32\wbem\Repository
  4. run from elevated command prompt:
Winmgmt /salvagerepository






Источник: http://blogs.msdn.com/b/axsupport/ar...wmi-error.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Opening a Report on AX 2012 raises infolog error: The default Report Server Configuration ID could not be found in the SRSServers table. Blog bot DAX Blogs 0 02.12.2011 00:13
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35
при построении перекрёстных ссылок выдаётся сообщение об ошибках mmmax DAX: Программирование 10 21.01.2005 12:42

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 08:53.