.NET trust level

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 1
Joined: 13 Feb 2017, 20:48

.NET trust level

13 Feb 2017, 22:09

I am having trouble running Ape on .NET 4 with Medium Trust level. The documentation suggests Medium Trust should be sufficient, but I have not got it to work. (I have not seen an error message. It just doesn't do anything.)

It runs fine on .NET 2 with Medium Trust, or .NET 4 with Full Trust. Does it need a specific permission that I can add to my .NET 4 Medium Trust? Thanks.

This is on Windows Server 2012 R2, IIS 8.5

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: .NET trust level

31 Mar 2017, 08:40

Hello.

Sorry for the delay.
As a solution to use Medium Trust level with Ape you need to enable read permissions on Ape installation directory. You can do this manually by editing %windir%\Microsoft.NET\Framework\{Version}\CONFIG\web_mediumtrust.config file by adding the following to it:

Code: Select all
<PermissionSet
    class="NamedPermissionSet"
    version="1"
    Name="ASP.Net">
  ...
    <IPermission
         class="FileIOPermission"
       version="1"
         Read="C:\Program Files (x86)\Helicon\Ape;$AppDir$"
         Write="$AppDir$"
         Append="$AppDir$"
         PathDiscovery="$AppDir$"
/>
  ...
</PermissionSet>


So Ape will be able to load its config file.

User avatar
Posts: 2
Joined: 16 May 2017, 04:24

Re: .NET trust level

16 May 2017, 08:08

If your application requires Full Trust, you can abrogate the trust level at the application level by adding the accompanying to your web config document. Galaxy 2 Jacket

User avatar
Posts: 8
Joined: 01 Aug 2017, 03:29

Re: .NET trust level

01 Aug 2017, 09:14

I don’t know .NET programming and its difficult to study this language. My friends know this language and I am interested in studying this. So update more details about this programming language so that I can learn more on this topic.see this website

User avatar
Posts: 1
Joined: 01 Jan 2018, 23:14

Re: .NET trust level

01 Jan 2018, 23:16

Thank you for posting such a great article! I found your website perfect for my needs. It contains wonderful and helpful posts. Keep up the good work!. Thank you for this wonderful Article!

User avatar
Posts: 8
Joined: 01 Aug 2017, 03:29

Re: .NET trust level

08 Feb 2018, 08:37

I was trying out to learn the .NET programming and covered few topics about abstract class and interfaces. I had been working on our website. Can you tell me the How to redirect the user to another page using ASP.NET. I am unable to do this feature.<a href="http://www.howtofixbrowserissues.com/chrome-browser-issues/">Chrome browser issues</a>

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 11 guests