Ask a Question related to ASP.NET Security, Design and Development.
-
GAH #1
Security problem with Managed Code calling Unmanaged Code in a Web Page
Hello,
I have a web page which contains an ActiveX control (unmanaged) and a
Windows Forms User Control (managed). Both reside on a web page and are
glued using VBScript. The user control raises events which are handled by
the VBScript. This is generating the error "Error: Request for the
permission of type System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutural, PubliKeyToken=b77a5c561934e089 failed.
Code: 0"
The error is understandable, because managed code needs permission to call
unmanaged code. So I created a new code group with full trust under Machine
level and set the membership to include everything below [url]http://someserver/[/url]
URL:
caspol -machine -addgroup All_Code -url [url]http://someserver/*[/url] FullTrust -n
MyNewCodeGroup
This didn't seem to help. Turning code access security off entirely solved
the problem. But this is obviously not a safe state to leave the machine
in.
caspol -s off
Am I missing some other permissions? Any suggestion is appreciated.
Thanks!
GAH Guest
-
Invoke from unmanaged code
Hi, It is possible to invoke the web service from Embedded Visual C++? If yes, how? -
ASP.NET App with Unmanaged Code - HELP!
I think the following is a security configuration issue, can someone help? I've been stumped on this for a couple of days now and I'm feeling the... -
Access File Share from ASP.NET using Unmanaged Code
Hi, We have an application that requires appropriate users to run command files on an adhoc basis. We have implmented a library that uses the... -
Calling web service from unmanaged code
I don't know if this works in unmanaged code, but in managed code you can use the URL property of the proxy web service class for this. Alternativly... -
Web Services and Unmanaged Code
Hello, We are new in the .NET environment, and we have a working web app under Windows environment. I'm building a .NET Web Service in C#,...



Reply With Quote

