can't reserve an URL programatically?

i'm trying to reserve an url using your sample code

    if not Config.IsUrlReserved('http://localhost:2001/tms/business/'then


but it give me error :

HTTP Server API error

the parameter Is incorrect

i can reserve the same url from command line tool netsh
netsh http add urlacl url=http://localhost:2001/tms/business/ user=Everyone
what is the problem? i run the application with
administrative rights

have you tried using "http://+:2001/tms/business/" instead of "http://localhost:2001/tms/business/"?

yes, the same error

What OS do you use?

windows 7 ultimate 64bit

it is reserved when i add user=everyone to an URL
Config.ReserveUrl('http://+:2001/tms/business/  user=Everyone');
thanks for your interest

This should be fixed now