ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable - directory

I have an asp.net webform project that build on system1 but not on system2 (they both are windows 10 and visual studio 2022 Version 17.4.3) and when I build visual studio show an error in error list window :
"Severity Code Description Project File Line Suppression State
Error Metadata failure while creating assembly -- The file or directory is corrupted and unreadable. Modabber D:\BehsamanCode\Modabber\Modabber.Web\ALINK"
Also it shows this error in the output window :
"ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable"
I searched these errors and I enabled long path on windows10 and uncheck Sign the assembly but not work.
What should we do?

I don't know how but it resolved. I think system2 hard drive has a problem and after win10 repair it itself then restart windows the problem gone and project builded.

Related

Android Studio 4 Build ERROR : Execution failed for task ':app:mergeDebugResources'

Hello this is my first time make android program and found this error but the code not have an error point. the error message is below :
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Failed to transform aapt2-4.1.1-6503028-windows.jar (com.android.tools.build:aapt2:4.1.1-6503028) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for Aapt2Extractor: C:\Users\lenovo.gradle\caches\modules-2\files-2.1\com.android.tools.build\aapt2\4.1.1-6503028\cc838ebadee3649d47e07d029371bc1054e2200d\aapt2-4.1.1-6503028-windows.jar.
> java.io.IOException: Unable to delete directory 'C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
- C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc\aapt2-4.1.1-6503028-windows
can someone tell me how to fix it ?
i had same problem in linux
tried many ways and asked some question.
finally found out there is file missing named aap2 in build-tools
i couldn't find that file to place it in destination so i deleted whole file and re Download it with sdk manager and if it doesn't work too i guess u should try reinstall android studio
yes its not a good answer but it was all experience i had with this error.

Azure Machine Learning Studio Custom Module Upload Error 0114 : An item with the same key has already been added

When trying to upload a custom R module to Azure Machine Learning Studio what causes the following error.
[ModuleOutput]
"ErrorId":"BuildCustomModuleFailed","ErrorCode":"0114","ExceptionType":"ModuleException","Message":"Error 0114: Custom module build failed with error(s): An item with the same key has already been added."}} [ModuleOutput] Error: Error 0114: Custom module build failed with error(s): An item with the same key has already been added.
I have tried renaming the module so a name that does not exists.
The duplicate key exception is a red herring. Build error 0114 is a general error that occurs if there is a system exception while building the custom module. The real issue my module was compressed using the built in compress folder option in the Mac Finder. To fix this compress the file using the command line interface for zip in Terminal in the following very specific manner.
The following example:
cd ScoredDatasetMetadata/
zip ScoredDatasetMetadata *
mv ScoredDatasetMetadata.zip ../
Builds a zip file with the correct file structure.

ASP.NET 5 Error: the verb must be specified by using the -verb argument. Error count=1

I am pretty new to the .net and I had this error while trying to publish my website to file system.
Error: A '-dest' argument must be specified with the 'sync' verb. This error is shown when I try to publish in the default detination
Copying to output path C:\Users\Iulica'sPc\AppData\Local\Temp\PublishTemp\GpsTracking103
Multiple commands defined. Defaulting to web.
Using command 'web' as the entry point for web.config.
Time elapsed 00:02:45.9471627
Publishing with publish method [FileSystem]
Publishing files to C:\Users\Iulica'sPc\Documents\Visual Studio 2015\Projects\GpsTracking\artifacts\bin\GpsTracking\Release\PublishOutput
Executing command ["C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:contentPath='C:\Users\Iulica'sPc\AppData\Local\Temp\PublishTemp\GpsTracking103\' -dest:contentPath='C:\Users\Iulica'sPc\Documents\Visual Studio 2015\Projects\GpsTracking\artifacts\bin\GpsTracking\Release\PublishOutput' -verb:sync -enableRule:DoNotDeleteRule -retryAttempts:2 -disablerule:BackupRule]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : Error: A '-dest' argument must be specified with the 'sync' verb.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : Error count: 1.
I have searched for hours for an answer but nothing solved my problem.
Please help!
I think it's because there is an ' in your path name (or your username actually):
["C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:contentPath='C:\Users\Iulica'sPc\AppData\Local\Temp\PublishTemp\GpsTracking103\' -dest:contentPath='C:\Users\Iulica'sPc\Documents\Visual Studio 2015\Projects\GpsTracking\artifacts\bin\GpsTracking\Release\PublishOutput' -verb:sync -enableRule:DoNotDeleteRule -retryAttempts:2 -disablerule:BackupRule]
Try deploying to a different folder like c:\projects\ ad also the source path could be the issue.
Check the Important things to remember here: https://technet.microsoft.com/en-us/library/dd569005(v=ws.10).aspx
In order for the sync operation to function correctly, the Msdeploy.exe.configsettings file must be the same on the source and destination computers. If you add any rules or custom providers to the Msdeploy.exe.configsettings file, make sure that this configuration file is identical on the source and the destination computers before you perform a synchronization.

Windows Azure and GitHub: build error on web.config

I've created a new ASP.NET MVC 4 project using the HotTowel SPA template. I haven't changed very much as you can see in my GitHub repository. I've set up Windows Azure to take in the changes and deploy to hourlee.azurewebsites.net, but nothing happened.
When I check my dashboard, it seems something went wrong. Windows Azure is complaining about an error in my Web.Release.config file.
More specifically, this is the error message:
D:\home\site\repository\Hourly\Web.Release.config(1,1): error : Data at the root level is invalid. Line 1, position 1. [D:\home\site\repository\Hourly\Hourly.csproj]
Failed exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\Hourly\Hourly.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="C:\DWASFiles\Sites\hourlee\Temp\208c4975-46bc-4f4f-89d8-6ae54a5289d8";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="D:\home\site\repository\.\\"
An error has occurred during web site deployment.
It's repeated again (the entire message is longer).
I haven't changed anything in the web.config files and the whole thing builds and runs locally too.
I've noticed that it works when I remove the transform file (web.Debug.config and web.Release.config).

Compiler Error Message: CS0009 - mscorlib.dll

When I try to run my web application, the following error occurs:
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: CS0009: Metadata file
'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' could not
be opened -- 'File is corrupt.'
It seems to me that the .NET framework 4 installation is corrupt, but I am using Windows 8.1, and I'm not sure how to repair this, as it is integrated into the Windows installation.
I manually copied the corrupted file from a different computer with the same Windows installation. It took some permission changing, but I managed to do it.

Resources