Why can't i change IIS Directories with NAnt, when running on TeamCity?

327 views Asked by At

I've got a problem with changing the physical path of virtual directories on an IIS, while running on a TeamCity-Agent. I'm changing the Path by using the <mkiisdir /> NAntContrib task. On the command prompt using nant it works just fine and changes the physical path too. Under TeamCity the NAnt log output looks just fine, as if all went right. But when my web application starts, the physical path is still wrong. So I started to use adsutil.vbs provided by IIS to change the physical path. On the command prompt it's working fine, but on TeamCity it does not change the path, although the build log shows that it was changed to the right directory.

I even stopped IIS before changing and started it back after changing the path, but it didn't help either.

I hope you can help me with this really annoying problem.

0

There are 0 answers