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.
Related
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.
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.
I get this error running a sample asp.net 5 application on ubuntu 14.04LTS.
after a successful dnu restore command, running dnx kestrel command returns the following error: System.TypeLoadException: Could not resolve type with token 0100000f.
I tried different versions of mono still the same error. I noticed also a difference between kestrel versions in my project.lock.json file(could it be it).
on the browser it returned an internal server error!
I can post the file if needed.
appreciate it!
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Root element is missing.
Source Error:
[No relevant source lines]
Source File: D:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config Line: 0
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
How to fix "Root element is missing." when doing a Visual Studio (VS) Build?
Make sure that your web.config isn't empty. It needs a <configuration> element at the root.
I am trying to run a web service build in .Net on IIS 6 server.
But it is giving an Error while starting Web Service
ERROR
Server Error in ' /9448' Application
Configuration Error
Description : "An error occurred during the processing of configuration file required to service this request.Please review the
specific details below and modify your configuration file
appropriately.
Parse Error Message :An error occurred loading the configuration file: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config"
is denied.
Source Error:
[No relevant source lines]
Source File : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config
Line: 0
Version Information : Microsoft.NET Framework Version v2.0.50727.3625; ASP.Net Version : v2.0.50727.3625
The user under which it is running have full Administrator Rights
While it was working fine previously
What could be the problem?