So from what I can gather online, to be able to save items to a TFS project, all you need to do is reference Microsoft.TeamFoundation.Client
and Microsoft.TeamFoundation.WorkItemTracking.Client
.
So, I run my code and have those files copy to my bin (because you have to get them from the Visual Studio SDK and reference them "externally" by browsing to the DLL). When the program runs, it also copies WITDataStore.dll to my bin as well (which is in the same location as the two dll's above). However, when the site loads, I get the following IIS error:
Could not load file or assembly 'file:///C:\SourceControl\pfSheets\pfSheetsOnline\bin\Microsoft.WITDataStore.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'file:///C:\SourceControl\pfSheets\pfSheetsOnline\bin\Microsoft.WITDataStore.dll' or one of its dependencies. The module was expected to contain an assembly manifest. === Pre-bind state information === LOG: Where-ref bind. Location = C:\SourceControl\pfSheets\pfSheetsOnline\bin\Microsoft.WITDataStore.dll LOG: Appbase = file:///C:/SourceControl/pfSheets/pfSheetsOnline/ LOG: Initial PrivatePath = C:\SourceControl\pfSheets\pfSheetsOnline\bin
Calling assembly : (Unknown).
LOG: This bind starts in LoadFrom load context. WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load(). LOG: Using application configuration file: C:\SourceControl\pfSheets\pfSheetsOnline\web.config LOG: Using host configuration file: C:\Users\rburke\Documents\IISExpress\config\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Attempting download of new URL file:///C:/SourceControl/pfSheets/pfSheetsOnline/bin/Microsoft.WITDataStore.dll. ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.
Does anyone have some ideas? Obviously, there must be more to this than I can find online, but I am not understanding what I need to provide to get this to work. WITDataStore.dll is definitely in the bin folder.
Thanks for any help.