Why is the HTML markup now showing up in TFS web access?
-
3. února 2012 17:26
Hi everyone,
I am having a problem with one of the TFS Web Access fields. I was trying to convert the Symptom field from an HTML field to a plaintext field, so I went into the database, Field table, and changed the Type and New Type columns from '576' to '64'. I experienced some problems after I had done this, so I converted it back to '576'. But now, when text is typed into this field, it looks great in VS, but in the web access, all the HTML markup is being displayed along with the text.
Does anybody know why this is happening and, more importantly, how to fix it?
Thanks for your help.
Aaron
Aaron Sellers
Všechny reakce
-
3. února 2012 17:53I just noticed that the HTML formatting toolbar is missing in the Web Access, but not in VS. So, for some reason, it looks like the Web Access thinks the field is NOT an HTML field. Not sure why because in the work item template, I am using the same field in both the Web and the Winforms Layout Targets.
Aaron Sellers- Upravený gasellers 3. února 2012 17:53
-
3. února 2012 18:21
Try resetting app pool of Web Access. Work item types are cached application wide. This might solve your issue.
Regards,
Serkan
-
3. února 2012 23:57
I reset the App Pool, but it didn't fix the problem. :( Thanks anyway.
Aaron Sellers -
6. února 2012 3:39Moderátor
Aaron,
Add my two cents, you could try to rebuild Client Cache:
- Run this command with elevate previlige: witadmin rebuildcache /collection:http://AdventureWorksServer:8080/AWTeam/Collection1
- Reconnect to TFS with web access
Does this fix the problem?
Frankly speaking, modifying the TFS configuration database is way of hack, it is not suggested. Suggested way is to use the TFS Power Tool. You can customize work item template from Visual Studio after you install it.
[Edit] I'm referring to: http://msdn.microsoft.com/en-us/library/dd273722.aspx
Forrest Guo | MSDN Community Support | Feedback to us
- Upravený Forrest GuoMicrosoft Employee, Moderator 6. února 2012 3:41
- Označen jako odpověď Forrest GuoMicrosoft Employee, Moderator 13. února 2012 2:20
- Zrušeno označení jako odpověď gasellers 15. února 2012 17:46
-
10. února 2012 2:23Moderátor
Hi, is there any update? I'll try my best to assist.
Forrest Guo | MSDN Community Support | Feedback to us
-
15. února 2012 17:45
We tried the rebuildcache function of witadmin, but the Symptom field is still acting like a plain text field in webaccess and is still displaying the HTML markup along with the text.
Aaron Sellers
-
16. února 2012 1:31Moderátor
OK. I try to get other people help on this question. Please wait some time.
Still, the idea is to restore the database you have modifed, then modify the workitem field with TFS Power Tool.
Best Regards,
Forrest Guo | MSDN Community Support | Feedback to us
-
16. února 2012 16:30Vlastník
Aaron,
You should delete that field and make it again using the supported tools, rather than editing the SQL back-end tables directly. Please use the Power Tools Process Editor as suggested, or the command line tools to delete and then recreate that field as the desired type. After you've done that, let us know if you need more help.
Trevor Hancock (Microsoft)
Please remember to "Mark As Answer" the replies that help.- Označen jako odpověď Forrest GuoMicrosoft Employee, Moderator 24. února 2012 1:28
- Zrušeno označení jako odpověď gasellers 2. března 2012 17:01
-
22. února 2012 21:06VlastníkAaron, do you still need help with this?
Trevor Hancock (Microsoft)
Please remember to "Mark As Answer" the replies that help. -
28. února 2012 19:30
Thanks, Trevor. I will talk to my boss and see if he thinks this is a viable solution. I believe that by doing this we will lose all the info in that field in all the bugs that we have written up to date and I'm not sure this will work for us. If we do decide to go ahead with this, I'll update this thread.
Thanks again.
Aaron Sellers
-
2. března 2012 17:02
After talking with my boss, we have determined that deleting the field is not a viable option for us. We would lose all the Bug descriptions we have in the database currently. So if anybody else has an idea of how to get this working without having to delete the field, please let me know.
Thanks!
Aaron Sellers
-
8. března 2012 21:53
I found a solution to this problem. I went back into the TFS database to the Fields table and changed the Type and NewType columns to '64' again like I originally did and then immediately switched them back to '576' and then reimported the Bug template. When I opened a Bug again in the Web Access, the Symptom field had finally reverted back to being an HTML field and the HTML markup was now gone. :)Aaron Sellers
- Označen jako odpověď gasellers 8. března 2012 21:53