This is a security measure. It is possible that code on the share will be
substituted without you knowing this and then you may run the code under
your account. Therefore the code on a share is running with less
permissions.
There are several ways to grant these permissions. You can disable this
feature completely(not a good idea), you may make shares on local network
as trusted as your local filesystem if you are sure that your LAN is
secure, and you can sign your program so that runtime could reliably
identify it and then grant permissions to you code only.
here is code access security is explained:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconcodeaccess security.asp
here some info on manipulating security policy.
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconadminister ingsecuritypoli cy.asp
Vladimir [VB.NET team]
--------------------
| From: "Ahmet" <ak*********@ho tmail.com>
| Subject: .net security error
| Date: Fri, 3 Oct 2003 14:12:34 +0300
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uJ************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups:
microsoft.publi c.dotnet.langua ges.csharp,micr osoft.public.do tnet.languages. v
b
| NNTP-Posting-Host: 195.155.163.4
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:143382
microsoft.publi c.dotnet.langua ges.csharp:1887 37
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
|
| Hi all;
|
| In my application, in which I am using OracleClient API.
| I have one fucntion call to open database connection on my db library
based
| on OracleClient.
|
| When I run my application on my local computer, it works well
| but when I put them on another directory on network, it starts with lots
of
| security warnings
| first I get this security warning on OracleClient.op en, and then in
several
| places
| because of these security erros, my application does not work properly.
|
| "The program attempted to make an operation that is not allowed in
security
| policy
| ..
| .."
|
| can anybody tell me how to solve this ?
|
|
|
|