none
trust Levels RRS feed

  • Question

  • Hi there 

    I have created an application and tried to host it but having a problem as I need the trust level to be  Medium as I guessing that something is using Full trust level. I need help in finding out what is using it and then I change it to medium as the error message I getting doesn't help 

    Is the ways in VS to somehow view all item trust levels? and find the one or may using full trust Maybe it <g class="gr_ gr_436 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="436" id="436">an</g> DLL or something 

    here what my error message is 

    Security <g class="gr_ gr_321 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace replaceWithoutSep replaceWithoutSep" data-gr-id="321" id="321">Exception</g>

    <g class="gr_ gr_321 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace replaceWithoutSep replaceWithoutSep" data-gr-id="321" id="321">Description</g>: 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: Request failed.

    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: 
    [SecurityException: Request failed.]
       System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +96
       System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +80
       System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +288
       System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, RuntimeAssembly asm, SecurityAction action) +70
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
       System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +40
       System.Type.GetType(String typeName) +30
       System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +12
       System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +2045
       System.Web.Configuration.CompilationSection.get_RecompilationHash() +107
       System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDateInternal(Int64 cachedHash) +458
       System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(Int64 cachedHash) +51
       System.Web.Compilation.BuildManager.ExecutePreAppStart() +135
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +549
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2556.0

    • Moved by [Kamlesh Kumar] Saturday, January 6, 2018 11:43 AM Not related to BizTalk
    Thursday, January 4, 2018 5:26 PM

All replies

  • Hi smarteez,

    Thank you for posting on MSDN forum.

    This forum is related to Microsoft BizTalk questions / Discussions. I am moving your query to related forum.

    Thanks

    Kamlesh

    Saturday, January 6, 2018 11:42 AM