Get Status(Checked /UnChecked ) of the current Checkbox In CheckBoxList on the SelectedIndexChangePr

Hello,
Could someone help me with the following issue, please?

System setup:
– Windows 2008 R2 server hosting both MVC2 web application and WCF service for it;
– users connect to the web application which gets all data from the WCF services;
– WCF services are resused by several other applications (WinForms based) which work fine and have never experienced any security related problems;
– MVC2 uses impersonation () to connect to WCF services, so we have single security boundary for both web and winforms clients (which are out of scope of the problem);
– all users, user PCs and servers belong to the same AD domain, which is a part of global corporate tree;
– all unhandled exceptions are automatically caught by the web application and forwarded to application developers’ e-mail box;
– WCF binding setup in web application:


          openTimeout=”00:10:00″ receiveTimeout=”00:10:00″ sendTimeout=”00:10:00″
     bypassProxyOnLocal=”false” transactionFlow=”false” hostNameComparisonMode=”StrongWildcard”
     maxBufferPoolSize=”524288″ maxReceivedMessageSize=”268435456″
     messageEncoding=”Text” textEncoding=”utf-8″ useDefaultWebProxy=”true”
     allowCookies=”false”>
            maxArrayLength=”600000″ maxBytesPerRead=”4096″ maxNameTableCharCount=”16384″ />
            enabled=”false” />
     
              realm=”” />
              algorithmSuite=”Default” establishSecurityContext=”true” />
     

    

Problem:

– problem is unstable – system just starts/stops working after some time without any intervention from our side
– exception details are:

Type : System.UnauthorizedAccessException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Source : mscorlib
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
Stack Trace :
Server stack trace:
at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Wumte.Web.ModuleRegistryServiceProxy.IModuleRegistry.IsScenarioAvailable(String scenario)
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Wumte.Web.Areas.AreaRegistryHelper.GetAvailableAreas(Assembly assembly)
at Wumte.Web.Controllers.HomeController.Index()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.b__a()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

Steps we already tried:
– give everyone full access to NTFS folder containing MVC2 application (did not help);
– enable WCF logging in MVC2 application

WCF logging configuration:

        logEntireMessage=”true”
    logMessagesAtServiceLevel=”false”
    logMalformedMessages=”true”
    logMessagesAtTransportLevel=”true”/>

  
   
          
    
   
   
          
    
   
  

Log details:

Faulted Activity: Setup Secure Session

 http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  131085
  3
  0
  255
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Start”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx
     Activity boundary.
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord“>
      Set up Secure Session.
      SecuritySetup
     

    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  131075
  3
  0
  2
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Error”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx
     Throwing an exception.
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     
      System.UnauthorizedAccessException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
      Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
      
       at System.ConfigServer.RunParser(IConfigHandler factory, String fileName)
       at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean skipSecurityStuff)
       at System.Security.Cryptography.CryptoConfig.OpenCryptoConfig()
       at System.Security.Cryptography.CryptoConfig.InitializeConfigInfo()
       at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
       at System.IdentityModel.CryptoHelper.GetAlgorithmFromConfig(String algorithm)
       at System.ServiceModel.Security.CryptoHelper.CreateHashAlgorithm(String digestMethod)
       at System.ServiceModel.Security.SpnegoTokenProvider.CreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout)
       at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
      

      System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
       at System.ConfigServer.RunParser(IConfigHandler factory, String fileName)
       at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean skipSecurityStuff)
       at System.Security.Cryptography.CryptoConfig.OpenCryptoConfig()
       at System.Security.Cryptography.CryptoConfig.InitializeConfigInfo()
       at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
       at System.IdentityModel.CryptoHelper.GetAlgorithmFromConfig(String algorithm)
       at System.ServiceModel.Security.CryptoHelper.CreateHashAlgorithm(String digestMethod)
       at System.ServiceModel.Security.SpnegoTokenProvider.CreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout)
      at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)

     

    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  524293
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.CommunicationObjectOpenFailed.aspx
     Failed to open System.ServiceModel.Security.SpnegoTokenProvider
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     System.ServiceModel.Security.WrapperSecurityCommunicationObject/12964440
    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  524299
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.CommunicationObjectFaulted.aspx
     Faulted System.ServiceModel.Security.SpnegoTokenProvider
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     System.ServiceModel.Security.WrapperSecurityCommunicationObject/12964440
    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  524293
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.CommunicationObjectOpenFailed.aspx
     Failed to open System.ServiceModel.Security.SymmetricSecurityProtocol
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     System.ServiceModel.Security.WrapperSecurityCommunicationObject/16046740
    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  524299
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.CommunicationObjectFaulted.aspx
     Faulted System.ServiceModel.Security.SymmetricSecurityProtocol
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     System.ServiceModel.Security.WrapperSecurityCommunicationObject/16046740
    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  524293
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.CommunicationObjectOpenFailed.aspx
     Failed to open System.ServiceModel.Channels.SecurityChannelFactory`1+SecurityRequestChannel[System.ServiceModel.Channels.IRequestChannel]
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     System.ServiceModel.Channels.SecurityChannelFactory`1+SecurityRequestChannel[System.ServiceModel.Channels.IRequestChannel]/21509668
    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  524299
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.CommunicationObjectFaulted.aspx
     Faulted System.ServiceModel.Channels.SecurityChannelFactory`1+SecurityRequestChannel[System.ServiceModel.Channels.IRequestChannel]
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     System.ServiceModel.Channels.SecurityChannelFactory`1+SecurityRequestChannel[System.ServiceModel.Channels.IRequestChannel]/21509668
    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  458832
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.Security.SecuritySessionRequestorOperationFailure.aspx
     The client security session operation failed.
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     http://schemas.microsoft.com/2006/08/ServiceModel/SecuritySessionTraceRecord“>
      Issue
      System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
       at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
       at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
      at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)

      http://srvwumos0001/Wumte.Server.Host/LimitManagement.svc
     

    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  458832
  3
  0
  4
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Warning”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.Security.SecuritySessionRequestorOperationFailure.aspx
     The client security session operation failed.
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     http://schemas.microsoft.com/2006/08/ServiceModel/SecuritySessionTraceRecord“>
      Issue
      System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
       at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
       at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
      at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)

      http://srvwumos0001/Wumte.Server.Host/LimitManagement.svc
     

    

   

  

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  0
  3
  0
  255
  
  
  
  
  
  SRVWUMOS0001
 

 

http://schemas.microsoft.com/2004/06/E2ETraceEvent“>
 http://schemas.microsoft.com/2004/06/windows/eventlog/system“>
  131085
  3
  0
  255
  
  
  
  
  
  SRVWUMOS0001
 

 
  
   
    http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord” Severity=”Stop”>
     http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx
     Activity boundary.
     /LM/W3SVC/1/ROOT/Wumte.WebClient-4-129296176850452341
     http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord“>
      Set up Secure Session.
      SecuritySetup
     

    

   

  

 

 

Hi Dimonytch,From the call stack, it looks like some kind of registry or file permission issue. Could you please run the processmon (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx)

Hi Zafar,Thank you very much for the hint!!! It turned out that regular users had no access  to machine.config file, which prevented sessions, using impersonation, from reading it. Inability for application developers to reproduce the problem (even on  the production