partial-trust

MySql.Data in GAC, still SecurityException

早过忘川 提交于 2020-01-04 05:41:08
问题 I have a problem with MySql.Data in a partial trusted environment. I've added MySql.Data to the GAC (by installing it with the MSI from the mysql.com site). As you can see here: >gacutil /l | grep -i mysql MySql.Data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL MySql.Data.CF, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c4 4d, processorArchitecture=MSIL MySql.Data.Entity, Version=6.5.4.0, Culture=neutral, PublicKeyToken

Running a .net exe from a network share runs in partial trust when the access to root-shared is not granted to user

耗尽温柔 提交于 2019-12-25 04:01:47
问题 I have a situation where there is common shared network path let's say " \10.x.x.x\CommonShare ". Only administrator has got permission on this path. Now inside the commonshare we create user-specific folders where that particular user will have full access. Like user XYZ will have full access on \10.x.x.x\CommonShare\XYZ Now the user XYZ logs-in in his own box and from there he runs an executable which is available in the shared folder \10.x.x.x\CommonShare\XYZ\testApp.exe Have configured it

Running a .net exe from a network share runs in partial trust when the access to root-shared is not granted to user

假装没事ソ 提交于 2019-12-25 04:01:09
问题 I have a situation where there is common shared network path let's say " \10.x.x.x\CommonShare ". Only administrator has got permission on this path. Now inside the commonshare we create user-specific folders where that particular user will have full access. Like user XYZ will have full access on \10.x.x.x\CommonShare\XYZ Now the user XYZ logs-in in his own box and from there he runs an executable which is available in the shared folder \10.x.x.x\CommonShare\XYZ\testApp.exe Have configured it

Can I use SQL Server CE in a medium trust environment by just deploying the DLLs

不想你离开。 提交于 2019-12-25 00:52:24
问题 I've written an ASP.NET 4.0 application that is using a SQL Server CE 4.0 database. This is all working on my development environment using Medium Trust (same trust config as the hoster). On this machine, I've gone through the install process (downloaded and installed the MSI). I'm now trying to deploy this solution to my web hoster. The code that is running is (this is a straight out copy of the Altairis Membership Provider: using (HostingEnvironment.Impersonate()) using (var db = this

Why can't I subscribe to an event in a partial-trust AppDomain?

落花浮王杯 提交于 2019-12-24 01:19:54
问题 In my default (full-trust) AppDomain I want to create a sandbox AppDomain and subscribe to an event in it: class Domain : MarshalByRefObject { public event Action TestEvent; } Domain domain = AppDomainStarter.Start<Domain>(@"C:\Temp", "Domain", null, true); domain.TestEvent += () => { }; // SecurityException Subscription fails with the message "Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0...' failed." (For the definition of

How can I use the system.net section of my app.config in a partial trust environment?

▼魔方 西西 提交于 2019-12-12 19:15:59
问题 I've a WCF application deployed using clickonce. It connects to my server using https, and everything works fine I use the default proxy when needed thanks to the following code: <configSections> <sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken

What is a partially trusted assembly/application/code/etc in .NET?

不问归期 提交于 2019-11-28 20:29:05
Could someone please explain? I couldn't find anything on the internet, everything talks about how to go about it in some way, but nothing says exactly what it is. Also, what is a fully trusted assembly and how do they differ from one another? I have a MS certification exam and this is the only topic that I just don't understand. EDIT: Thanks guys. Now I have a better understanding of security in .NET. I was able to pass my certification exam. RoadWarrior A full-trust assembly has an unrestricted set of code access security permissions, which allows the code to access all resource types and

Assembly does not allow partially trusted caller

◇◆丶佛笑我妖孽 提交于 2019-11-27 22:12:16
How do I change my library to allow partially trusted callers? I get the following error: Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers. Source Error: [No relevant source lines] Source File: App_Web_kzj7vfkn.2.cs Line: 0 Edit

What is a partially trusted assembly/application/code/etc in .NET?

橙三吉。 提交于 2019-11-27 13:08:52
问题 Could someone please explain? I couldn't find anything on the internet, everything talks about how to go about it in some way, but nothing says exactly what it is. Also, what is a fully trusted assembly and how do they differ from one another? I have a MS certification exam and this is the only topic that I just don't understand. EDIT: Thanks guys. Now I have a better understanding of security in .NET. I was able to pass my certification exam. 回答1: A full-trust assembly has an unrestricted

Assembly does not allow partially trusted caller

不问归期 提交于 2019-11-26 20:55:45
问题 How do I change my library to allow partially trusted callers? I get the following error: Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: That assembly does not allow partially