Groups | Blog | Home
all groups > visual studio .net setup > september 2004 >

visual studio .net setup : Need to add DLL's to project?


Magnus Svedberg
9/25/2004 12:11:31 PM
Hi!

I have just run into a great urgent problem with my VB.Net application. I
have no idea what happend and why it happend. Here goes:

For almost 2 months now I have been developing a VB.Net Window.Forms
application doing a lot of stuff with Datasets and a DB an so on. Every
thing has worked smoothly and I have not been running into any great
problems until now.

Everything worked as normal until 3-4 days ago. I was able to compile a
standalone .EXE of my program and make an installpackage of it. This was
runnable on my and other computers when installed from my package. Suddenly
I got this errormessage and I can't understand what and why it happend.

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
STS Manager.exe
Additional information: File or assembly name AxInterop.MSChart20Lib, or one
of its dependencies, was not found.

Note that this has been working great just a few days earlier.

I can still run my program in Visual Studio in both Debug and Release mode.
The problem is that now I need to put some DLL's in my executables folder to
get it to work. Why? This worked before without having to copy some DLL's to
my executables folder before.

AxInterop.MSChart20Lib.dll
Interop.MSChart20Lib.dll
MSDATASRC.dll
stdole.dll

And if I add the DLL's above it get past that problem then the next problem
occurs.

An unhandled exception of type 'System.InvalidOperationException' occurred
in system.dll
Additional information: The key 'StatusBar1.ShowPanels' does not exist in
the appSettings configuration section.

But it does exist in there. I don't understand.
System.dll? It seems if my whole configuration has gotten mucked up?

I have tried with uninstalling Visual Studio.Net and reinstalling it again
without any luck.

What am I doing wrong here? It worked like a charm a few days ago.

What I was doing when the problem occured was that I was trying to send a
flag with the start of my program like e:\test.exe -f "www.test.com"

Please help me sort out this problem. I have googled around a lot without
luck. Only a few threads over the whole Internet has accessed this problem
but no solution to it.

I have files under sourcecontrol but even if I back to a working spot I get
this problem. Visual Studio or .Net configuration of where to find DLL's?

Looking forward to replies...

Best Regards

Magnus Svedberg

Chua Wen Ching
9/26/2004 6:31:05 AM
Hi Magnus,

Really sorry to hear that. I am not too sure how to fix your problem.

Calling unmanaged dll right. Well i assume 2 places you should take note.

1. AxInterop.MSChart20Lib.dll
and other dll (use dependency walker, to see how that dll links to other
dlls, so yoiu can make sure the other dlls are included as well) can be
either in the directory where you had your exe.

*dependency walker is part of visual studio 6.0 or you can download at
www.dependencywalker.com

2. or it can be part of windows/system32 folder

Next...

An unhandled exception of type 'System.InvalidOperationException' occurred
in system.dll
Additional information: The key 'StatusBar1.ShowPanels' does not exist in
the appSettings configuration section.
--> not too sure, i don't have your dlls, it could be like that

Keep me updated if it still can't solves :)

Cheers.

[quoted text, click to view]
Phil Wilson
9/26/2004 10:40:12 AM
It looks like you added a reference to mschrt20.ocx and Visual Studio
therefore created a COM Interop DLL for you, so yes, you need to install
that Interop DLL. It will be in your project (most likely in the obj
folder), created when you added the reference. It also looks like you're
doing something with Office, and if it's Office 2003, this will tell you
where those other DLLs are supposed to be installed from:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stagsdk/html/stconwhatarepias.asp
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

[quoted text, click to view]

AddThis Social Bookmark Button