PC Review


Reply
Thread Tools Rate Thread

Auto Deployment

 
 
=?Utf-8?B?RGVuaXNl?=
Guest
Posts: n/a
 
      3rd Feb 2004
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET 2003 auto deployment =?Utf-8?B?YW1iZXI=?= Microsoft Dot NET 0 17th Apr 2006 10:30 PM
XP SP2 Deployment - Auto Shutdown Henners Windows XP Setup 1 11th Apr 2005 06:30 PM
Auto Deployment of .Net 2002 =?Utf-8?B?VGFibw==?= Microsoft Dot NET Framework Forms 0 24th May 2004 09:41 AM
RE: Strong naming and auto deployment =?Utf-8?B?VHJhdmlzIE1lcmtlbA==?= Microsoft Dot NET Framework Forms 2 15th May 2004 01:01 PM
RE: Config file in Auto deployment Ying-Shen Yu[MSFT] Microsoft Dot NET Framework Forms 0 15th May 2004 09:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:38 AM.