If you look at the properties of the file you will see an option called "Copy to Output Directory", if you set this to "Copy always" or "Copy if newer" then the file should be copied into the "Out" directory automatically.
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grant Adkins Sent: Wednesday, 13 December 2006 11:10 AM To: [email protected] Subject: [OzTFS] Unit Test and WSE policy config file problem Hi all I've created a test project to test an assembly that uses WSE 3.0 to talk to a web service. My problem occurs when the assembly tries to set the policy before calling the web method: ws.setpolicy("PolicyName"). The setpolicy method looks in the executing app's app.config for the reference to the wse3policycache.config file and so I thought I could solve the problem by setting up the test project to also have the same WSE policy. Unfortunately, because every time a test is executed in the VS Test Manager a new Out directory is created for that test, the wse3policycache.config file is not copied to the folder and so the file can't be found at runtime. I had thought I could copy the contents of the wse3policycache.config file and simply paste the xml within the microsoft.web.services element in the test app.config file, but it doesn't seem to like that. Can anyone suggest a solution to this problem? Thanks very much Grant Adkins Solutions Architect SecurityMail Pty Ltd 36 Northlink Place, Virginia QLD 4014 t +61 7 3866 8444 f +61 7 3866 8400 e [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> w http://www.securitymail.com.au <http://www.securitymail.com.au/> OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net
