RE: managed app using unmanaged dll to access LPT



Hi

In .NET, we have a new feature which is called Code Access Security.
The caspol -s off will turn off the CAS check.
I suggest you do that to try to isolate the problem from CAS check effect
because the .NET code will do CAS check as well as Windows security check,
while the C++ applicaiton will only do Windows Security check.

Based on our test so far, it seems that all is OK on your problem machine.
The C++ code will work, the other .NET application will works.
It seems that the machine worked with the Device, and the .NET framework is
installed properly.

Since we have no access to the lpt.dll's source code, we have no idea
about what it is doing inside.
So far it is really hard to guess what had happened without further
troubleshooting.
For such hang scenario, we need create a hang dump and do further analysis
but this is provided by MSPSS. That is why I suggest you contact MSPSS
directly.
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Any good place to learn SecurityPermissions and Policy?
    ... Here a couple of popular articles on CAS: ... I had looked into Code Access Security, but nothing much on using it. ... Enterprise Architect - had all features ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: .Net Security Policies
    ... that the CAS policy model for .Net is obscure ... executables) from .Net may be grouped together as a code group. ... Microsoft MVP (Windows Security) ...
    (microsoft.public.security)
  • RE: .NET security
    ... Thanks for your response and the further description. ... Access security feature. ... And CAS is a security restriction based on code(unlike the ... Thanks for your continual understanding and patience. ...
    (microsoft.public.dotnet.general)
  • Re: .NET CAS vs OS security
    ... I was catching the SecurityException and the Exception. ... CAS won't come into play if your assembly is installed on the local file ... absolutely no interaction between CAS permissions and OS permissions. ... is layered over the top of the OS security and they are based on two totally ...
    (microsoft.public.dotnet.security)
  • Re: A fundamental question about CAS
    ... VB6 was not a good example (I belive that majority of these programs will ... However no security administrator ... CAS provides unique possibility for administrators to control code rights ...
    (microsoft.public.dotnet.framework.clr)

Quantcast