MegaPowerRockstar Posted January 19, 2016 Report Posted January 19, 2016 Hi, Here's my scenario - I have a common project "My.DataContracts", this project is used by 2 solutions ("Student.Service" and "Emp.Service"). I have added the project to these solutions using add existing project. So i will see this common project in both the solutions. Now i have created 2 separate build definitions for "Student.Service" and "Emp.Service". I have created the builds to be triggered when there is any change on either of the solutions. On build server the source code is dropped on 2 separate folders. My problem is first build gets success and the second one is failing for the below reason: CSC: Unexpected error creating debug information file 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB' -- 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB: The process cannot access the file because it is being used by another process. I tried several things: I tried to give some time and triggered manually the second build, but still the same error. After giving lot of hits, i got it success. But cant use this option always. Could you please help me in resolving the issue.
JasonBourne13 Posted January 19, 2016 Report Posted January 19, 2016 Hi, Here's my scenario - I have a common project "My.DataContracts", this project is used by 2 solutions ("Student.Service" and "Emp.Service"). I have added the project to these solutions using add existing project. So i will see this common project in both the solutions. Now i have created 2 separate build definitions for "Student.Service" and "Emp.Service". I have created the builds to be triggered when there is any change on either of the solutions. On build server the source code is dropped on 2 separate folders. My problem is first build gets success and the second one is failing for the below reason: CSC: Unexpected error creating debug information file 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB' -- 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB: The process cannot access the file because it is being used by another process. I tried several things: I tried to give some time and triggered manually the second build, but still the same error. After giving lot of hits, i got it success. But cant use this option always. Could you please help me in resolving the issue. 2 builds simultaneous ga kick in avtunnaya? Did u exclude all other files in the build (exclude generated debug symbols, etcc) ?
MegaPowerRockstar Posted January 19, 2016 Author Report Posted January 19, 2016 2 builds simultaneous ga kick in avtunnaya? Did u exclude all other files in the build (exclude generated debug symbols, etcc) ? the builds will get triggered one after the other....
JasonBourne13 Posted January 19, 2016 Report Posted January 19, 2016 the builds will get triggered one after the other.... Are u following any build template? What about excluding debug symols, etc? It's clear that the first build is locking that pdb debug file (which is not really needed for publishing) while the 2nd build is waiting for it.
MegaPowerRockstar Posted January 19, 2016 Author Report Posted January 19, 2016 Are u following any build template? What about excluding debug symols, etc? It's clear that the first build is locking that pdb debug file (which is not really needed for publishing) while the 2nd build is waiting for it. in my build definition, i have Default Template been used. where can i look for excluding debug symbols ?
JasonBourne13 Posted January 19, 2016 Report Posted January 19, 2016 in my build definition, i have Default Template been used. where can i look for excluding debug symbols ? Visual Studio lo project properties lo build lo untadi. TFS build definition lo untado ledo gurtu ledu... I don't have it to see n tell u. Try this and test your luck!
MegaPowerRockstar Posted January 19, 2016 Author Report Posted January 19, 2016 Visual Studio lo project properties lo build lo untadi. TFS build definition lo untado ledo gurtu ledu... I don't have it to see n tell u. Try this and test your luck! its not there in Build tab of project properties...
JasonBourne13 Posted January 19, 2016 Report Posted January 19, 2016 its not there in Build tab of project properties... Try Project -> properties -> Package/Publish Web
MegaPowerRockstar Posted January 19, 2016 Author Report Posted January 19, 2016 Try Project -> properties -> Package/Publish Web the common project that i am talking about is Class library project type...... its not web or svc....
galigannarao Posted January 19, 2016 Report Posted January 19, 2016 Delete the pdb files and build the application again. Then start publishing
rikki Posted January 19, 2016 Report Posted January 19, 2016 pdb akarledu kadu why to even psuh them..ignore cheyachu emo kada specific extension files Hi, Here's my scenario - I have a common project "My.DataContracts", this project is used by 2 solutions ("Student.Service" and "Emp.Service"). I have added the project to these solutions using add existing project. So i will see this common project in both the solutions. Now i have created 2 separate build definitions for "Student.Service" and "Emp.Service". I have created the builds to be triggered when there is any change on either of the solutions. On build server the source code is dropped on 2 separate folders. My problem is first build gets success and the second one is failing for the below reason: CSC: Unexpected error creating debug information file 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB' -- 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB: The process cannot access the file because it is being used by another process. I tried several things: I tried to give some time and triggered manually the second build, but still the same error. After giving lot of hits, i got it success. But cant use this option always. Could you please help me in resolving the issue.
MegaPowerRockstar Posted January 19, 2016 Author Report Posted January 19, 2016 Delete the pdb files and build the application again. Then start publishing i am not publishing... this pdb is build part of build on the build server....
MegaPowerRockstar Posted January 20, 2016 Author Report Posted January 20, 2016 Found the solution for my qs: I had to change the configuration setting to Release and it did the magic.
Recommended Posts