Webresource.axd : unable to validate data - asp.net

Since few days we have an error that occurs many times on our server.
It starts throwing this error after we installed .net Framework 4.5.
The exact error is (french server) :
Code de l'événement : 3012
Message d'événement : Une erreur s'est produite lors du traitement d'une requête de ressource de script ou Web. L'identificateur de ressource n'est pas parvenu à effectuer le déchiffrement.
Heure de l'événement : 05/02/2014 09:50:45
Heure de l'événement (UTC) : 05/02/2014 08:50:45
ID d'événement : 710069c1cd8a460aa3286c5cf0d6e9f2
Séquence d'événements : 359
Occurrence de l'événement : 2
Code de détail de l'événement : 0
Informations d'application :
Domaine d'application : /LM/W3SVC/1/ROOT/d-1-130360636646508906
Niveau de confiance : Full
Chemin d'accès virtuel de l'application : /d
Chemin d'accès à l'application : XXX\d\
Nom d'ordinateur : XXX
Informations sur le processus :
ID de processus : 1568
Nom du processus : w3wp.exe
Nom du compte : AUTORITE NT\SERVICE RÉSEAU
Informations sur l'exception :
Type d'exception : HttpException
Message d'exception : Impossible de valider les données.
à System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
à System.Web.UI.Page.DecryptString(String s, Purpose purpose)
à System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
Informations sur la demande :
URL de la demande : https://domain.name:443/d/WebResource.axd?d=AHTFFy3DIo9bsYFwO3I4Y34fpt9AGkUqpBPDo3ne-g4TTzDtAtrcFpAfxSySl8YFQIGABYKiPvpAFLWXz5bjwTziJKdW44FBN98sPgH_vFGkZVoP8ID1rgGf5vJ3t6jZjbIgf5wEue6afCDa3EGJFWIK1OASzWIE8mTxwmeXNwHM9ieKGqYV8c1okl2k0AUC0&t=635264944860000000
Chemin d'accès à la demande : /d/WebResource.axd
Adresse d'hôte de l'utilisateur : XXX
Utilisateur : XXX
Est authentifié : True
Type d'authentification : Forms
Nom du compte de thread : AUTORITE NT\SERVICE RÉSEAU
Informations sur le thread :
ID de thread : 10
Nom du compte de thread : AUTORITE NT\SERVICE RÉSEAU
Emprunte une identité : False
Trace de la pile : à System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
à System.Web.UI.Page.DecryptString(String s, Purpose purpose)
à System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
We know there is some posts on stackoverflow that mention this error but none of them helped us...
This error occurs only on Webresource.axd requests.
We tried many tricks to avoid this error without any success :
Define static keys in the MachineKey node in the Web.config : no success
Use 3DES encryption and Decryption for the MachineKey : no success
Set enableViewStateMac="false" in Web.config : no success
Set EnableCDN="true" on all ScriptManager in the application : no success
Set EnableViewState="false" on all ScriptManager in the application : no success
Disable "Dynamic content compression" and "Static content compression" : no success
We also know there is a KB (http://support.microsoft.com/kb/911722) that seems to be related to this error but the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy is set to 0 on our server so it's not the same problem.
This error is just crazy ! It only happen on one web application on the server (the others app uses Webresources.axd too and doesn't throws any error like this).
Does anyone have been able to understand and resolve this error ????

What is the User-Agent header associated with these requests? Sometimes web indexers (Google, Bing) will cache old WebResource.axd URIs. When the .NET Framework is updated on a server, these URIs change, and the web indexers will eventually stop hitting the old URIs after receiving enough 404s.
It's also possible that these requests represent web browsers that have cached the old URIs. You can look at the If-* request headers to determine this. In this case, the error will go away as clients refresh their pages.
Finally, was this machine up to date with all the latest .NET Framework patches before upgrading to .NET 4.5? If not, this lends weight to the suggestion that this is simply a caching issue and that it will go away as pages are refreshed.

Related

IIS complains about "<%# Page Async="true" %>" once Visual Studio 2019 is installed

We are facing a very odd issue on a old ASP.NET application that has been running fine since years.
Since we have installed Visual Studio 2019, the Web page dos not open properly and the process w3wp.exe crashes with the following errors :
(sorry the system is in french :))
Application : w3wp.exe
Version du Framework : v4.0.30319
Description : le processus a été arrêté en raison d'une exception non gérée.
Informations sur l'exception : System.InvalidOperationException
à System.Web.AspNetSynchronizationContext.OperationStarted()
à System.ServiceModel.Dispatcher.ThreadBehavior.BindCore(System.ServiceModel.Dispatcher.MessageRpc ByRef, Boolean)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(System.ServiceModel.Dispatcher.MessageRpc ByRef)
Informations sur l'exception : System.Runtime.FatalException
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(System.ServiceModel.Dispatcher.MessageRpc ByRef)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(System.ServiceModel.Dispatcher.MessageRpc ByRef)
à System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean)
à System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(System.ServiceModel.Channels.RequestContext, Boolean, System.ServiceModel.OperationContext)
...
Une exception non gérée s'est produite et le processus a été arrêté.
Application ID: /LM/W3SVC/3/ROOT
Process ID: 236
Exception: System.Runtime.FatalException
Message: Impossible de démarrer une opération asynchrone pour le moment. Les opérations asynchrones peuvent être démarrées uniquement depuis un gestionnaire ou un module asynchrone, ou lors de certains événements du cycle de vie de la page. Si cette exception a été levée durant l'exécution d'une page, vérifiez que celle-ci est marquée de la façon suivante : <%# Page Async="true" %>. Cette exception peut aussi indiquer une tentative d'appeler une méthode « async void », qui n'est pas généralement pris en charge au sein de traitement d'une demande ASP.NET. À la place, la méthode asynchrone doit retourner une tâche, et l'appelant doit l'attendre.
StackTrace: à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
...
As soon as I uninstall Visual Studio 2019 the web site is working fine again.
I understand the error and I guess we could rewrite the code to fullfill this "Async" restrictions but that does not explain why the error only occurs on the system when Visual Studio is installed.
Any suggestion to understand the real cause of this issue would be very welcome !!!
Thanks

