User (Legacy) Posted June 19, 2002 Report Share Posted June 19, 2002 I'm going to want to deploy my application to my users over an intranet using the following method in a client stub executable (this method has been demonstated on the MSDN website as well as VBITS) I've placed a Chart control on a form and compiled it into a dll assembly (main.dll). Copy both main.dll and chartfx.lite.dll to a directory under IIS. My client side executable has the following code: Shared Sub Main() Try Dim frmAsm As [Assembly] = [Assembly].LoadFrom("http://localhost/Assemblies/Test.dll") Dim frmType As Type = frmAsm.GetType("Test.Main") Dim frmObj As Object frmObj = Activator.CreateInstance(frmType) Dim frmMain As Form = CType(frmObj, Form) frmMain.ShowDialog() Catch e As Exception Dim s As New StringBuilder("Error occured:") s.Append(vbCrLf) s.Append(vbCrLf) s.Append(e.InnerException.GetType) s.Append(e.Message) s.Append(vbCrLf) s.Append(vbCrLf) s.Append(e.GetType) s.Append(e.Message) MsgBox(s.ToString, MsgBoxStyle.Critical Or MsgBoxStyle.OKOnly, "Magnet") End Try End Sub I'm recieving a security exception. Can you let me know what the issue might be. This method works properly without the viewer control on the form as well as with other .NET controls shipping with VS.NET. Craig Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.