08.12.2006, 19:14 | #1 |
Участник
|
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)
============== Источник: http://fredshen.spaces.live.com/Blog...E4E3!190.entry |
|