Ask a questionAsk a question
 

Proposed AnswerAn Operations Error Occured

  • Thursday, January 17, 2008 1:44 PMVirtual Andy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

     

    I am having problems adding groups to my applications via the 'Access Permissions' tab. When I click 'Add...' I get an message dialog stating 'An operations error occured.'.

     

    When I click OK the 'Add/Edit User Group' dialog appears but I am unable to access the domain groups. The following is from the sftmmc.log file

     

    ManagementConsole.MCException: An operations error occurred.
     ---> System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred.


    Server stack trace:
       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
       at System.DirectoryServices.DirectorySearcher.FindAll()
       at SoftGrid.Management.DataAccess.AdAccountQueries.SearchDirectory(AccountObjectData parent, String filter, SearchScope scope)
       at SoftGrid.Management.DataAccess.AdAccountQueries.GetGroups(AccountObjectData parent, AccountObjectData[]& subContainers, AccountObjectData[]& groups)
       at SoftGrid.Management.DataAccess.AccountQueries.GetGroups(AccountObjectData parent, AccountObjectData[]& subContainers, AccountObjectData[]& groups)
       at SoftGrid.Management.Accounts.GetGroups(AccountContainer parent, AccountContainer[]& subContainers, AccountGroup[]& groups)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

    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 SoftGrid.Management.IAccounts.GetGroups(AccountContainer parent, AccountContainer[]& subContainers, AccountGroup[]& groups)
       at ManagementConsole.ManagementSession.GetGroups(AccountContainer parent, AccountContainer[]& subContainers, AccountGroup[]& groups)
       --- End of inner exception stack trace ---


     

    has anyone seen this before, as I am now no longer able to perssion applications.

     

    Thanks,

     

    Andy

All Replies

  • Friday, January 18, 2008 9:44 PMPerG Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    I have seen this error on websites that has impersonation set to true in the web.config file with NTLM or Kerberos authentication set. (due to the fact that the users token is a "secondary token" that cannot be used when authenticating against another server)

     

    You could either use Basic Authentication or switch the impersonation setting to false in web.config (which might break the app)

     

    I have a small blogentry about the error when seen in sharepoint, but I guess that you're not going to change the code.. Wink

    http://sharepoint-tweaking.blogspot.com/2007/12/impersonation-in-aspnet-causes.html

  • Tuesday, January 22, 2008 6:11 PMMichelle Foley _MSFT_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    I found one of the error codes 0x80072020 may point to a problem contacting/communicating with the AD. Anything out of the ordinary in the Event logs or the SFT logs?

     

     

  • Tuesday, August 19, 2008 3:12 PMDaniel Siegl Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Switching to Basic Authentication did the Trick but it is not a very good solution. As automatic login will not work anymore.

    I'm generating a Self Service Application where users can Alter some of their AD Properties.

     

    So this is really very annoying.

     

    BR
    Daniel

  • Tuesday, October 07, 2008 7:32 PMTHaynes Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Daniel,

    I'm having the exact same problem.  Did you find a solution that did not require Basic Authentication?

    Thanks for any help!
    Tim
  • Friday, November 14, 2008 3:31 PMMaharjan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
     PerG wrote:

     

    I have seen this error on websites that has impersonation set to true in the web.config file with NTLM or Kerberos authentication set. (due to the fact that the users token is a "secondary token" that cannot be used when authenticating against another server)

     

    You could either use Basic Authentication or switch the impersonation setting to false in web.config (which might break the app)

     

    I have a small blogentry about the error when seen in sharepoint, but I guess that you're not going to change the code..

    http://sharepoint-tweaking.blogspot.com/2007/12/impersonation-in-aspnet-causes.html

     

    I was using Windows Authentication for hosting my intranet site. In my web.config file is was   

    <authentication mode="Windows"/>
      <identity impersonate="true"/>

     

    But still it was not working and error was showing on  dirSearch.FindOne(); since I was using Directory search in Active Directory for user authentication.  Your code below works properly to send user credential in SQL Server and now I am able to use User_Name keyword in sql server. It gets the user name what we authenticate from domain users.

    using System.Web.Hosting;
    ...
    ...

    // Code here runs as the logged on user

    using (HostingEnvironment.Impersonate()) {
    // This code runs as the application pool user
         DirectorySearcher searcher ...
    }

    Thank you very much!.

  • Thursday, January 08, 2009 12:31 PMSyed Azharuddin Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks a million yar, you saved me, I was really worried about the issue..

    using(HostingEnvironment.Impersonate())
    {

        code ..... blah blah blah...

    }

    solved my problem...

  • Monday, June 08, 2009 6:34 PMJJ_Berg Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You're a genius! Thanks so much!