HRESULT = 80004005 with Visual Studio 2008 - c#

I'm getting this error when building my project, and I can't fix it.
I have two solutions with the same setup projects referenced in both, and probably thus, the problem.
I googled, I look it up here in StackOverflow, and did all what people said that should be done: removing and readding references, and a long etcetera.
I will paste here my output hoping that someone can throw a little ray of hope on me, please..
thanks a lot everybody in advance.
Best,
Manuel.
------ Build started: Project: CPTUtils, Configuration: Debug Any CPU ------
CPTUtils -> D:\Projects\DuboCalc\DataLayer\CPTUtils\bin\Debug\CPTUtils.dll
------ Build started: Project: CPT.Security, Configuration: Debug Any CPU ------
CPT.Security -> D:\Projects\DuboCalc\DataLayer\Tools\CPT.Security\bin\Debug\CPT.Security.dll
------ Build started: Project: CPTTranslations, Configuration: Debug Any CPU ------
CPTTranslations -> D:\Projects\DuboCalc\DataLayer\CPTTranslations\bin\Debug\CPTTranslations.dll
------ Build started: Project: CPTDB, Configuration: Debug Any CPU ------
CPTDB -> D:\Projects\DuboCalc\DataLayer\CPTDB\bin\Debug\CPTDB.dll
------ Build started: Project: DBManagement, Configuration: Debug Any CPU ------
DBManagement -> D:\Projects\DuboCalc\DataLayer\DBManagement\bin\Debug\DBManagement.dll
------ Build started: Project: DBMGTBaseExtensions, Configuration: Debug Any CPU ------
DBMGTBaseExtensions -> D:\Projects\DuboCalc\DataLayer\DBMGTBaseExtensions\bin\Debug\DBMGTBaseExtensions.dll
------ Build started: Project: Exporter, Configuration: Debug Any CPU ------
Exporter -> D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.dll
copy "D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.dll" "D:\Projects\DuboCalc\DuboCalc2.0\bin\Debug\"
copy "D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.pdb" "D:\Projects\DuboCalc\DuboCalc2.0\bin\Debug\"
1 file(s) copied.
1 file(s) copied.
------ Build started: Project: DBMgtRevisioning, Configuration: Debug Any CPU ------
DBMgtRevisioning -> D:\Projects\DuboCalc\DataLayer\DBMgtRevisioning\bin\Debug\DBMgtRevisioning.dll
------ Build started: Project: NetworkTools, Configuration: Debug Any CPU ------
NetworkTools -> D:\Projects\DuboCalc\DataLayer\Tools\NetworkTools\bin\Debug\NetworkTools.dll
------ Build started: Project: DBInstaller, Configuration: Debug Any CPU ------
DBInstaller -> D:\Projects\DuboCalc\DuboCalc2.0\DBInstaller\bin\Debug\DBInstaller.exe
------ Build started: Project: DCClasses, Configuration: Debug Any CPU ------
DCClasses -> D:\Projects\DuboCalc\DCClasses\DCClasses\bin\Debug\DCClasses.dll
------ Build started: Project: XMLReporter, Configuration: Debug Any CPU ------
Consider app.config remapping of assembly "EnvDTE, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "7.0.3300.0" [] to Version "8.0.0.0" [C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\EnvDTE.dll] to solve conflict and get rid of warning.
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
XMLReporter -> D:\Projects\DuboCalc\DuboCalc2.0\XMLReporter\bin\Debug\XMLReporter.exe
Done building project "XMLReporter.csproj".
------ Build started: Project: DuboCalc2.0, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning : The referenced project '..\..\DCClasses\DCClasses\DCClasses\DCClasses.csproj' does not exist.
Consider app.config remapping of assembly "CPT.Security, Culture=neutral, PublicKeyToken=d593bbb549999bfb" from Version "1.0.4314.17230" [D:\Projects\DataLayer\CPTDB\bin\Debug\CPT.Security.dll] to Version "1.0.4402.23887" [D:\Projects\DuboCalc\DataLayer\Tools\CPT.Security\bin\Debug\CPT.Security.dll] to solve conflict and get rid of warning.
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /main:DuboCalc2._0.Program /reference:D:\Projects\DuboCalc\DataLayer\Tools\CPT.Security\bin\Debug\CPT.Security.dll /reference:D:\Projects\DataLayer\CPTDB\bin\Debug\CPTDB.dll /reference:D:\Projects\DuboCalc\DataLayer\CPTTranslations\bin\Debug\CPTTranslations.dll /reference:D:\Projects\DuboCalc\DataLayer\CPTUtils\bin\Debug\CPTUtils.dll /reference:D:\Projects\DuboCalc\DuboCalc2.0\DBInstaller\bin\Debug\DBInstaller.exe /reference:D:\Projects\DataLayer\DBManagement\bin\Debug\DBManagement.dll /reference:D:\Projects\DuboCalc\DataLayer\DBMGTBaseExtensions\bin\Debug\DBMGTBaseExtensions.dll /reference:D:\Projects\DuboCalc\DataLayer\DBMgtRevisioning\bin\Debug\DBMgtRevisioning.dll /reference:D:\Projects\DuboCalc\DCClasses\DCClasses\bin\Debug\DCClasses.dll /reference:D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.dll /reference:..\dll\Infragistics2.Excel.v9.2.dll /reference:..\dll\Infragistics2.Shared.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinChart.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinDataSource.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinGrid.ExcelExport.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinGrid.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinTabControl.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinTree.v9.2.dll /reference:..\dll\Infragistics2.Win.v9.2.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.VisualBasic.dll /reference:D:\Projects\DuboCalc\DataLayer\Tools\NetworkTools\bin\Debug\NetworkTools.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.configuration.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Runtime.Serialization.Formatters.Soap.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /reference:D:\Projects\DuboCalc\DuboCalc2.0\XMLReporter\bin\Debug\XMLReporter.exe /debug+ /debug:full /filealign:512 /nowin32manifest /optimize- /out:obj\Debug\DuboCalc2.0.exe /resource:obj\Debug\DuboCalc2._0.Forms.AxisAnalysisForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.EnvironmentRatiosForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.frmAbout.resources /resource:obj\Debug\DuboCalc2._0.Forms.frmData.resources /resource:obj\Debug\DuboCalc2._0.Forms.frmSplash.resources /resource:obj\Debug\DuboCalc2._0.Graph.resources /resource:obj\Debug\DuboCalc2._0.Forms.LibrarySelectionForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.LibrarySelectionForProject.resources /resource:obj\Debug\DuboCalc2._0.Forms.LibrarySelectionForUpgrade.resources /resource:obj\Debug\DuboCalc2._0.Forms.MassBalanceForm.resources /resource:obj\Debug\DuboCalc2._0.ProjectForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.ProjectPropertiesForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.ReportSelectionForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.SearchResultsForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.TotalOverviewForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.UpdatePreviewForm.resources /resource:obj\Debug\DuboCalc2._0.SearchForm.resources /resource:obj\Debug\DuboCalc2._0.frm_AddMaterialProcess.resources /resource:obj\Debug\DuboCalc2._0.OptionsForm.resources /resource:obj\Debug\DuboCalc2._0.SimpleSearchForm.resources /resource:obj\Debug\DuboCalc2._0.TypeEditor.ExtraPropertiedForm.resources /resource:obj\Debug\DuboCalc2._0.UILongString.resources /resource:obj\Debug\DuboCalc2._0.Forms.VariantAnalysisForm.resources /resource:obj\Debug\DuboCalc2._0.DuboCalcMain.resources /resource:obj\Debug\DuboCalc2._0.Properties.Resources.resources /resource:obj\Debug\DuboCalc2._0.WinFormStrings.resources /resource:Resources\english.resources,DuboCalc2._0.Resources.english.resources /resource:Resources\DuboCalc2._0.i18n.resources,DuboCalc2._0.Resources.DuboCalc2._0.i18n.resources /resource:Entities.bmp,DuboCalc2._0.Entities.bmp /resource:obj\Debug\DuboCalc2.0.exe.licenses /target:winexe /win32icon:DC.ico DCHelp\HelpManager.cs Forms\AxisAnalysisForm.cs Forms\AxisAnalysisForm.Designer.cs Forms\EnvironmentRatiosForm.cs Forms\EnvironmentRatiosForm.Designer.cs Forms\frmAbout.cs Forms\frmAbout.Designer.cs Forms\frmData.cs Forms\frmData.Designer.cs Forms\frmSplash.cs Forms\frmSplash.Designer.cs Forms\Graph.cs Forms\Graph.Designer.cs Forms\LibrarySelectionForm.cs Forms\LibrarySelectionForm.Designer.cs Forms\LibrarySelectionForProject.cs Forms\LibrarySelectionForProject.Designer.cs Forms\LibrarySelectionForUpgrade.cs Forms\LibrarySelectionForUpgrade.Designer.cs Forms\MassBalanceForm.cs Forms\MassBalanceForm.Designer.cs Forms\ProjectPropertiesForm.cs Forms\ProjectPropertiesForm.Designer.cs Forms\ReportSelectionForm.cs Forms\ReportSelectionForm.Designer.cs Forms\SearchResultsForm.cs Forms\SearchResultsForm.Designer.cs Forms\TotalOverviewForm.cs Forms\TotalOverviewForm.Designer.cs Forms\UpdatePreviewForm.cs Forms\UpdatePreviewForm.Designer.cs HelperClasses\DuboCalcSettings.cs HelperClasses\ExcelExporter.cs HelperClasses\ItnterFaces.cs HelperClasses\JSONConverter.cs HelperClasses\ScreenGraber.cs HelperClasses\Utils.cs LibUpdate\LibraryUpdater.cs LibUpdate\ItemComparator.cs ProjectExplorer\GUIMaterial.cs ProjectExplorer\GUIProcess.cs Forms\SearchForm.cs Forms\SearchForm.Designer.cs Forms\DropDownTreeView.cs Forms\frm_AddMaterialProcess.cs Forms\frm_AddMaterialProcess.Designer.cs Forms\ProjectForm.cs Forms\ProjectForm.Designer.cs TypeEditor\CollectionEditor.cs TypeEditor\ExtraPropertiedForm.cs TypeEditor\ExtraPropertiedForm.Designer.cs TypeEditor\LongStringEditor.cs Forms\OptionsForm.cs Forms\OptionsForm.Designer.cs IconManager.cs Icons.cs ProjectExplorer\GUIItemMaterial.cs ProjectExplorer\GUIItemProcess.cs Forms\SimpleSearchForm.cs Forms\SimpleSearchForm.Designer.cs UILongString.cs WinFormStrings.nl-NL.Designer.cs I18n.cs ProjectExplorer\Element.cs Forms\VariantAnalysisForm.cs Forms\VariantAnalysisForm.Designer.cs ProjectExplorer\GUIItem.cs ProjectExplorer\Project.cs ProjectExplorer\XMLHelper.cs DuboCalcMain.cs DuboCalcMain.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs ProjectExplorer\Variant.cs WinFormStrings.Designer.cs
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\DuboCalcMain.cs(22,7): warning CS0105: The using directive for 'System.Data' appeared previously in this namespace
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\DropDownTreeView.cs(48,15): warning CS0108: 'DuboCalc2._0.DropDownTreeView.Margin' hides inherited member 'System.Windows.Forms.Control.Margin'. Use the new keyword if hiding was intended.
c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll: (Related file)
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\frm_AddMaterialProcess.Designer.cs(166,64): warning CS0108: 'DuboCalc2._0.frm_AddMaterialProcess.Name' hides inherited member 'System.Windows.Forms.Control.Name'. Use the new keyword if hiding was intended.
c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll: (Related file)
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\ProjectForm.cs(2263,42): warning CS0168: The variable 'ex' is declared but never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\DuboCalcMain.cs(289,21): warning CS0162: Unreachable code detected
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\ProjectExplorer\Project.cs(668,20): warning CS0219: The variable 'toc_content' is assigned but its value is never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\I18n.cs(28,30): warning CS0168: The variable 'e' is declared but never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\ProjectForm.cs(49,22): warning CS0414: The field 'DuboCalc2._0.ProjectForm.m_multiselect' is assigned but its value is never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\SearchForm.cs(28,22): warning CS0414: The field 'DuboCalc2._0.SearchForm.rename' is assigned but its value is never used
Compile complete -- 0 errors, 9 warnings
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:nl-NL /out:obj\Debug\nl-NL\DuboCalc2.0.resources.dll /template:obj\Debug\DuboCalc2.0.exe /embed:obj\Debug\DuboCalc2._0.WinFormStrings.nl-NL.resources
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:en-US /out:obj\Debug\en-US\DuboCalc2.0.resources.dll /template:obj\Debug\DuboCalc2.0.exe /embed:Resources\english.en-US.resources,DuboCalc2._0.Resources.english.en-US.resources
DuboCalc2.0 -> D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\bin\Debug\DuboCalc2.0.exe
Done building project "DuboCalc2.0.csproj".
------ Starting pre-build validation for project 'DuboCalcInstallNoSQL' ------
WARNING: File 'jit.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'example1.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'Spacetree.css' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'DuboCalcOptions.xml' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'base.css' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'form.html' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'excanvas.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'jit-yc.js' should not be installed into a User's Profile folder because it may not be available to all users.
ERROR: Invalid or unspecified target for shortcut 'DuboCalc 2.1'
ERROR: An error occurred while validating. HRESULT = '80004005'
------ Pre-build validation for project 'DuboCalcInstallNoSQL' completed ------
------ Build started: Project: DuboCalcInstallNoSQL, Configuration: Debug ------
========== Build: 13 succeeded or up-to-date, 1 failed, 0 skipped ==========

