Fix: DummyReportServiceUrl.asmx (2010)

Topics: For TFSAdmin Developers, For TFSAdmin Users
Mar 4, 2011 at 10:12 PM

It looks like some still have issues with DummyURL for Reporting Services and not able to fix it with clearing the cache. If you debug the source and look at the reporting services url, you get this: "http://server:8080/tfs/defaultcollection/ or maybe some other url depending on your configuration and collection, but still, this has nothing to do with your reporting services. 

Maybe this is due to the fact that I'm using TFS2010 with Reporting Services 2010 R2 or something else, but in TFS2010 it is still wrong to query a project collection for a webservice url. Use the configuration server:

ILocationService LocationService = (ILocationService)m_TfsServer.ConfigurationServer.GetService(typeof(ILocationService));              

string url = LocationService.FindServiceDefinitionsByToolType("Reports").Where(c => c.ServiceType == "ReportWebServiceUrl").First().LocationMappings.First().Location;

Then append "ReportService2005.asmx"

Mar 20, 2011 at 2:29 PM

your code would work against a Team Foundation Server 2010 but not against Team Foundation Server 2005/2008. In order to make the code as easy to maintain as possible, we decided to go for a generic implementation for Reporting Services url detection. The root cause of this problem was fixed in Team Foundation Server 2010 Service Pack 1 so I would recommend installing that and letting us know if you are still seeing this problem.

Thanks, Ladislau