Microsoft.mshtml.dll

Dear Experts,

I have a project in vb.net with Microsoft.mshtml.dll as a reference.

I initially built and deployed the project excluding the reference.

It installed and opened with no issue but as soon as the dll was needed I got an error.

When I include the dll in the install there is no problem.

Is there another way to get around this as I don’t think 9mb is appropriate for my application.

Cheers,

Tom
LVL 3
TommyTwoPintsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jojo1771Commented:
Theres no way around not needing the dll unless you can exclude the refrence to it in your app. And whats wrong with  9mbs. Your app will take more than that in ram when it loads the framework on a cold start.
0
TommyTwoPintsAuthor Commented:
So every application of mine that uses this dll will need to include it in the install?

This seems very sloppy and space wasting,
0
Bob LearnedCommented:
Tom,

What .NET version are you using?

Bob
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

TommyTwoPintsAuthor Commented:
Im using Visual Studio .NET 2002
0
Bob LearnedCommented:
In 2003, that DLL is installed with the .NET framework.  Are you saying that with 2002, it is an external dependency?

Bob
0
TommyTwoPintsAuthor Commented:
Hi Bob,

When i add the project output for my application to a setup project, the microsoft.mshtml.dll is added as part of the project output which is  why i could exclude it from the setup.

I think its time to change versions.

Cheers,

Tom
0
Bob LearnedCommented:
Tom,

What I am trying to say is that .NET references to DLLs don't need to be included in the setup project, if they are installed when the .NET framework is installed.

Yes, you need at least 2003.  There were some pretty significant changes.  2005 is a stretch, because so many people complain about how slow the IDE is.  You would have to make that decision on your own for 2005--I personally have qualms with what they have changed, and how much benefit there is in WinForms.  I am really looking forward to ASP.NET 2.0, though, when our development team finally gets to make the switch (later).


Bob
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TommyTwoPintsAuthor Commented:
Bob,

I went to a microsoft Tech-ed last year in singapore and saw 2005 demo'd. I was very impressed but im still at a beginner level so you could say im easily impressed.

The main reason for my issue with this is that if im creating a small application of under 100kb it installs to 9mb which is a significant increase.

Would creating a setup project just for the dll work? This way the dll would only need to be installed once.

Cheers,

Tom
0
Bob LearnedCommented:
Tom,

I feel like my words are going off into the air, and not landing anywhere.  We don't seem to be on the same wavelength here.  

Are you trying to tell me that when the 2002 .NET framework is installed on a computer, that the MSHTML dll is not included?

Bob
0
TommyTwoPintsAuthor Commented:
I have the following framework versions intsalled;

1.0.3705
1.1
1.1 SDK
1.1 Hotfix

I add the .net reference just as you do any other.

This error actually happened on  a friends pc, both my pcs have the above frameworks installed.

I asked what framework they have and the reply was 2.0.

Sorry if you feel i am wasting your time,

Cheers,

Tom
0
Bob LearnedCommented:
Are you saying that the only framework version they have is 2.0?

Bob
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.