Home » Visual StudioRSS

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

Hi,

When I deploy the asp.net application on 64 bit OS mechine I am getting the following error.

The same application is running properly in 32 bit mechine.

Error :

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.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
   System.Reflection.Assembly.Load(String assemblyString) +25
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3487305
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +347
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
   System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448

[HttpException (0x80004005): The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456

[HttpException (0x80004005): The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3435007
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +252

Any help would be appreciated.

Regards,

Deepak


 

7 Answers Found

 

Answer 1

You may have a dependency on an assembly  that only exists for 32-bit or hasn't been properly  installed in the GAC on your 64-bit machine.

-josh

 

Answer 2

Hi, a Visual Basic 2005 project was saved on a USB memory. Then it was copied to the hard disk. When trying to open the project from the hard disk, it is not possible to load some forms and this is the message that appears:

Errores al cargar el diseñador. Los errores se citan a continuación. Algunos errores se pueden corregir volviendo a generar el proyecto, otros puede que requieran cambios en el código.

The specified module  could not be found. (Excepción de HRESULT: 0x8007007E)
Ocultar    

en System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
en System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
en System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
en System.Windows.Forms.AxHost.CreateInstance()
en System.Windows.Forms.AxHost.GetOcxCreate()
en System.Windows.Forms.AxHost.set_Site(ISite value)
en System.ComponentModel.Container.Add(IComponent component, String name)
en System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
en System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
en System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
en System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
en System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
en System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
en System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
en System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
en System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
en System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
en System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

The specified module could not be found. (Excepción de HRESULT: 0x8007007E)
Ocultar    

en System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
en System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
en System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
en System.Windows.Forms.AxHost.CreateInstance()
en System.Windows.Forms.AxHost.GetOcxCreate()
en System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
en System.Windows.Forms.AxHost.CreateHandle()
en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
en System.Windows.Forms.Control.CreateControl()
en System.Windows.Forms.Control.ControlCollection.Add(Control value)
en System.Windows.Forms.Form.ControlCollection.Add(Control value)
en System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)

When introducing again the USB memory, it's possible to work again from the hard disk, but when trying to remove the USB memory, it's not possible until you close the Visual Basic project because it says that the storage device is being used. So, it's possible to work from the hard disk only when the USB memory is inside, even when the whole project was copied and pasted from the USB to the hard disk. How can you make a project created in a USB memory to work independently on your hard disk without the necessity or dependency on the USB memory? Please help and write to webmaster@jaimemontoya.com is you get to find a solution. Bye.
 

Answer 3

Does anybody know the solution?

 

Answer 4

This occurs when a dll dependancy is missing.  To solve the problem, our build guy had to remove all the dlls from the website and rebuild by putting them back one by one until the problem dll was found.  The problem dll used external libraries that did not have all supporting dlls in the bin dir.

Hope this helps.

 

Answer 5

Excellent Answer...
 

Answer 6

Awesome! I got it resolved. excellent answer....
 

Answer 7

hi, can please tesll me which was that dll missing?

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter