In Visual Basic 2005 I get the following error message:
vbc : error BC31019: Unable to write to output file 'C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\obj\Debug\Gatos.BusinessLogic.Amortization.pdb': System Error &H80070005&
I have to close Visual Basic 2005, delete the folder obj, restart Visual Basic 2005 and recompile, but even that does not work allways. When I have managed to recompile, I start the project in the debugger, stop it at some point, make a modification, compile it, and then I get the same error. So I have to restart again Visual Basic 2004 ... You see that productivity goes towards 0...
I saw with sysinernals/project explorer, that devenv.exe uses the pdb file. My solution holds two projects, Gatos.BusinessLogic.Amortization which is a COM+ component, and Gatos.BusinessLogic.Amortization.Test which is a windows application to test the COM+ component, it therefore has a reference to the COM+ component. If I remove the Test application, compilation goes fine. But for debugging I have to add again the Test application.
Does anybody have an idea what is the problem with the pdb file? Is there a way, to be able to compile and run the solution without having to restart Visual Basic 2005 and without removing and readding the Test project?
Best regards,
Alexandros Pappas
The text from the output window is the following:
------ Build started: Project: Gatos.BusinessLogic.Amortization, Configuration: Debug Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /rootnamespace:Gatos.BusinessLogic.Amortization /doc
bj\Debug\Gatos.BusinessLogic.Amortization.xml /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\"" /reference:..\..\Runtime\Gatos.BusinessEntities.Amortization.dll,..\..\Runtime\Gatos.BusinessLogic.Calendar.dll,..\..\Runtime\Gatos.Common.GlobalConstants.dll,..\..\Runtime\Gatos.Common.SystemEntities.dll,..\..\Runtime\Gatos.DataAccess.Amortization.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /out
bj\Debug\Gatos.BusinessLogic.Amortization.dll /resource
bj\Debug\Gatos.BusinessLogic.Amortization.Resources.resources /target:library AmortizationsControllerR.vb AmortizationsControllerU.vb AmortizationsEngine.vb "My Project\AssemblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb"
vbc : error BC31019: Unable to write to output file 'C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\obj\Debug\Gatos.BusinessLogic.Amortization.pdb': System Error &H80070005&
C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\AmortizationsEngine.vb(68) : warning BC42024: Unused local variable: 'dr2'.
C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\AmortizationsEngine.vb(74) : warning BC42024: Unused local variable: 'postingDate'.
------ Build started: Project: Gatos.BusinessLogic.Amortization.Test, Configuration: Debug Any CPU ------
Gatos.BusinessLogic.Amortization.Test -> C:\GATOS\Source\30 Business\Tests\Gatos.BusinessLogic.Amortization.Test\bin\Debug\Gatos.BusinessLogic.Amortization.Test.exe
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========
vbc : error BC31019: Unable to write to output file 'C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\obj\Debug\Gatos.BusinessLogic.Amortization.pdb': System Error &H80070005&
I have to close Visual Basic 2005, delete the folder obj, restart Visual Basic 2005 and recompile, but even that does not work allways. When I have managed to recompile, I start the project in the debugger, stop it at some point, make a modification, compile it, and then I get the same error. So I have to restart again Visual Basic 2004 ... You see that productivity goes towards 0...
I saw with sysinernals/project explorer, that devenv.exe uses the pdb file. My solution holds two projects, Gatos.BusinessLogic.Amortization which is a COM+ component, and Gatos.BusinessLogic.Amortization.Test which is a windows application to test the COM+ component, it therefore has a reference to the COM+ component. If I remove the Test application, compilation goes fine. But for debugging I have to add again the Test application.
Does anybody have an idea what is the problem with the pdb file? Is there a way, to be able to compile and run the solution without having to restart Visual Basic 2005 and without removing and readding the Test project?
Best regards,
Alexandros Pappas
The text from the output window is the following:
------ Build started: Project: Gatos.BusinessLogic.Amortization, Configuration: Debug Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /rootnamespace:Gatos.BusinessLogic.Amortization /doc
vbc : error BC31019: Unable to write to output file 'C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\obj\Debug\Gatos.BusinessLogic.Amortization.pdb': System Error &H80070005&
C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\AmortizationsEngine.vb(68) : warning BC42024: Unused local variable: 'dr2'.
C:\GATOS\Source\30 Business\Gatos.BusinessLogic.Amortization\AmortizationsEngine.vb(74) : warning BC42024: Unused local variable: 'postingDate'.
------ Build started: Project: Gatos.BusinessLogic.Amortization.Test, Configuration: Debug Any CPU ------
Gatos.BusinessLogic.Amortization.Test -> C:\GATOS\Source\30 Business\Tests\Gatos.BusinessLogic.Amortization.Test\bin\Debug\Gatos.BusinessLogic.Amortization.Test.exe
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========