Показать сообщение отдельно
Старый 18.01.2008, 16:30   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axStart: Test script for your .Net Connector
Источник: http://axstart.spaces.live.com/Blog/...C0A0!243.entry
==============

Her is a test script So you can test if the connector is working in Sharepoint.
 
static void Main(string[] args)
        {
            System.Net.NetworkCredential proxyaccount = new System.Net.NetworkCredential("administrator", "
pass@word1");
         
            Axapta a = new Axapta();
            try
            {
                a.LogonAs("administrator", "DynamicsAX0", proxyaccount, "", "", "", "");
                System.Console.WriteLine("logon succeded, press any key to continue");
                System.Console.ReadKey();
                a.Logoff();
            }
            catch(Exception ex)
            {
                System.Console.WriteLine(ex.ToString());
                System.Console.WriteLine("logon failed, press any key to continue");
                System.Console.ReadKey();
            }
        }

 


Источник: http://axstart.spaces.live.com/Blog/...C0A0!243.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.