assembly reference problem

B

Brian Henry

My project references Microsoft.MSHTML.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.FileNotFoundException: Could not load file or assembly
'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system
cannot find the file specified. File name: 'Microsoft.mshtml,
Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' "

now, when i looked in my installer project there is no dependencies listed
as microsoft.mshtml 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!
 
M

Michel van den Berg

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
 
B

Brian Henry

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
 
M

Michel van den Berg

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_piaredist.exe
 
B

Brian Henry

no luck

Michel van den Berg said:
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_piaredist.exe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top