Reputation: 147
So the full error that I get is:
Exception while attempting to inspect or instantiate type Microsoft.TeamFoundation.Framework.Server.WindowsProvider in assembly C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\tfs\96d93be0\609f57b6\assembly\dl3\71c3ceb4\00f38a60_8f06cb01\Microsoft.TeamFoundation.Framework.Server.DLL: No parameterless constructor defined for this object.
and
Exception while attempting to inspect or instantiate type Microsoft.TeamFoundation.Framework.Server.TfsSyncAgent in assembly C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\tfs\96d93be0\609f57b6\assembly\dl3\71c3ceb4\00f38a60_8f06cb01\Microsoft.TeamFoundation.Framework.Server.DLL: No parameterless constructor defined for this object.
Both are very similar
There are two main points to this:
1)Exception while attempting to inspect or instantiate type Microsoft.TeamFoundation.Framework.Server.WindowsProvider
2)Microsoft.TeamFoundation.Framework.Server.DLL: No parameterless constructor defined for this obj
I am making a server side event handler for tfs and I keep getting this error when i check in the item This is the tutorial i am following. Anyone know how to fix this problem?
Note: I did NOT have the folder "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\tfs\ " for some odd reason and had to create the directory and put the dll in it. That did not fix the problem either.
Upvotes: 1
Views: 140
Reputation: 1051
The Directory C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
is a directory used by IIS for Web Applications like TFS. Copies of the dlls of the web app will be deployed there. So when an exception is thrown it may happen, that you get this directory as the source of the problem instead of the real TFS-Directory.
Your problems seems to be, that you do not have a parameterless constructor in your ISubscriber. But a parameterless constructor is required!
Upvotes: 1
Reputation: 161773
No, you cannot add code to someone else's code.
What are you trying to accomplish? There's probably another way to do it.
Upvotes: 0