Domanda

Sono attualmente in fase di preparazione di un nuovo server per eseguire la nostra piattaforma ASP.Net su. Per la prima volta che sto facendo l'installazione su un Windows a 64 bit (2008 R2), e con IIS7.5 (prima che sempre 7.0). Il nostro sito è costruito in 86, così ho attivato i pool di applicazioni per utilizzare le applicazioni a 32-bit.

Sono bloccato al seguente errore che ottengo quando navigo il sito:

Server Error in '/' Application.



The specified module could not be found. (Exception from HRESULT: 0x8007007E)

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.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

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.


Stack Trace:



[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]

   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0

   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43

   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127

   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142

   System.Reflection.Assembly.Load(String assemblyString) +28

   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46



[ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]

   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613

   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203

   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105

   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178

   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54

   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600

   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125

   System.Web.Compilation.BuildManager.EnsureFirstTimeDirectoryInit(VirtualPath virtualDir) +8803959

   System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode) +219

   System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath) +43

   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +59

   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101

   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126

   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62

   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33

   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37

   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Ho usato fuslogvw per rintracciare eventuali errori vincolanti .Net: 4 assemblee si presentò, ma ottengo lo stesso 4 sul nostro server regolare quando la consultazione del sito per la prima volta. Le assemblee sono CppCodeProvider, VJSharpCodeProvider e due dei nostri * resources file. Ho guardato in questi, e non credo che siano la causa di questo problema, non certo dopo aver scoperto che un ambiente di lavoro ha le stesse assemblee mancanti in fuslogvw.

Il prossimo ho usato Dependency Walker per studiare DLL principale del sito. Nulla sembra mancare, ma ottengo il seguente messaggio:

* Error: Modules with different CPU types were found.

Non credo che questo è un problema anche perché il mio assembly .NET è x86 e tutte le altre dipendenze sono x64.

Quindi voglio davvero sapere cosa manca "modulo" ASP.Net si lamenta.

È stato utile?

Soluzione

Questo risolto il mio problema: ho dovuto mettere il msvcr71.dll in c: \ windows \ system32 e C: \ Windows. \ Syswow64

Altri suggerimenti

Ho risolto il problema impostando Attiva programma a 32 bit a True nella scheda Impostazioni avanzate di App Pool.

Abilita programma a 32 bit http://zizhujy.com/blog/image axd? foto = Enable32Bit.png

dettagli in questo post del blog

Ho avuto un problema simile di recente, quando mettendo un 4.0 beta 1 app su R2, con risultati simili. Mi c'è voluto un bel po 'per scoprire che il problema era che uno degli assembly .NET fondamentali cui si fa riferimento nel progetto (dal GAC) era diventato contrassegnato come CopyLocal vero. Non ho idea di come - io di certo non l'ho fatto deliberatamente e nessun altro ha lavorato su quello. Una volta che ho impostato che indietro (e, credo di aver avuto per eliminare la copia locale) tutto andava bene.

ho trovato la risposta per il mio problema con CppCodeProvider qui: http: //www.experts-exchange. com / Programmazione / Lingue / .NET / .NET_Framework_2.0 / Q_24367712.html (È richiesto login)

Disattiva "Definisci TRACE costante" oppure installare .NET SDK sul computer con il problema.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top