This widget could not be displayed.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to grant minimum permission requests loading NationalInstruments.Common.Native on medium trust ASP.NET hosting

hello word!

 

I'm installing a web application which use NationalInstruments.UI.WaveFormGraph on a standard IPS windows hosting service.

As the most IPS, also my IPS implements ASP.NET 2.0 in Medium Trust level and does not allow application override.

This level is not enought to load NationalInstruments.Common.Native.dll or some dependent file.

 

The following is the thrown exception:

 

Server Error in '/' Application.

Required permissions cannot be acquired.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7606595
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'NationalInstruments.Common.Native, Version=8.1.20.415, Culture=neutral, PublicKeyToken=4544464cdeaab541' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
....

[ConfigurationErrorsException: Could not load file or assembly 'NationalInstruments.Common.Native, Version=8.1.20.415, Culture=neutral, PublicKeyToken=4544464cdeaab541' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163
System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53
....



Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614

 

1) It seems need the Full Trust level <trust level="Full" originUrl="" /> in web.config but this is disallowed by IPS!
    Is it true?

 

2) Someone had published application using National's ASP.NET dll on a standard IPS?

 

Thank you

Roberto

 

0 Kudos
Message 1 of 1
(4,391 Views)