I'm trying autodeployment for the first time. I can get a simple application to load, but when I add any 3rd party controls, I get an error. I've tried to research this but I can't find any solution. I don't know much about the gac... is there something more I need to do? Here is the code
Dim currentDomain As AppDomain = AppDomain.CurrentDomai
AddHandler currentDomain.AssemblyResolve, AddressOf MyResolveEventHandle
Dim appAsm As [Assembly] = [Assembly].LoadFrom("http://www.myweb/mydir/HelloWorld.exe"
Dim formType As Type = appAsm.GetType("HelloWorld.frmMain"
Dim obj As Object = Activator.CreateInstance(formType
Dim af As Form = CType(obj, Form
Function MyResolveEventHandler(ByVal sender As Object, ByVal args As ResolveEventArgs) As [Assembly
Dim a() As [Assembly] = AppDomain.CurrentDomain.GetAssemblies(
Dim asm As [Assembly
For Each asm In
If asm.FullName = args.Name The
Return as
End I
Nex
End Functio
Thanks in advance
Denis
|