I solved this checking the whole project out again and starting from scratch.. took me a whole day, but I fixed it :)

Related

Service Fabric application upgrade fails. FileLoadException

I'm trying to upgrade the sample app (Voting) from Microsoft using Visual Studio 2019.
During the update I get the following error:
4>FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: One or more errors occurred. --> AggregateException: One or more errors occurred. --> FileLoadException: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
4>Registration of application type failed.
4>At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\PSModule\ServiceFabricSDK\Publish-UpgradedServiceFabricApplication.ps1:258 char:17
4>+ throw "Registration of application type failed."
4>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4> + CategoryInfo : OperationStopped: (Registration of application type failed.:String) [], RuntimeException
4> + FullyQualifiedErrorId : Registration of application type failed.
The full output is:
1>------ Build started: Project: VotingWeb, Configuration: Debug Any CPU ------
2>------ Build started: Project: VotingData, Configuration: Debug Any CPU ------
2>Waiting for output folder cleanup...
1>Waiting for output folder cleanup...
1>Output folder cleanup has been completed.
2>Output folder cleanup has been completed.
1>VotingWeb -> C:\DEV\Teamcity test\service-fabric-sample-app\VotingWeb\bin\Debug\net472\win7-x64\VotingWeb.exe
2>VotingData -> C:\DEV\Teamcity test\service-fabric-sample-app\VotingData\bin\Debug\net472\win7-x64\VotingData.exe
3>------ Build started: Project: Voting, Configuration: Debug x64 ------
4>------ Publish started: Project: Voting, Configuration: Debug x64 ------
4>Started executing script 'GetApplicationExistence'.
4>Finished executing script 'GetApplicationExistence'.
4>Time elapsed: 00:00:02.7466922
-------- Package started: Project: Voting, Configuration: Debug x64 ------
Das Verzeichnis ist nicht leer.
VotingData -> C:\DEV\Teamcity test\service-fabric-sample-app\VotingData\bin\Debug\net472\win7-x64\VotingData.exe
VotingData -> C:\DEV\Teamcity test\service-fabric-sample-app\VotingData\obj\Debug\net472\win7-x64\PubTmp\Out\
VotingWeb -> C:\DEV\Teamcity test\service-fabric-sample-app\VotingWeb\bin\Debug\net472\win7-x64\VotingWeb.exe
VotingWeb -> C:\DEV\Teamcity test\service-fabric-sample-app\VotingWeb\obj\Debug\net472\win7-x64\PubTmp\Out\
Voting -> C:\DEV\Teamcity test\service-fabric-sample-app\Voting\pkg\Debug
-------- Package: Project: Voting succeeded, Time elapsed: 00:00:34.0353563 --------
4>Started executing script 'Deploy-FabricApplication.ps1'.
4>powershell -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command ". 'C:\DEV\Teamcity test\service-fabric-sample-app\Voting\Scripts\Deploy-FabricApplication.ps1' -ApplicationPackagePath 'C:\DEV\Teamcity test\service-fabric-sample-app\Voting\pkg\Debug' -PublishProfileFile 'C:\DEV\Teamcity test\service-fabric-sample-app\Voting\PublishProfiles\Cloud.xml' -DeployOnly:$false -ApplicationParameter:#{} -UnregisterUnusedApplicationVersionsAfterUpgrade $false -OverrideUpgradeBehavior 'None' -OverwriteBehavior 'SameAppTypeAndVersion' -SkipPackageValidation:$false -ErrorAction Stop"
4>Application Type VotingType and Version 1.7.2 was already registered with Cluster, unregistering it...
4>Unregister application type succeeded.
4>Copying application package to image store...
4>Upload to Image Store succeeded
4>Registering application type...
4>Register application type started. Use Get-ServiceFabricApplicationType to query for status.
4>Running Image Builder process ...
4>Downloading application package from 'VotingType' ...
4>Downloaded 101/999 Files (10.1% complete)
4>Downloaded 229/999 Files (22.9% complete)
4>Downloaded 291/999 Files (29.1% complete)
4>Downloaded 363/999 Files (36.3% complete)
4>Downloaded 447/999 Files (44.7% complete)
4>Downloaded 559/999 Files (56.0% complete)
4>Validating package and computing checksums ...
4>FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: One or more errors occurred. --> AggregateException: One or more errors occurred. --> FileLoadException: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
4>Registration of application type failed.
4>At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\PSModule\ServiceFabricSDK\Publish-UpgradedServiceFabricApplication.ps1:258 char:17
4>+ throw "Registration of application type failed."
4>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4> + CategoryInfo : OperationStopped: (Registration of application type failed.:String) [], RuntimeException
4> + FullyQualifiedErrorId : Registration of application type failed.
4>
4>Finished executing script 'Deploy-FabricApplication.ps1'.
4>Time elapsed: 00:01:44.9589058
4>The PowerShell script failed to execute.
========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
How can I find out which file is in use?
And how can I fix it?
Solution:
In case that someone else faces the same issue, the solution for me was to upgrade the application using Powershell and set the CompressPackage parameter in the Copy-ServiceFabricApplicationPackage command.
Helpfull link: https://learn.microsoft.com/de-de/azure/service-fabric/service-fabric-package-apps

