Deployment Package

  • Thread starter Thread starter Brian P. Hammer
  • Start date Start date
B

Brian P. Hammer

Not a forms questions but I always get good responses here in this NG...

I have created a setup package. In this package, it detects my dependents. Some of these are dll files for textbox validation and stuff. I created another folder under the application folder called support files. I install these files to this folder but when I run the program after the successful setup, I get an error saying the file is not found. If I go back and install them into the root application folder, everything is ok. I have made sure each of the forms has an imports. How can I install these dependencies to another folder outside of the root folder?

Thanks,
 
The reason the files are not found is related to the "binding" rules of the
..NET Frameworks. In general, the .NET Frameworks runtime looks for
dependant assemblies in the GAC (Global Assembly Cache) and the directory
of the executing assembly.

However, if you create an app.config file (that' the name in the project,
when it's buit it's acutally yourexename.exe.config) you can make entries
to specify where to look for the files. For example:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="support files"/>
</assemblyBinding>
</runtime>
</configuration>

More info is at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/ht
ml/gngrfprobing.asp


---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Not a forms questions but I always get good responses here in this NG...
I have created a setup package. In this package, it detects my
dependents. Some of these are dll files for textbox validation and stuff.
I created another folder under the application folder called support files.
I install these files to this folder but when I run the program after the
successful setup, I get an error saying the file is not found. If I go
back and install them into the root application folder, everything is ok.
I have made sure each of the forms has an imports. How can I install these
dependencies to another folder outside of the root folder?
 
Back
Top