Let me give you some background what I'm trying to achieve before I call out the problem.
Use TFS API to Get Services Work Item.
Get all the Open Bugs.
Write in excel all the Open Bugs (from step2).
Send step3 Excel as Attachment through SMTP.
Schedule a Windows Task on Windows Server 2012 and X64 to perform above steps on daily basis.
Problem:
While running step5 I'm not able to write into Excel using OLEDB because of exception"The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine". To resolve this issue, I have build my project Platform Target=X64.
The excel issue is resolved but I'm not able to access TFS API because it is not able to load DLL Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader.
Kaleem.