aspnet_merge.exe EROR; The relative virtual path 'VE/web_form.aspx' is not allowed here

I am publishing the asp.net web forms application build in asp.net 4.0
The application builds successfully but after build it gives the following error in the Output window
Generating AssemblyInfo.
Setting [assembly: AssemblyFileVersion("1.0.0.0")]
Setting [assembly: AssemblyVersion("1.0.0.0")]
Successfully generated AssemblyInfo file.
Running aspnet_merge.exe.
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\aspnet_merge.exe C:\Users\me\AppData\Local\Temp\WebSitePublish\project_folder-90277028\obj\Debug\AspnetCompileMerge\TempBuildDir -w project_name -copyattrs C:\Users\me\AppData\Local\Temp\WebSitePublish\project_folder-90277028\obj\Debug\AssemblyInfo\AssemblyInfo.dll -a aspnet_merge(0,0): Error occurred: An error occurred when merging assemblies: The relative virtual path 'VE/web_form.aspx' is not allowed here.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Delete the following files from the project's main folder
App_Code.compiled
App_global.asax.compiled
and delete the following files from the "bin" folder
App_global.asax.dll
App_WebReferences.compiled
and the error will be solved. I am still looking for the reason behind this problem

Building C# .NET in command line gives error: Package 'Code Analysis Package' failed to load

