>It's probably permissions. ASP.NET is bound by your server's (or Application Pools) Identity account. That account may have write permissions, but maybe not create permissions...
>
>The API calls will create the INI file if it doesn't exist, given they have permission to do so, so if they are failing you should trap the GetLastError() API to see what error code comes back.
But, in my case, the Main.ini file was already there. I was just replacing a value in it. However, I will add error trapping by the use of GetLastError().
Thanks