Condividi tramite


Support Tip: BHOLD–Attestation Portal stops working

PROBLEM SCENARIO DESCRIPTION

In rare cases, the BHOLD Attestation portal fails to render. In the logs, you see something about unable to load file. From research, there is a problem with how ASP.NET manages the files it generates in C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\bhold_attestation

Attestation log:

<Data>Could not load file or assembly 'App_Web_b2ggad-k, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.</Data>
<Data>http://adtknxfimsync:5151/BHOLD/Attestation/DataService.svc/js</Data>
<Data>/BHOLD/Attestation/DataService.svc/js</Data>
<Data>fe80::212f:11c:7bc5:936d%11</Data>

Event Log:

WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/6322590
Exception: System.ServiceModel.ServiceActivationException: The service '/BHOLD/Attestation/DataService.svc' cannot be activated due to an exception during compilation. The exception message is: Could not load file or assembly 'App_Web_rzpqpjlo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.. ---> System.IO.FileNotFoundException: Could not load file or assembly 'App_Web_rzpqpjlo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'App_Web_rzpqpjlo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Windows\SysWOW64\inetsrv\w3wp.exe
--- A detailed error log follows.

RESOLUTION STEPS

In the file “\BHOLD\Attestation\Web\web.config”  find the line <compilation> and change it to

<compilation debug="false" batch="false" >