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

Hi,

I have recently converted a .net 1.1 web application project into a .net 2.0 web application. It compiles without errors, but when I run it in the browser, I get the following 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)

Can anybody help please




Answer this question

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

  • rtmurray

    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 disenador. Los errores se citan a continuacion. Algunos errores se pueden corregir volviendo a generar el proyecto, otros puede que requieran cambios en el codigo.

    The specified module could not be found. (Excepcion 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. (Excepcion 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 jaimemontoya@gmail.com is you get to find a solution. Bye.

  • Tommmy77

    In the end it wasn't a DLL that was missing.

    It was a .net 1.1 version of a DLL I was using that caused the problem. I replaced this DLL with the latest .Net 2.0 version.


  • arkiboys

    If the problems continues, try putting again the ocx files on C, Windows, system32, if you used ocx.
    Si el problema continua, trata de poner nuevamente los archivos ocx en c, Windows, system32, si usaste ocx.


  • Sammaye

    That's a pretty generic error message for "I tried to load a DLL to execute some code in it but I couldn't find the DLL". The stack trace should give you some idea what DLL that might be. It could be a .NET assembly that you forgot to put in the GAC or it could be a DLL that you P/Invoked...



  • xlordt




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