Can't attach files in Work Item.

Hello all!

We have a new machine that holds WIN2K3 Server and SP1 installed on it.
Then, I've installed SQL 2005 September CTP
Then TFS BETA 3

In the Administrator group(on the above machine), I've added myself an a couple of other people/teamates.

Now on our individual machines, we can't attach files to a, for example, BUG Work Item.

When Trying to *save* the Work Item, I get the following error message:
HTTP Status Code : Unauthorized - Unauthorized

I get a different error message if I try the same thing but in a different way...
When clicking on the *All Bugs* and selecting my bug(without double clicking it) and select the *File Attachments* TAB and try to attach a file and save, I get the following error message:
Unable to save all edited documents. 0 saved successfully. 1 could not be saved. Please correct the unsaved work items and try again.

One of the guys here managed to add an attachment and now he can't...for no apparent reason.

I've looked at theTfsWorkItemTrackingAttachmentsTABLE and the attachment is there(from a couple of weeks ago) but no *new* attachments are in.

Is there a particular permission we need to give to that TABLE in order for VSTS to attach files in a BUG, TASK, whatever ?

Wanted to know if anyone else is getting this behavior, keep in mind that we are all part of the Adminstrator Group on the TFS machine.

Thanks in advance!
Sincerely

Vince

[1513 byte] By [Vlince] at [2007-12-17]
# 1
For anyone who cares...

The problem is now fixed!!!

The thing we had to do was to go in Internet Explorer-->Tools--Options-->Connections(TAB)--> LAN Settings...

Then in the Proxy Server group, we had "Use a proxy server..." checked

For some reason, ISA server couldn't authenticate the HTTP handler being sent by VSTS when trying to attach a File to a Work Item.

For now, because will look into this another time, we've unchecked the checkbox and it now works in VSTS.

Perhaps if anyone else is getting strange behavior, although you have Administrator Privilege, you might want to look into ISA Server.

Hope this helps anyone!
Sincerely

Vince

Vlince at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2

Hi,

we received a quite similar error. But we have no proxy in our small workgroup network. We are using Beta 3 Refresh of the Visual Studio Foundation Server/Client (Oct 2005).

I tried to create a new work item of type Bug with an attachment (BMP-Image / Screenshot) and received the error message: HTTP Status Code : Unauthorized - Unauthorized on my attempt to save this item.

After the error, I experienced two possible ways to go ahead:
1) removing the attachment. After that, I was able to save the work item without an error.
2) choosing some report from the Team Foundation Explorer. After that, the whole Visual Studio application stuck and I had to stop the unresponsible application with my Task Manager.

Did someone else experienced such a behavior?

Regards
Axel

AxelWolters at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3
Hi,

it seems there is a problem with the ASP.NET Debugger and Visual Studio Team Explorer. The problem described above appears only if we run a ASP.NET Debugger Session and simultaneously creating some new work items (like a bug report) inside one Visual Studio 2005 instance.

If we separate the two sessions, starting a Visual Studio instance for Team Explorer and a another one for the ASP.NET solution, no problems appear anymore.

Regards,
Axel

AxelW at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4
This was an issue in Work Item Tracking upload code that is now fixed. This happens when there is a long time between adding the file and saving the work item. Some people are able to work around this by going to a different window and running a query. The issue is for sure resolved if you restart VS and try again.

Details on the issue:
We are using HttpWebRequest.Write with AllowWriteStreamBuffering set to false. This streams the file to the server instead of beffering all the file into memory before writing it. This only works if the connection is already established. If you wait too long before saving the work item (and uploading the attachment), the connection with the server is reclaimed from the pool and you get this error. Here is some more info - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetHttpWebRequestClassAllowWriteStreamBufferingTopic.asp

JeffMcKune at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified