Hi,
If I am getting the right meaning, you were able to make it work outside Kentico
CMS web project, but there are still some issue? If so, in this case I do not think that it has something to do with the CMS and it seems that there are some IIS or other system settings not set correctly.
Best regards,
Juraj Ondrus