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...
User (Legacy) Posted June 19, 2002 Author 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 Attachments.zip Link to comment Share on other sites More sharing options...
Software FX Posted June 20, 2002 Report Share Posted June 20, 2002 This doesn't seem to be related to Chart FX, this seems to be related to your .NET security settings, Assembly.LoadFrom has certain permission requirements. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Software FX Posted June 20, 2002 Report Share Posted June 20, 2002 This doesn't seem to be related to Chart FX, this seems to be related to your .NET security settings, Assembly.LoadFrom has certain permission requirements. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 20, 2002 Author Report Share Posted June 20, 2002 Is the chartfx.lite.net assembly signed and marked with the [assembly: AllowPartiallyTrustedCallersAttribute] attribute? Craig "SoftwareFX Support" <support@softwarefx.com> wrote in message news:lbnLDeHGCHA.692@webserver1.softwarefx.com... > This doesn't seem to be related to Chart FX, this seems to be related to > your .NET security settings, Assembly.LoadFrom has certain permission > requirements. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 20, 2002 Author Report Share Posted June 20, 2002 Is the chartfx.lite.net assembly signed and marked with the [assembly: AllowPartiallyTrustedCallersAttribute] attribute? Craig "SoftwareFX Support" <support@softwarefx.com> wrote in message news:lbnLDeHGCHA.692@webserver1.softwarefx.com... > This doesn't seem to be related to Chart FX, this seems to be related to > your .NET security settings, Assembly.LoadFrom has certain permission > requirements. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted June 20, 2002 Report Share Posted June 20, 2002 Not in the current build, I will check if we can include that attribute in the next build. -- Regards JC Software FX Support "Craig Neblett" <craig.neblett@am.joneslanglasalle.com> wrote in message news:m95mXqHGCHA.2868@webserver1.softwarefx.com... > Is the chartfx.lite.net assembly signed and marked with the [assembly: > AllowPartiallyTrustedCallersAttribute] attribute? > > Craig > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:lbnLDeHGCHA.692@webserver1.softwarefx.com... > > This doesn't seem to be related to Chart FX, this seems to be related to > > your .NET security settings, Assembly.LoadFrom has certain permission > > requirements. > > > > -- > > FP > > Software FX, Inc. > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted June 20, 2002 Report Share Posted June 20, 2002 Not in the current build, I will check if we can include that attribute in the next build. -- Regards JC Software FX Support "Craig Neblett" <craig.neblett@am.joneslanglasalle.com> wrote in message news:m95mXqHGCHA.2868@webserver1.softwarefx.com... > Is the chartfx.lite.net assembly signed and marked with the [assembly: > AllowPartiallyTrustedCallersAttribute] attribute? > > Craig > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:lbnLDeHGCHA.692@webserver1.softwarefx.com... > > This doesn't seem to be related to Chart FX, this seems to be related to > > your .NET security settings, Assembly.LoadFrom has certain permission > > requirements. > > > > -- > > FP > > Software FX, Inc. > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.