Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    216

    TeamCity Deploy Website 'SOLVED'

    Ok so I finished all the videos up to upgrading photon part 1 which I haven't done.
    So I am trying to deploy the website and changed the settings in the teamcity MSbuild step to MSbuild version: MS build tools 2015 and MSbuild Tools version 14.0 this works on all the other builds but not the website.

    I get the following error.
    [Exec] EXEC (3/11/2017 3:17:50 AM) An error occurred when the request was processed on the remote computer.
    [Exec] EXEC An error occurred when reading the IIS Configuration File 'MACHINE/REDIRECTION'. The identity performing the operation was 'DESKPROD\deploy'.
    [Exec] EXEC Filename: \\?\C:\WINDOWS\system32\inetsrv\config\redirection .config
    [Exec] EXEC Cannot read configuration file due to insufficient permissions

    [Exec] at Microsoft.Web.Deployment.IAppHostConfigManager.Get ConfigFile(String bstrConfigPath)
    [Exec] at Microsoft.Web.Deployment.AdminManagerWrapper.GetCo nfigFile(String path)

    I have gone so far as to set permissions for depoy, teamcity and IIS_IUSRS
    on following config folder and redirection.config file but still not getting a success.
    Last edited by Matroblend; 04-11-2017 at 03:11 PM.
    The only way to fail is to give up or die...

  2. #2
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    1,213
    This link matches your error pretty closely
    http://www.colinsalmcorner.com/post/...-access-denied

    Not just the folder permissions, but also the owner.

  3. #3
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    216
    Quote Originally Posted by Matroblend View Post
    Ok so I finished all the videos up to upgrading photon part 1 which I haven't done.
    So I am trying to deploy the website and changed the settings in the teamcity MSbuild step to MSbuild version: MS build tools 2015 and MSbuild Tools version 14.0 this works on all the other builds but not the website.

    I get the following error.
    [Exec] EXEC (3/11/2017 3:17:50 AM) An error occurred when the request was processed on the remote computer.
    [Exec] EXEC An error occurred when reading the IIS Configuration File 'MACHINE/REDIRECTION'. The identity performing the operation was 'DESKPROD\deploy'.
    [Exec] EXEC Filename: \\?\C:\WINDOWS\system32\inetsrv\config\redirection .config
    [Exec] EXEC Cannot read configuration file due to insufficient permissions

    [Exec] at Microsoft.Web.Deployment.IAppHostConfigManager.Get ConfigFile(String bstrConfigPath)
    [Exec] at Microsoft.Web.Deployment.AdminManagerWrapper.GetCo nfigFile(String path)

    I have gone so far as to set permissions for depoy, teamcity and IIS_IUSRS
    on following config folder and redirection.config file but still not getting a success.
    SOLVED: This error is due to the Web Deployment Agent Service Network Service needing permission.
    The only way to fail is to give up or die...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •