Failed to deploy component - “Cannot deserialize the current JSON object …”

旧街凉风 提交于 2019-12-04 05:00:55

Un-installing deployer and installing RM 2015 RTM deployer should fix this issue.

There was an issue in previous RM releases where NewtonSoft.Json dll was not getting upgraded during deployer auto upgrade.

I dont think MS really tested the agent releases with Update 1. I got the same error which is actually just a generic error message when using deployment through HTTP. When I converted it to deployment through UNC paths I found out what the problem was.

As you might know with TFS 2015 you had to name the release components exactly as the artifact names. So artifact 'WebApp X' has a release component called 'WebApp X' in RM with the subpath 'WebApp X'.

In my release configuration I have 3 different components (and artifacts). So on the disk it was:

  • '\build\WebApp X'
  • '\build\WebApp Y'
  • '\build\WebApp Z'

Worked perfectly with 2015 RTM. Now after Update 1 it looks for the following:

  • '\build\WebApp X\WebApp X'
  • '\build\WebApp X\WebApp Y\'
  • '\build'WebApp X\WebApp Z'

I dont know why it does this and how to solve this yet, but I manually altered the folders in the artifacts drop location and RM picked it up fine. So still looking how to fix this that it works correctly.

This json issue occurs if the user under which the RM server app pool is running doesnt have access to the drop location of the component and you have selected 'Through RM server http(s) option'

So as a fix, you can give the app pool user permissions to access the drop.  you can see the correct error in the server logs. "Package location '\share\' does not exists or Application Pool user does not have access"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!