Can Run Application Outside of Development Folder

  • Thread starter Thread starter Tony Van
  • Start date Start date
T

Tony Van

I rewrote an existing VB6 app in .NET as a learning tool.
Works good.

The problem is, it won't run in any folder except the folder
that it was build in. I get an unhanded exception error
telling me it couldn't load a form because it couldn't find
a control that I used.

The control is a custom control I wrote as another solution
as made reference to in my app's solution. (It appears in
the toolbox).

This behavior is new. I was able to get the app to run
elsewhere before, but something changed

Any ideas? Thanks ....

Tony
 
If your referenced assembly has a version of 1.0.* in assemblyinfo (the
default), its version will change at every build. Since your app is bound to
that referenced assembly at build time it will need that exact version at
run time. You would not be able to rebuild just the control and drop it next
to an older version of your app in some other location or system.
 
Back
Top