Wednesday, 26 April 2017

FTP file transfer to another server in ax 2009


FTP file transfer to another server in ax 2009


static void uploadTestFile(Args _args)
{
   System.Object ftpo;
   System.Object ftpResponse;
   System.Net.FtpWebRequest request;
   System.IO.StreamReader reader;
   System.IO.Stream requestStream;
   System.Byte[] bytes;
   System.Net.NetworkCredential credential;
   System.String xmlContent;
   System.Text.Encoding utf8;
   System.Net.FtpWebResponse response;
   ;
   // Read file
   reader = new System.IO.StreamReader("E:\\signed file path\Test.xml");
   utf8 = System.Text.Encoding::get_UTF8();
   bytes = utf8.GetBytes( reader.ReadToEnd() );
   reader.Close();
   // little workaround to get around the casting in .NET
   ftpo = System.Net.WebRequest::Create("ftp:/198.168.64.108:24/Imges/Test.xml");
   request = ftpo;

   credential = new System.Net.NetworkCredential("ananymous","P@ssw0rd");
   request.set_Credentials(credential);
   request.set_ContentLength(bytes.get_Length());
   request.set_Method("STOR");
   // "Bypass" a HTTP Proxy (FTP transfer through a proxy causes an exception)
   // request.set_Proxy( System.Net.GlobalProxySelection::GetEmptyWebProxy() );
   requestStream = request.GetRequestStream();
   requestStream.Write(bytes,0,bytes.get_Length());
   requestStream.Close();

   ftpResponse = request.GetResponse();
   response = ftpResponse;
   info(response.get_StatusDescription());
}

Monday, 24 April 2017

C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\AX32.exe

C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\AX32.exe



Hi,

I am getting the following error while run login with different user in ax 2009 Configuration files.






For this resolution:

Add the user( who login you want to access that user)  in user group of your system. Then try to run again login with different your.

Issue resolved for me.

"Unable to connect to remote server" error in AX2012 R2

"Unable to connect to remote server" error in AX2012 R2


Go to Reporting Services Configuration Manager.

1. Change the server account to local account.
2. Remove the SSL if configured.
3. Go to C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config
4. In rsreportserver.config Change the SecureConnectionLevel value to "0"
Restart the sql server reporting service.