Inconsistent Build Response in a typical VB.NET Solution
-
domingo, 27 de noviembre de 2011 18:05
A particular VB.NET project is actually throwing 'Build Failed' But when I try rebuilding again it says 'Rebuild Succeeded'. It keeps alternating this behavior.
Kind of random. Any vbc.exe issue of long locking the PDB or xml files?
- Cambiado Mike FengMicrosoft Contingent Staff, Moderator jueves, 01 de diciembre de 2011 3:51 VB IDE (From:Visual Basic General)
Todas las respuestas
-
domingo, 27 de noviembre de 2011 18:07
When xml documentation is enabled every build is failing because the XML files possibly gets locked by visual studio process (devenv). I haven't seen this happening with C# projects.
occurs in Visual Studio 2010. Any workarounds or fixes?
- Combinado Mike FengMicrosoft Contingent Staff, Moderator lunes, 28 de noviembre de 2011 3:58 keep in the same topic
-
lunes, 28 de noviembre de 2011 3:55Moderador
Hi Deepak,
Welcome to the MSDN Forum.
What error does occur when building failed? Would you like to post the error details here? We need more details to locate where it is wrong.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
lunes, 28 de noviembre de 2011 6:58
When xml documentation is enabled every build is failing because the XML files possibly gets locked by visual studio process (devenv). I haven't seen this happening with C# projects.
occurs in Visual Studio 2010. Any workarounds or fixes?
As it is abnormal what you tell, there should be an abnormal situation which you have created, that does not depend to VB but too the programmer who did it.
So please give relative information, not that you saw it never happen in C#, probably nobody ever saw it happen in a car as well.
Success
Cor -
miércoles, 30 de noviembre de 2011 10:57Even in the same system I could create a C# flavor app which does not succumb to this issue. Let me try and see if I can get the error details in my next post.
-
miércoles, 30 de noviembre de 2011 14:13Here is the error message that comes: C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3061: Unable to delete file "C:\LavanyaDeepak\LD Portal\LD.Interfaces.xml". Access to the path 'C:\LavanyaDeepak\LD Portal\LD.Interfaces.xml' is denied. C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3061: Unable to delete file "C:\LavanyaDeepak\LD Portal\LD.Entities.xml". Access to the path 'C:\LavanyaDeepak\LD Portal\LD.Entities.xml' is denied. Even immediate next rebuild-all it goes off. Again immediate rebuild all gets this error? Why is this alternating behavior only with VBC/VS?
-
jueves, 01 de diciembre de 2011 5:21Moderador
Hi Deepak,
From the error message, it seems that VS have no permission to delete the file when execute "build" command. So please try to move the file from C drive to another drive which is non-system drive, and try again.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
viernes, 02 de diciembre de 2011 20:12Just do another rebuild all and the error does not come. Here is the sequence. 10.05 AM: Rebuild All (Failed) 10.07 AM: Passed 10.09 AM: Failed 10:11 AM: Passed
-
lunes, 05 de diciembre de 2011 12:27Moderador
Hi Deepak,
Where do you refer to the XML file?
From the sequence, it seems that the operation is alternately from success to failure. So please try to manually delete the xml immediately after VS build successfully to check whether it will fail or success. And then find out who locked that file.
When you build successful, do you run your application?
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
lunes, 12 de diciembre de 2011 15:38Moderador
Hi Deepak,
Any updates?
If you need further more assistance, please feel free to let me know.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

