Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AsciiIO object not initialized (cannot find filepath) using new file server (Windows Server 2012)

Posted on by Microsoft Employee

Hi Everyone,

We recently updated our fileserver to Windows Server 2012.  This is not the server that AX2009 is running but only hosts files.  We are using the same server name and copied the files over exactly the way they were on the old server and now a few of methods (ran in batch server side) will not initialize the AsciiIO object class.  After looking into it more it seems that it cannot find the filepath on the fileserver (validated with WinAPIserver).  Now the strange thing is i can literally copy and paste the filepath from my code into windows explorer and navigates correctly. (I am using @"\\Server1\K_drive\folder\folder\file.csv", not the mapped drive letter.) I'm assuming there is a setting in windows server 2012 that is blocking the AOS from accessing the folder.  At first i figured it was a firewall issue so i added the AX32Serv.exe file to the expections, but i am still having the same issue! I have no idea what to do next. Can you help?

--Stephen

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: AsciiIO object not initialized (cannot find filepath) using new file server (Windows Server 2012)

    Right now all permissions checked except for 'special permissions' and 'full control' on the entire directory where the file in my code is trying to write to.  I even added the AOS computer to the permissions specifically on the folder that i am trying to read/write to...

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: AsciiIO object not initialized (cannot find filepath) using new file server (Windows Server 2012)

    I would check permissions. That you can read the file doesn't prove that the AOS service account is allowed to do it too.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans