COM Calling C# Security Issue

From: Matthew Wieder (Development_at_SatoriGroupInc.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 11:57:41 -0500

We have a C# class which creates a TCP connection to another machine.
We registered that .NET class for COM use, and when we call it via COM
(it happens to be via VBA, but that shouldn't matter) the code fails
when it tries to create the new tcp connection, with a "Request for the
permission of type System.Net.SocketPermission ... failed" message.
Could someone explain what exactly the issue is and how we can solve it?
thanks!



Relevant Pages

  • Re: HttpContext.Current returns null
    ... The .NET class is being accessed by the VB6 class, ... In classic ASP the solution I provided is how you would get the intrinsic objects. ... The Request, Response, etc, etc, objects in ASP are completely different than they are in ASP.NET. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is HTTP Stateless ?
    ... and the main reason for creating a tcp connection upon each request ... and response is for reliability reasons... ... > Yes HTTP is stateless even if it runs on top of TCP. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Access is denied - from .net class not webpage
    ... I am aware that __REQUESTDIGEST is only used for ASPX pages ... ... > SharePoint University ... >> to be able to call the create web code from within a .net class. ... >> from my .net console app since the permission model must already allow ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Is HTTP Stateless ?
    ... and the main reason for creating a tcp connection upon each request ... > and response is for reliability reasons... ... >> Yes HTTP is stateless even if it runs on top of TCP. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SSH tunnelling on port 80, but retrieved date are on another (unsecure) port?
    ... the response to a request is returned along ... the same TCP connection (and hence protected by the same SSH tunnel). ... Richard Silverman ...
    (comp.security.ssh)