Heya, We're having trouble migrating some unit tests from the existing TFS2005 build environment to the new TFS2008 environment. The tests in question all rely on reading a file from disk which is deployed using the DeploymentItemAttribute, e.g. wse3policycache.config. The errors raised are like this:
Test method Centricom.POLi.TestAssembly0.DummyTests.DansDummyTest threw exception: System.FormatException: Failed parsing the policy document. ---> System.IO.FileNotFoundException: Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\wse3policyCache.config'.. So as you can see it is trying to read that file from the wrong folder, in this case it looks like the folder that the test host is run from. The file in question is actually deployed to the test result out folder as expected: [cid:[email protected]] Other tests use the DeploymentItemAttribute to deploy Excel files for data-driven tests and they are working fine, indicating the issue seems to be isolated to when either WSE is looking for the policy cache file, or when using Assembly.Load() to load a file from the active folder (as some other tests that are failing are doing). This all works fine on the current TFS2005 build server and when run locally in VS2008. Ideas? Regards, Damian Edwards Readify | Senior Consultant Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia M: 0448 545 868 | E: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> | C: [EMAIL PROTECTED]<sip:[EMAIL PROTECTED]> | W: www.readify.net<http://www.readify.net/> ________________________________ The content of this e-mail, including any attachments is a confidential communication between Readify Pty Ltd and the intended addressee and is for the sole use of that intended addressee. If you are not the intended addressee, any use, interference with, disclosure or copying of this material is unauthorized and prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net
<<inline: image001.png>>
