Answered by:
How to specify IIS settings for TFS build

Question
-
User-376359190 posted
I have the 'Include All IIS settings' checked in the package/publish web tab of a VS 2010 MVC project. The project is in a TFS build server (not local to the development machine). I set up the build to do the deployment via MS Deploy (/p:DeployOnBuild and /p:Configuration). When I queue a build, I keep getting the error below:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (1657): Retrieve local IIS properties from the URI requires Administrator's permission. Please elevate to Administrator before execute the program."
This would seem to indicate that the build/MS deploy is trying to connect to an IIS instance to get the settings. From the error, I assume it is trying to connect to the development box's IIS, which will never work given the network (no open ports on development machines). Is there another way to configure the IIS settings for this situation? In particular, AppPool, Authentication, etc.
Thanks,
ErickMonday, June 21, 2010 10:25 PM
Answers
-
User386755868 posted
hi,
may be this will help you:
http://msdn.microsoft.com/en-us/library/bb668971.aspx
http://www.windows-tech.info/4/317edbe65ece2fd4.php
http://www.tadlockenterprises.com/2009/12/remote-admin-iis-for-tfs-2010-builds/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, June 24, 2010 7:55 AM
All replies
-
User470413944 posted
Hi,
You can right-click on Visual Studio Run AS Administrator ... to run as an administrator.
And you can config remote IIS through IIS manager, for more:
http://msdn.microsoft.com/en-us/library/h17hytcs(VS.80).aspx
I hope this can be helpful for you.
Thursday, June 24, 2010 7:50 AM -
User386755868 posted
hi,
may be this will help you:
http://msdn.microsoft.com/en-us/library/bb668971.aspx
http://www.windows-tech.info/4/317edbe65ece2fd4.php
http://www.tadlockenterprises.com/2009/12/remote-admin-iis-for-tfs-2010-builds/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, June 24, 2010 7:55 AM -
User-376359190 posted
One of those might help, but it looks like I will be doing the IIS configuration manually.
Thanks,
ErickFriday, June 25, 2010 3:29 PM