I am compile a sample C# .NET project using build.cmd file. The content of the build.cmd is as bellow.
build.cmd
#echo off
setlocal
set devenv="c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com"
del *.log >nul
%devenv% WindowsFormsApplication3.sln /rebuild "Release" /out WindowsFormsApplication3.log
if ERRORLEVEL 1 GOTO failed
findstr /C:"========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========" WindowsFormsApplication3.log >nul
if ERRORLEVEL 1 GOTO failed
echo *** BUILD SUCCESSFUL ***
pause
goto :EOF
:failed
echo.
echo.
echo *** BUILD FAILED ***
pause
Project compiles properly. But when i opened the log file it hassome error
WindowsFormsApplication3.log
1>------ Rebuild All started: Project: WindowsFormsApplication3, Configuration: Release Any CPU ------
Package 'Code Analysis Package' failed to load.
1> WindowsFormsApplication3 -> E:\Bin\junk\WindowsFormsApplication3\WindowsFormsApplication3\bin\Release\WindowsFormsApplication3.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
I don't why i am getting this error (Package 'Code Analysis Package' failed to load) in log file.
I searched online but did not get any help.
how to solve this problem?
Note: WindowsFormsApplication3 is a sample project. i Opened VS2015 and New Project -> Visual C# -> Windows Form Application. I did not change any thing in the project.
Give Microsoft a chance to analyze and fix the problem.
I created a connect issue because the problem occurs on two PCs that both have vanilla VS 2015 installations.
https://connect.microsoft.com/VisualStudio/feedback/details/2423616/package-code-analysis-package-failed-to-load
Within the next few weeks, a guy from Microsoft will probably comment on that. You can followup there.

