assembly reference problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brian Henry

    #1

    assembly reference problem

    My project references Microsoft.MSHTM L.Dll. It works perfectly fine on the
    development machine, but on the release machines that are in production use
    it says when you try to load a form that uses the reference

    "System.IO.File NotFoundExcepti on: Could not load file or assembly
    'Microsoft.msht ml, Version=7.0.330 0.0, Culture=neutral ,
    PublicKeyToken= b03f5f7f11d50a3 a' or one of its dependencies. The system
    cannot find the file specified. File name: 'Microsoft.msht ml,
    Version=7.0.330 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a' "

    now, when i looked in my installer project there is no dependencies listed
    as microsoft.mshtm l or even mshtml, nor can I find a merge module that would
    set up this reference. All deployed machines are showing this problem, but
    all development machines are not..

    they are running .net framework 2.0 and this is a .net 2.0 application
    compiled for 2.0... any idea of what i should do? thanks!


  • Michel van den Berg

    #2
    Re: assembly reference problem

    Dear Brian Henry,

    When you installed your developing environment you also installed this
    assembly. However, as you already said, your installer does not include the
    assembly, therefore it will not be installed on your deployed machine and
    you app will not be able to run correctly. You should add this assembly to
    your installer and I bet the documentation of your installer perfectly
    descibes how to do this. If not, for free to ask how, but then please tell a
    bit more about what you are using for installer etc.

    Kind regards,

    Michel van den Berg

    "Brian Henry" <nospam@nospam. com> schreef in bericht
    news:%23xeVT%23 U6FHA.1276@TK2M SFTNGP09.phx.gb l...[color=blue]
    > My project references Microsoft.MSHTM L.Dll. It works perfectly fine on the
    > development machine, but on the release machines that are in production
    > use it says when you try to load a form that uses the reference
    >
    > "System.IO.File NotFoundExcepti on: Could not load file or assembly
    > 'Microsoft.msht ml, Version=7.0.330 0.0, Culture=neutral ,
    > PublicKeyToken= b03f5f7f11d50a3 a' or one of its dependencies. The system
    > cannot find the file specified. File name: 'Microsoft.msht ml,
    > Version=7.0.330 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a' "
    >
    > now, when i looked in my installer project there is no dependencies listed
    > as microsoft.mshtm l or even mshtml, nor can I find a merge module that
    > would set up this reference. All deployed machines are showing this
    > problem, but all development machines are not..
    >
    > they are running .net framework 2.0 and this is a .net 2.0 application
    > compiled for 2.0... any idea of what i should do? thanks!
    >[/color]


    Comment

    • Brian Henry

      #3
      Re: assembly reference problem

      this "assembly" is actually part of the GAC in .NET, it's not something you
      just install as part of an installer... infact it is installed on the
      production systems if you go into the assembly folder in windows and look,
      but when the apps run it crashes with that error message saying its not
      there, when yet it is


      "Michel van den Berg" <mvb@promontis. nl> wrote in message
      news:uVMUeTV6FH A.3136@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Dear Brian Henry,
      >
      > When you installed your developing environment you also installed this
      > assembly. However, as you already said, your installer does not include
      > the assembly, therefore it will not be installed on your deployed machine
      > and you app will not be able to run correctly. You should add this
      > assembly to your installer and I bet the documentation of your installer
      > perfectly descibes how to do this. If not, for free to ask how, but then
      > please tell a bit more about what you are using for installer etc.
      >
      > Kind regards,
      >
      > Michel van den Berg
      >
      > "Brian Henry" <nospam@nospam. com> schreef in bericht
      > news:%23xeVT%23 U6FHA.1276@TK2M SFTNGP09.phx.gb l...[color=green]
      >> My project references Microsoft.MSHTM L.Dll. It works perfectly fine on
      >> the development machine, but on the release machines that are in
      >> production use it says when you try to load a form that uses the
      >> reference
      >>
      >> "System.IO.File NotFoundExcepti on: Could not load file or assembly
      >> 'Microsoft.msht ml, Version=7.0.330 0.0, Culture=neutral ,
      >> PublicKeyToken= b03f5f7f11d50a3 a' or one of its dependencies. The system
      >> cannot find the file specified. File name: 'Microsoft.msht ml,
      >> Version=7.0.330 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a' "
      >>
      >> now, when i looked in my installer project there is no dependencies
      >> listed as microsoft.mshtm l or even mshtml, nor can I find a merge module
      >> that would set up this reference. All deployed machines are showing this
      >> problem, but all development machines are not..
      >>
      >> they are running .net framework 2.0 and this is a .net 2.0 application
      >> compiled for 2.0... any idea of what i should do? thanks!
      >>[/color]
      >
      >[/color]


      Comment

      • Michel van den Berg

        #4
        Re: assembly reference problem

        Dear Brain Henry,

        Try to install the redistributable of the primary interop assemblies on the
        deployed machine. It is located at C:\Program files\Common Files\Merge
        modules\vs_piar edist.exe


        "Brian Henry" <nospam@nospam. com> schreef in bericht
        news:umP1wuW6FH A.2816@tk2msftn gp13.phx.gbl...[color=blue]
        > this "assembly" is actually part of the GAC in .NET, it's not something
        > you just install as part of an installer... infact it is installed on the
        > production systems if you go into the assembly folder in windows and look,
        > but when the apps run it crashes with that error message saying its not
        > there, when yet it is
        >
        >
        > "Michel van den Berg" <mvb@promontis. nl> wrote in message
        > news:uVMUeTV6FH A.3136@TK2MSFTN GP09.phx.gbl...[color=green]
        >> Dear Brian Henry,
        >>
        >> When you installed your developing environment you also installed this
        >> assembly. However, as you already said, your installer does not include
        >> the assembly, therefore it will not be installed on your deployed machine
        >> and you app will not be able to run correctly. You should add this
        >> assembly to your installer and I bet the documentation of your installer
        >> perfectly descibes how to do this. If not, for free to ask how, but then
        >> please tell a bit more about what you are using for installer etc.
        >>
        >> Kind regards,
        >>
        >> Michel van den Berg
        >>
        >> "Brian Henry" <nospam@nospam. com> schreef in bericht
        >> news:%23xeVT%23 U6FHA.1276@TK2M SFTNGP09.phx.gb l...[color=darkred]
        >>> My project references Microsoft.MSHTM L.Dll. It works perfectly fine on
        >>> the development machine, but on the release machines that are in
        >>> production use it says when you try to load a form that uses the
        >>> reference
        >>>
        >>> "System.IO.File NotFoundExcepti on: Could not load file or assembly
        >>> 'Microsoft.msht ml, Version=7.0.330 0.0, Culture=neutral ,
        >>> PublicKeyToken= b03f5f7f11d50a3 a' or one of its dependencies. The system
        >>> cannot find the file specified. File name: 'Microsoft.msht ml,
        >>> Version=7.0.330 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a' "
        >>>
        >>> now, when i looked in my installer project there is no dependencies
        >>> listed as microsoft.mshtm l or even mshtml, nor can I find a merge module
        >>> that would set up this reference. All deployed machines are showing this
        >>> problem, but all development machines are not..
        >>>
        >>> they are running .net framework 2.0 and this is a .net 2.0 application
        >>> compiled for 2.0... any idea of what i should do? thanks!
        >>>[/color]
        >>
        >>[/color]
        >
        >[/color]


        Comment

        • Brian Henry

          #5
          Re: assembly reference problem

          no luck

          "Michel van den Berg" <mvb@promontis. nl> wrote in message
          news:uSc4F6W6FH A.2384@TK2MSFTN GP12.phx.gbl...[color=blue]
          > Dear Brain Henry,
          >
          > Try to install the redistributable of the primary interop assemblies on
          > the deployed machine. It is located at C:\Program files\Common Files\Merge
          > modules\vs_piar edist.exe
          >
          >
          > "Brian Henry" <nospam@nospam. com> schreef in bericht
          > news:umP1wuW6FH A.2816@tk2msftn gp13.phx.gbl...[color=green]
          >> this "assembly" is actually part of the GAC in .NET, it's not something
          >> you just install as part of an installer... infact it is installed on the
          >> production systems if you go into the assembly folder in windows and
          >> look, but when the apps run it crashes with that error message saying its
          >> not there, when yet it is
          >>
          >>
          >> "Michel van den Berg" <mvb@promontis. nl> wrote in message
          >> news:uVMUeTV6FH A.3136@TK2MSFTN GP09.phx.gbl...[color=darkred]
          >>> Dear Brian Henry,
          >>>
          >>> When you installed your developing environment you also installed this
          >>> assembly. However, as you already said, your installer does not include
          >>> the assembly, therefore it will not be installed on your deployed
          >>> machine and you app will not be able to run correctly. You should add
          >>> this assembly to your installer and I bet the documentation of your
          >>> installer perfectly descibes how to do this. If not, for free to ask
          >>> how, but then please tell a bit more about what you are using for
          >>> installer etc.
          >>>
          >>> Kind regards,
          >>>
          >>> Michel van den Berg
          >>>
          >>> "Brian Henry" <nospam@nospam. com> schreef in bericht
          >>> news:%23xeVT%23 U6FHA.1276@TK2M SFTNGP09.phx.gb l...
          >>>> My project references Microsoft.MSHTM L.Dll. It works perfectly fine on
          >>>> the development machine, but on the release machines that are in
          >>>> production use it says when you try to load a form that uses the
          >>>> reference
          >>>>
          >>>> "System.IO.File NotFoundExcepti on: Could not load file or assembly
          >>>> 'Microsoft.msht ml, Version=7.0.330 0.0, Culture=neutral ,
          >>>> PublicKeyToken= b03f5f7f11d50a3 a' or one of its dependencies. The system
          >>>> cannot find the file specified. File name: 'Microsoft.msht ml,
          >>>> Version=7.0.330 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a' "
          >>>>
          >>>> now, when i looked in my installer project there is no dependencies
          >>>> listed as microsoft.mshtm l or even mshtml, nor can I find a merge
          >>>> module that would set up this reference. All deployed machines are
          >>>> showing this problem, but all development machines are not..
          >>>>
          >>>> they are running .net framework 2.0 and this is a .net 2.0 application
          >>>> compiled for 2.0... any idea of what i should do? thanks!
          >>>>
          >>>
          >>>[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          Working...