Questions tagged [full-trust]

Full trust is a trust level in ASP.NET. It authorize a code to do anything that the account running it can do.

Trust level refers to permissions set in the Web.config file that dictate what operations can and cannot be performed by Web applications.

With the full trust level, a code can do anything that the account running it can do.

93 questions
19
votes
3 answers

Security Exception (The application attempted to perform an operation not allowed by the security policy) )

we're having as issue with the following security exception when we attempt to open our admin login page. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this…
Code_Worm
  • 4,069
  • 2
  • 30
  • 35
15
votes
3 answers

Does full trust mean the same as Run As Administrator

Does full trust mean the same as Run As Administrator? I have read things stating that "for this to work, the application must be a full-trust application." Is that the same as you must have administrator privileges to run the application? If…
Laure Chipman
13
votes
5 answers

How to Automate Testing of Medium Trust Code

I would like to write automated tests that run in medium trust and fail if they require full trust. I am writing a library where some functionality is only available in full trust scenarios and I want to verify that the code I wish to run in medium…
Ian Davis
  • 3,848
  • 1
  • 24
  • 30
12
votes
1 answer

NLog GetCurrentClassLogger() NullReferenceException using StructureMap (Full Trust)

It seems like NLog can't use reflection for GetCurrentClassLogger(), even though my MVC 3 app is deployed in a Full Trust environment on IIS7. I'm using StructureMap 2.6.1 and the problem seems to appear sporadically between deploys. I can't figure…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
8
votes
2 answers

ASP.NET Varying Trust Level Per-Page by Assembly?

I have two web applications (pre-compiled sites), one is first-party and will run at full trust. Another is third-party and should run at partial trust (or with specific permissions). TrustedAssembly.Web.Pages.MyPage should run in the full trust…
lukiffer
  • 11,025
  • 8
  • 46
  • 70
8
votes
2 answers

Security risks of setting trustworthy = on in sql server 2012

I get the following errors in my development database: A .NET Framework error occurred during execution of user-defined routine or aggregate "SpCreateTable": System.Security.HostProtectionException: Attempted to perform an operation that was…
cdub
  • 24,555
  • 57
  • 174
  • 303
7
votes
0 answers

System.Security.VerificationException when running ANTS profiler in .net 4.0

I've been using RedGate's ANTS Performance Profiler for a while now. We recently updated our 3rd party dlls (Telerik) to their .net 4.0 version. When we did this, I no longer can profile our code because as soon as I hit a Telerik control I…
Devin
  • 1,014
  • 1
  • 9
  • 28
6
votes
2 answers

Application Trust Level on Network Drive for Nhibernate C# Application

Scenario: I have a C# application that uses Click-Once to install(puts an icon on the desktop that points to the application) itself on computers on the network. I have recently been integrating NHibernate into the program and everything runs smooth…
Gage
  • 7,365
  • 9
  • 47
  • 77
4
votes
2 answers

why a simple asp.net mvc web site requires full trust

I built a really simple asp.net mvc web site (it doesn't use asp.net identity, entity framework and also it doesn't use any database). These are the references: and the web.config
DevT
  • 1,411
  • 3
  • 16
  • 32
4
votes
2 answers

Enable elevated trust for the Silverlight 5 application when running in-browser without adding the registry key

To enable elevated trust for the Silverlight 5 application when running in-browser I've tried so many options well described e.g. here (by Mister Goodcat) and it works good with our VeriSign certificate only if I add the registry key…
4
votes
1 answer

Security issue with Azure

I need my application to run in FullTrust mode so I added this line to my web/config file: I also modified the .csdef filr to enableNativeCodeExecution. But when I want to run my application (which runs with no problems as a standard Asp.Net web…
sebagomez
  • 9,501
  • 7
  • 51
  • 89
3
votes
0 answers

FullTrustProcessLauncher created new instances of a desktop application under UWP app in task manager

Whenever we want to record using Speaker we need to communicate with desktop app, but it needs to call the below code every time when we want to access speaker code or speaker and microphone. if…
Shakita
  • 99
  • 2
  • 12
3
votes
3 answers

.NET assembly runs in partial trust on a network drive, but all other in full trust

We have a strange issue with our C++ solution (which calls .NET 4.0 assemblies) when running on a network drive. The solution hosts several WCF services with NetTcpBinding, one of them with a non-default binding configuration. A non-default…
gumo
  • 645
  • 15
  • 35
3
votes
1 answer

What do I need to do to make a WPF Browser Application (XBAP) that requires Full Trust work on Windows 7?

So this is a Visual Studio 2008, .NET, WPF, XBAP, Windows 7 question, regarding .NET trust policies. At work, we have several Web Browser Applications (.XBAP files) developed with Visual Studio 2008 (so .NET 3.5) that we deployed internally. These…
3
votes
2 answers

Silverlight 4 - elevated permission *inside* the browser

I know Silverlight 4 can handle elevated permissions outside the browser. Is there a way to accomplish this inside the browser? I need to make a folder/file upload manager that gives a better user experience than the standard , and I'd like to…
Doug
  • 5,208
  • 3
  • 29
  • 33
1
2 3 4 5 6 7