|
|
#1 |
|
Участник
|
Не подтягивается библиотека System.Printing
Пытаюсь обратиться в Dynamics AX 2009 к библиотеке System.Printing. Не нашла таковой в References, добавляю:
После этого вижу добавленную ссылку: Но в коде Printing у System не найти. Синтаксическая ошибка. X++: System.Printing.PrintServer printServer = new System.Printing.LocalPrintServer(); //error! Есть идеи, кто сталкивался? |
|
|
|
|
#2 |
|
Гость
|
А во всяких Global Assembly Cache регистрировали с помощью gacutil?
https://nasheet.wordpress.com/2012/0...use-dll-in-ax/ Пример из 12 ки но думаю идеи схожи |
|
|
|
|
#3 |
|
Участник
|
Добрый день!
Не воспроизводится. Та ли dll? "..\Program Files\Reference Assemblies\Microsoft\Framework\.." |
|
|
|
|
#4 |
|
Участник
|
Цитата:
Сообщение от axm2013
А во всяких Global Assembly Cache регистрировали с помощью gacutil?
https://nasheet.wordpress.com/2012/0...use-dll-in-ax/ Пример из 12 ки но думаю идеи схожи Цитата:
Assembly exist in the Global Assembly Cache
Follow these steps to add a reference that exists in the Global Assembly Cache: 1. If the DLL has been added to the Global Assembly Cache, you can right-click on the Reference node in the AOT and select Add Reference. //и т.д. Assembly not in Global Assembly Cache If the file does not exist in the Global Assembly Cache follow these steps: 1. Click on the Browse button in the Add Reference form shown above and find the DLL file. // и т.д. Цитата:
Решила проблему так. В файле WebReferenceGenerator.config (путь \Program Files\Microsoft Dynamics AX\50\Server\AxDev\Bin) добавила X++: <compilation>
<assemblies>
<!-- These assemblies are used as references for compiling web service proxies. -->
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Printing, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <!-- -->
<add assembly="Microsoft.Dynamics.IntegrationFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</assemblies>
</compilation> |
|
|
|
| За это сообщение автора поблагодарили: (1). | |
| Теги |
| .net, dll |
|
|
|