First, can we figure out if the problem is that the attachment link is being rendered incorrectly or if the attachments page has a bug on it?
Have a look at the address bar in your web browser for the bug you are viewing. For instance http://localhost/aardvark/bug.asp?id=6
. Note the ID, you will need to know this for the next step.
Now, click the add or view attachments link (you will get the error about the bug being closed). Right-click in the attachments pop-up window and get the properties for the page and look at the URL. It should contain the same ID and BugID as the number you gotr from the first step.
For instance in this example the URL should read http://localhost/Aardvark/attachments.a ... id=6&bug=6
If the numbers aren't all 6, then the problem is with bug.asp and if the numbers match up then the problem is with attachments.asp.
Please let me know what you see.