PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Auto Deployment

Reply

Auto Deployment

 
Thread Tools Rate Thread
Old 03-02-2004, 08:36 AM   #1
=?Utf-8?B?RGVuaXNl?=
Guest
 
Posts: n/a
Default Auto Deployment


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

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off