Cannot render SSRS report when deployed to different IIS website

I'm new to SSRS reports on my job, so really sorry if this is a dumb question, but I'll happily give you all info you need.
The reports are rendered using ASP.NET. When I run the website locally, everything works fine. However when I publish my website to C:/blablabla, it throws an error saying:
Microsoft.Reporting.WinForms.ReportServerException: An error has occurred during report processing. (rsProcessingAborted) ---> Microsoft.Reporting.WinForms.ReportServerException: Cannot create a connection to data source 'TPLite'. (rsErrorOpeningConnection) ---> Microsoft.Reporting.WinForms.ReportServerException: Login failed for user 'DESKSOLUTIONS\DESK-RD-04$'.
--- Einde van intern uitzonderingsstackpad ---
--- Einde van intern uitzonderingsstackpad ---
bij Microsoft.Reporting.WinForms.ServerReportSoapProxy.OnSoapException(SoapException e)
bij Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)
bij Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.Render(String Format, String DeviceInfo, PageCountMode PaginationMode, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
bij Microsoft.Reporting.WinForms.ServerReport.Render(String format, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
bij Microsoft.Reporting.WinForms.Report.Render(String format)
bij SociopackWS.Datalogic.S2020Mgr.MaakStocklijst() in C:\Users\avanhoutte\Documents\Projects\Sociopack Webservice\SociopackWS\SociopackWS\Datalogic\S2020MGR.cs:regel 849
After a bit of debugging I noticed this is the line where it fails:
var bytes = rptViewer.ServerReport.Render("PDF");
The error says something about a data source TPLite, which is used in the report itself. The datasource gets the connectionstring from a parameter, which is in both scenario's passed along.

ASP.NET-Parser error: invalid format of 3d party DLL

I am getting an error which I do not understand - despite the many words being used in the message ;-(
I'm running in german windows, so I have translated some of the msg (in italics after the text)
The file is valid - I have copied the entire directory-structure from a working project which also used that DLL. So it might be that some path-info is wrong somewhere etc.
Serverfehler in der Anwendung '/refdb'.
Parserfehler Parser error
Beschreibung: Beim Verarbeiten einer Resource, die für diese Anforderung erforderlich ist, ist ein Fehler aufgetreten. Überprüfen Sie folgende Fehlerinformationen und ändern Sie die Quelldatei entsprechend.
Parser-Fehlermeldung: Das Format der Datei 'PeterBlum.DES' ist ungültig. Invalid fileformat of PeterBlum.DES
Quellfehler:
Zeile 1: <%# Register tagPrefix="des" assembly="PeterBlum.DES" namespace="PeterBlum.DES" %>
Zeile 2: <%# Register tagPrefix="despval" assembly="PeterBlum.DES.NativeToDES" namespace="PeterBlum.DES.NativeToDES" %>
Zeile 3: <%#Page Language="apl" Debug="true" Inherits="COPA" src="COPA_MS.dws" %>
Quelldatei: C:\Inetpub\wwwroot\ciwrefdb\refdb01.aspx Zeile: 1
Überwachung beim Laden der Assembly: Mit folgenden Informationen kann bestimmt werden, warum die Assembly 'PeterBlum.DES' nicht geladen werden konnte.
=== Pre-bind state information ===
LOG: DisplayName = PeterBlum.DES
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/ciwrefdb
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: PeterBlum.DES
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/refdb/e4095c5f/e6e8b1fa/PeterBlum.DES.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/refdb/e4095c5f/e6e8b1fa/PeterBlum.DES/PeterBlum.DES.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/ciwrefdb/bin/PeterBlum.DES.DLL.
Hmm, after some googling I tried to move a "location path"-entry in web.config right to the start and that fixed this problem. I'm happy that it works and puzzled that this could have caused that...

Error calling a WS-Security + SSL Service with WCF-WSHttp BizTalk 2010 Adapter

I am calling a Web Service using BizTalk Server 2010 and WCF-WSHttp adapter. The Web service is published on HTTPS and the requests must be sent using WS-Security signed with a certificate.
These are the adapter configuration:
General -> Transport -> Type: WCF-WSHttp
WCF-WSHttp Properties:
General -> Adress: https service end point.
General -> Security -> Security Mode: TransportWithMessageCredential
General -> Security -> Message Security -> Message Client Credential type: Certificate
General -> Security -> Message Security -> Algoritm Suite: 256
General -> Security -> Negotiate Service Credential: Yes
General -> Security -> Establish Security Context: Yes
General -> Security -> Client Certificate -> ThumbPrint: Certificate used to sign the message.
I don't put anything in the SOAP Action Header text box of the General Tab.
When I call the service, I obtain the following error message:
An error occurred while processing the message, refer to the details section for more information
Message ID: {A3234833-0453-4DCA-BB9C-7AAA9A865B90}
Instance ID: {54417DE1-3E08-4AB4-8BE2-B5565650ECFF}
Error Description: System.ServiceModel.ProtocolException: El tipo de contenido text/xml;charset=utf-8 del mensaje de respuesta no coincide con el tipo de contenido del enlace (application/soap+xml; charset=utf-8). Si usa un codificador personalizado, asegurese de que el método IsContentTypeSupported se implemente correctamente. Los primeros 553 bytes de la respuesta fueron: '<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
<faultstring>no SOAPAction header!</faultstring>
<detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">zefdesw02</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>'. ---> System.Net.WebException: Error en el servidor remoto: (500) Error interno del servidor.
en System.Net.HttpWebRequest.GetResponse()
en System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- Fin del seguimiento de la pila de la excepción interna ---
Server stack trace:
en System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
en System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
en System.ServiceModel.Security.TlsnegoTokenProvider.OnOpen(TimeSpan timeout)
en System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
en System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan timeout)
en System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)
en System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
en System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
en System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
en System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
en System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
en System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
en System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open()
Exception rethrown at [0]:
en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
en System.ServiceModel.ICommunicationObject.Open()
en Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.GetChannel[TChannel](IBaseMessage bizTalkMessage, ChannelFactory`1& cachedFactory)
en Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)
It seems that the remote server doesn't understand the SOAP client message or the SOAP message is not being well formed (it isn't a SOAP Message or it is not being signned).
Could someone help me?
Based on the translation it looks like the content type being sent is incorrect for what the destination service expects. It looks like you are calling an Apache Axis service so you may need to build an endpoint behavior to handle processing the response from Apache. On other threads, I have heard of people needing to customize what is sent because the destination service is not WCF.

Could not load file or assembly 'app_code' or one of its dependencies when impersonating

I made a web site with VS2010 and publish it on IIS7. It runs fine but it can't connect to an OLAP server so I had to setup impersonation. Impersonation runs fine in debug on my dev machine, but when I publish this on the server, I get this error*:
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'App_Code' or one of its dependencies.
An API call exited abnormally. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))
When I comment the impersonate line in web.config the problem disappears.
Anyone has an idea about what could be causing this?
Thanks in advance,
Guillaume
*This is a translation of the actual message in french:
Server Error in '/' Application.
Impossible de charger le fichier ou l'assembly 'App_Code' ou une de ses dépendances. Un appel API a été interrompu anormalement. (Exception de HRESULT : 0x800300FA (STG_E_ABNORMALAPIEXIT))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'App_Code' ou une de ses dépendances. Un appel API a été interrompu anormalement. (Exception de HRESULT : 0x800300FA (STG_E_ABNORMALAPIEXIT))
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'App_Code' could not be loaded.
=== Informations d'état de liaison préalable ===
JRN : utilisateur = Unknown
JRN : DisplayName = App_Code
(Partial)
AVT : des informations de liaison partielle ont été fournies pour un assembly :
AVT : Nom d'assembly : App_Code | ID de domaine : 2
AVT : une liaison partielle se produit lorsqu'une partie seulement du nom complet de l'assembly est fournie.
AVT : cela peut entraîner le chargement d'un assembly erroné par le classeur.
AVT : il est recommandé de fournir une identité textuelle complètement spécifiée pour l'assembly,
AVT : qui comprend le nom simple, la version, la culture et le jeton de clé publique.
AVT : pour plus d'informations et pour obtenir des solutions à ce problème, consultez le livre blanc à l'adresse suivante http://go.microsoft.com/fwlink/?LinkId=109270.
JRN : Appbase = file:///C:/inetpub/wwwroot/modstats/
JRN : PrivatePath initial = C:\inetpub\wwwroot\modstats\bin
Assembly appelant : (Unknown).
===
JRN : cette liaison démarre dans le contexte de chargement de default.
JRN : utilisation du fichier de configuration de l'application : C:\inetpub\wwwroot\modstats\web.config
JRN : utilisation du fichier de configuration d'hôte : C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
JRN : utilisation du fichier de configuration de l'ordinateur à partir de C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
JRN : stratégie non appliquée à la référence à ce stade (liaison d'assembly privée, personnalisée, partielle ou basée sur l'emplacement).
JRN : tentative de téléchargement de la nouvelle URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/9e702efb/dfa5c6b2/App_Code.DLL.
JRN : tentative de téléchargement de la nouvelle URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/9e702efb/dfa5c6b2/App_Code/App_Code.DLL.
JRN : tentative de téléchargement de la nouvelle URL file:///C:/inetpub/wwwroot/modstats/bin/App_Code.DLL.
JRN : utilisation du fichier de configuration de l'application : C:\inetpub\wwwroot\modstats\web.config
JRN : utilisation du fichier de configuration d'hôte : C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
JRN : utilisation du fichier de configuration de l'ordinateur à partir de C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
JRN : stratégie non appliquée à la référence à ce stade (liaison d'assembly privée, personnalisée, partielle ou basée sur l'emplacement).
ERR : impossible de terminer l'installation de l'assembly (hr = 0x800300fa). Détection terminée.
Stack Trace:
[FileLoadException: Impossible de charger le fichier ou l'assembly 'App_Code' ou une de ses dépendances. Un appel API a été interrompu anormalement. (Exception de HRESULT : 0x800300FA (STG_E_ABNORMALAPIEXIT))]
[FileLoadException: Impossible de charger le fichier ou l'assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ou une de ses dépendances. Un appel API a été interrompu anormalement. (Exception de HRESULT : 0x800300FA (STG_E_ABNORMALAPIEXIT))]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +192
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +123
[ConfigurationErrorsException: Impossible de charger le fichier ou l'assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ou une de ses dépendances. Un appel API a été interrompu anormalement. (Exception de HRESULT : 0x800300FA (STG_E_ABNORMALAPIEXIT))]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11554224
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +485
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +79
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +337
System.Web.Compilation.BuildManager.CallPreStartInitMethods() +280
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1167
[HttpException (0x80004005): Impossible de charger le fichier ou l'assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ou une de ses dépendances. Un appel API a été interrompu anormalement. (Exception de HRESULT : 0x800300FA (STG_E_ABNORMALAPIEXIT))]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11686928
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4863749
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
One of my colleagues found the solution -- I now owe him a beer!
In the IIS7 control panel, to go the Basic Parameters for the web site. Specify the impersonated user.
When reloading the site, it will now complain that it can't access "...\Temporary ASP.NET Files" give read/write access to the impersonated user.
Voilà!
I got the same error message.
In my case, the "Application Pool" on IIS was using a wrong .NET Framework version. So I just changed to ".NET Framework v4.0.30319".
Give write permission (add everyone) to Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

Resources