I was getting the same error earlier today.
Solution to my error : Only install the The MOD Files only (do not tick the Asi loader, .Net Scripthook etc)
My install
GTA IV v1.0.7.0
XLiveless (dsound.dll is not needed as Xliveless loads .asi file)
ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.7.0 with C++ Hook version 0.5.1)
Go to " C:Program FilesRockstar Games " and rigth click (Click properties) Make sure it not set to read only and set the Security for the current user to Allow write to file
Done
Hope it helps