Strange build error in VS2010/C#. Building projects not completes

In our automatic build process we use visual studio command line (by some reasons we can't use msbuild):
devenv.exe /build ....
it was works correctly for years, but recently we moved to other build machine. Sometime (rare) build failed with stgange error. More precisely - here is no error for some projects. Projects started and nothing more:
....
62>C:\Windows\Microsoft.NET\FramModuleork\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "D:\Autobuild\10.0\dotNET_tc\My.Legacy\bin\x64\Release\My.Legacy.dll", "AMD64". This mismatch may cause runtMye failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
62> My.Srv.User -> D:\GFIN_Autobuild\gfin_10.0\dotNET_tc\My.Srv.User\bin\My.Srv.User.dll
63>------ Build started: Project: My.Srv.Admin, Configuration: Release Any CPU ------
64>------ Build started: Project: My.ExportProcessor, Configuration: Release Any CPU ------
65>------ Build started: Project: My.Srv.MSSQLConnector, Configuration: Release Any CPU ------
66>------ Build started: Project: My.Server.Ita, Configuration: Release Any CPU ------
67>------ Build started: Project: My.Server.Rca, Configuration: Release Any CPU ------
68>------ Build started: Project: My.Server.Module, Configuration: Release Any CPU ------
69>------ Build started: Project: My.Server.DB2, Configuration: Release x64 ------
70>------ Build started: Project: My.Server.Server, Configuration: Release Any CPU ------
71>------ Build started: Project: My.Server.Module.Specific, Configuration: Release Any CPU ------
72>------ Build started: Project: My.Patterns.Data, Configuration: Release x64 ------
73>------ Build started: Project: My.Server.DatabaseWeb, Configuration: Release Any CPU ------
74>------ Build started: Project: My.Srv.Client, Configuration: Release Any CPU ------
========== Build: 59 succeeded, 15 failed, 1 up-to-date, 0 skipped ==========
We change host for out virtual build machine, we reinstall OS on build machine but error still appeared sometime.
Any thoughts?
P.S. we start builds from Jenkins and TeamCity. In both error was reproduced.

VS 2010: Prevent display of Build Summary in the output window

When you build in 'quiet' mode in Visual Studio 2008, the output looks like this:
Compile complete -- 0 errors, 0 warnings
------ Build started: Project: JLTA.JBS.UI.Office.VSTODocument, Configuration: Debug Any CPU ------
------ Build started: Project: JLTA.JBS.UI.Office.VSTOWorkbook, Configuration: Debug Any CPU ------
------ Build started: Project: JLTA.JBS.UI.GeneralLedgerUpdater, Configuration: Debug Any CPU ------
Compile complete -- 0 errors, 0 warnings
========== Build: 86 succeeded or up-to-date, 0 failed, 0 skipped ==========
This is good because the last two lines of the output quickly show me the result of the build (success/fail).
In Visual Studio 2010 Microsoft added a build summary after this. So, when I build in VS 2010 with the same settings (eg. 'quiet' option), I get the following displayed after the stuff that's already shown in VS 2008:
------ Build started: Project: JLTA.JBS.UI.TestBed, Configuration: Debug Any CPU ------
========== Build: 78 succeeded or up-to-date, 0 failed, 0 skipped ==========
Build Summary
-------------
00:06.772 - Success - UI\TestBed\JLTA.JBS.UI.TestBed.csproj
00:05.926 - Success - UI\Main\JLTA.JBS.UI.Main.csproj
... <bunch of lines deleted here>
00:00.035 - Success - Bus\Budget\JLTA.JBS.Bus.Budget.csproj
00:00.032 - Success - Core\JLTA.JBS.Core.csproj
Total build time: 01:06.088
This is a step backwards by MS, because now I have to scroll up in the build output window to see whether the build succeeded or not.
Is there any way of getting this back to the old VS 2008 behaviour?
This output is not from Visual Studio or MSBuild, it is provided by the VSCommands add-in - see this blog entry. You can investigate settings for that add-in and see if this summary can be disabled, or remove the add-in so that you no longer see this summary detail.
For those that are interested, I found this with this Google query.
archive.org 2011/12/30 mokosh.co.uk/post/tag/vscommands/
archive.org 2011/09/16 mokosh.co.uk/post/2010/05/03/vscommands-2-2-0-0-released/
I get it like VS2008 by selecting "Minimal" for project build output verbosity (Tools --> Options --> Projects and Solutions --> Build and Run)

Categories