Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   Security error in loading c++ dll from asp.net (http://www.velocityreviews.com/forums/t770148-security-error-in-loading-c-dll-from-asp-net.html)

Pola 12-14-2009 09:21 AM

Security error in loading c++ dll from asp.net
 
Hello,

We are loading our dll,which is written in c++,
from asp.net.
As a result we are getting the following error msg:
" Microsoft.NET Framework
Application attempted to perform an operation not allowed by the security
policy
To grant this application the required permission,
contact your system administrator, or use the Microsoft .NET
Framework Configuration tool".


If you click Continue, the application will ignore this error and attempt to
continue.
System.Security.Permissions.SecurityPermission.
By the way when we loading this dll from Windows Form project (C#),
all works well.

Please help us to solve this error.
What configuration should we change, to ignore this error msg.

Thanks in advanced,
Pola



Joe Kaplan 12-14-2009 02:35 PM

Re: Security error in loading c++ dll from asp.net
 
You need to make sure your ASP.NET application is configured to run in "full
trust" mode so that you can run unmanaged code. Check the various
documentation references for examples of how to configure that.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"Pola" <Pola@discussions.microsoft.com> wrote in message
news:CAA3E789-EC54-45AA-BC92-4105656F6BE8@microsoft.com...
> Hello,
>
> We are loading our dll,which is written in c++,
> from asp.net.
> As a result we are getting the following error msg:
> " Microsoft.NET Framework
> Application attempted to perform an operation not allowed by the security
> policy
> To grant this application the required permission,
> contact your system administrator, or use the Microsoft .NET
> Framework Configuration tool".
>
>
> If you click Continue, the application will ignore this error and attempt
> to
> continue.
> System.Security.Permissions.SecurityPermission.
> By the way when we loading this dll from Windows Form project (C#),
> all works well.
>
> Please help us to solve this error.
> What configuration should we change, to ignore this error msg.
>
> Thanks in advanced,
> Pola
>
>




All times are GMT. The time now is 05:01 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.