Error 5 - An exception occurred in SMO while trying to manage a service

Hi
I use an instrument
made by myself in vb.net using SMO
objects to manage a mixed group of about
80 MS Sql Server (rel. 2005-2008 r2 & 2012)
With this tool I check the status of services,
change service accounts and their passwords,
etc.
A few days ago one server
started to return an error when I run
the first operation on any property of the object
ManagedComputer just created.
Error: "Error 5 - An exception occurred in SMO while trying to manage a service"
This is my code:
If UserID = "" Then
            '//Use the credentials of current user
                            mc = New ManagedComputer(serverName)
                        Else
                         '// Use the credentials provided by interface
                            mc = New ManagedComputer(serverName, UserID, UserPsw)
                        End If
                        str = ""
                        For x = 0 To mc.Services.Count - 1
                            With mc.Services.Item(x)
                                   servNome = .Parent.Name.ToUpper
                                    srvNome = .Name
                                    srvStato = .ServiceState.ToString
                                    srvStartMode = .StartMode.ToString
                                    srvAccount = .ServiceAccount
                                End If
                            End With
                        Next
The instruction mc.Services.Count generates the error below:
smoex = {"An exception occurred in SMO while trying to manage a service."}
    Microsoft.SqlServer.Management.Smo.FailedOperationException = {"An exception occurred in SMO while trying to manage a service."}
    _HResult = -2146233088
    _message = "An exception occurred in SMO while trying to manage a service."
    Data = {System.Collections.ListDictionaryInternal}
    FailedObject = Nothing
    HelpLink = "http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1846+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.InnerWmiException&LinkId=20476"
    HResult = -2146233088
    InnerException = {"Failed to retrieve data for this request."}
    IPForWatsonBuckets = 1670498764
    IsTransient = False
    Message = "An exception occurred in SMO while trying to manage a service."
    Operation = ""
    ProductName = "Microsoft SQL Server"
    ProdVer = "11.0.2100.60 ((SQL11_RTM).120210-1846 )"
    RemoteStackTrace = Nothing
    SmoExceptionType = FailedOperationException {12}
    Source = "Microsoft.SqlServer.SqlWmiManagement"
    StackTrace = "   in Microsoft.SqlServer.Management.Smo.Wmi.WMIProxy.ExecProcess(Object request)     in Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject.EnumChildren(String childTypeName, WmiCollectionBase
coll)     in Microsoft.SqlServer.Management.Smo.Wmi.ServiceCol...
    TargetSite = {System.Object ExecProcess(System.Object)}
    WatsonBuckets = Nothing
The server not have problems and the local Sql Server Configuration Manager work fine.
I copied the tool on the server to run it
locally. Strangely, if I use the credentials of the current logged user the tool works
(mc = New ManagedComputer(serverName) )
If I provide explicit the credentials
(domain\username and password, but  the same of user logged in the server)
is not working 
( mc = New ManagedComputer(serverName, UserID, UserPsw) )
From a remote server instead
does not work in both modes.
The server configuration:os Win 2008 R2 EE Sp1 , Ms Sql 2008 R2 Sp2 10.50.4321
Any suggestion is
much appreciated
Many thanks in advance

Hi Lydia
Thanks for your quick
response.
Unfortunately I had already considered this hypothesis
and the security settings on the object WMI
seems correct.
The user with which I run the program
is part of a domain's
group inserted into
the local administrators group. This group
has the flag "Remote Enable" active.
However, I verified that the
problem occurred since I updated my tool
to monitor and manage the new systems Sql
2012. The tool now uses objects
SMO 11.0 that I installed in the development environment,
and on server where it is scheduled
the tool, through the package
SharedManagementObjects.msi.
The documentation says that SMO 11 is
compatible with SQL 2005
and higher and, in fact, I only had problems
with one server. The old version of tool in fact work fine again.
This information will suggest
some ideas?
Thanks again
Giovanni Camurri

Similar Messages

  • Portal runtime error. An exception occurred while processing.....

    Hi!
    In a collaboration-Room, I see in one room in the Collaboration Detailed Navigation null and below I receive windwos with the message:
    Portal rumtime error.
    An exception occured while processing your request. Send the exeption ID to your portal adminisistrator.
    I have all permissions of that room and I'm admin. What is happend? In other rooms with this template, I see all areas.
    Best Regards,
    Emma

    Hi Emma,
    Please check the default trace log file to search the message to find the root cause of the issue.
    It might be some problem with your access to collaboration room or may be some problem in colaboration room setup.
    Best Regards
    Arun Jaiswal

  • BI scheduler error, 1064: An exception occurred in the service

    I am getting an error below while trying to restart BI scheduler,
    "could not start the oracle bi scheduler service on local computer, error 1064: An exception occurred in the service when handling the control request".
    Obiee is running on windows 2003 server. Scheduler was working fine until env went down, when l tried to restart it, suddenly i get this error message. The other services restart fine. Answers, dboard work fine. Its only the scheduler.
    I tried a couple suggested things on the Forum,
    1) l tried to connect the scheduler user using sqlplus, i get an error, ORA-12560: TNS:protocol adapter error. i cant connect. checked with the DB the user is not locked.
    2) I checked the tnsnames.ora everything is fine.
    3) I tried tns ping the user from cmd line i get an error TNS-03505: Failed to resolve the name.
    The scheduler log details are below
    2010-09-24 07:44:01
    [68008] Scheduler Error:
    Current Table: S_NQ_JOB.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_JOB_PARAM.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_INSTANCE.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_ERR_MSG.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    If enable tracing on sqlnet.ora i get
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: entry
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: system names file is E:\oracle\product\10.2.0\client_1\network\admin\tnsnames.ora
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: exit
    (4472) [24-SEP-2010 09:10:14:390] nnftboot: exit
    (4472) [24-SEP-2010 09:10:14:390] nnftrne: entry
    (4472) [24-SEP-2010 09:10:14:390] nnftrne: Original name: S_NQ_SCHED
    (4472) [24-SEP-2010 09:10:14:390] nnfttran: entry
    (4472) [24-SEP-2010 09:10:14:390] nnfgrne: Query unsuccessful, skipping to next adapter
    (4472) [24-SEP-2010 09:10:14:390] nnfgrne: exit
    (4472) [24-SEP-2010 09:10:14:390] nnfun2a: address for name "S_NQ_SCHED" not found
    (4472) [24-SEP-2010 09:10:14:390] niqname: Return code from nnfsn2a is 1
    (4472) [24-SEP-2010 09:10:14:390] nigtrm: Count in the NI global area is now 0
    Thanks
    Farai

    hi,
    I tried tns ping the user from cmd line i get an error TNS-03505: Failed to resolve the name.Is there any whitespaces in your DSN name or in tnsnames(.ora) file ? please check it once
    Confirm this ,are you using same DB connection in Job manager and connection pool settings ??
    thanks,
    Saichand.v

  • An error occurred while trying to access the service?

    I'm trying to convert a PDF into Excel but I get the message 'an error occurred while trying to access the service'.
    I have tried logging into my Adobe account online and doing it within there, but once I have exported the file and pressed 'convert' it simply says 'conversion failure' with no explanation.
    My subscription is still valid, so I don't see why the problems?  Has anyone else had this issue and managed to fix it?  I get the error message regardless of whether I'm trying to convert to Word or Excel.
    Any ideas greatly appreciated!!
    Thanks
    Sophie

    Hi SHurcs,
    I'm sorry that you're having such trouble with your ExportPDF subscription. Does this error occur for one particular file, or with any file that you try to convert? What operating system and browser are you using?
    To get us started, here are a few things that you can try:
    In Reader, sign out, and then sign back in.
    Use a supported web browser:  http://www.adobe.com/acom/systemreqs/
    Clear the browser cache.
    If you're using a networked computer, make sure that there are no firewall/proxy settings that prevent you from uploading files to the Internet.
    Make sure that the files you're trying to convert are within the file-size limits for ExportPDF (100 MB).
    If the problem persists, please let us know, and tell us a bit more about the files that you're converting.
    Best,
    Sara

  • An error occured while trying to access the service

    i'm continually having issues with trying to convert my files from PDF to excel.  I keep on getting the error message "An error occured while trying to access the service" with no real explanation as to what is wrong.  I've tried several times on several different computers, logging on and off, changing users...same message everytime.  I have a time sensitive project to complete, and can't get it done if this conversion can't be done.  HELP!

    Hi J,
    Here are a couple documents that may assist you:
    'Getting started' guide
    FAQ
    Let me know if those help!
    Kindest regards, Stacy

  • Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
    Regards,
    Nathaniel
    [removed by moderator]

  • I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file from PDF or to PDF, I get the message "An error occured while trying to access the service.  What do I need to do to access the service paid for?

    I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service".  What do I need to do to get access to the service I have paid for?

    Hi DeaconTomColorado,
    Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
    Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
    Best,
    Sara

  • I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert apdf file for msword?

    I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert a PDF file for ms word?

    Adobe Reader is free; but you may have paid for the ExportPDF service.
    Contact Adobe Customer Care and click on the Still need help? button to chat with an agent.
    [topic moved to ExportPDF forum]

  • I cannot convert my pdf files to word. I keep getting an error message that "an error occurred while trying to access the service"?

    I cannot convert my pdf files to word. I keep getting an error message that "an error occurred while trying to access the service"?

    See if anything in here helps: https://forums.adobe.com/docs/DOC-1831
    [topic moved to ExportPDF forum]

  • Receive error message "An error occurred while trying to access the service" when I try to convert a file?

    When I attempt to convert a file, either to PDF or from PDF I receive the error message "An error occurred while trying to access the service" what can I do to resolve?  I already applied updates and attempted to fix?

    You could always sign into Acrobat.com directly and use the service through the web site if it's a critical need.

  • ExportPDF - "an error occurred while trying to access the service"

    I have never had a problem using ExportPDF in the past but recently I am getting an error message saying "an error occurred while trying to access the service".  I am using the same browser, Chrome, that I have always used.  Please tell me how to fix this.

    Hi billbeaton,
    Please log out, clear the browser cache, and then reload https://cloud.acrobat.com. If that doesn't work, please try logging in using a different web browser (simply as a test).
    Has anything changed on your system since you were last able to log in to Acrobat.com? Are you using Mac OS or Windows?
    Best,
    Sara

  • An error occurred while trying to provision the service 'Discussions'.

    Hi All
    I initially got the error Failed to authenticate user when accessing the discussion and Announcement services within WebCenter. I subsequently configured WS Security by providing the required keystore as indicated in this tutorial:
    http://e20tricks.blogspot.com/2010/02/webcenter-quick-install-guide.html
    I've created a orcladmin user that is the system admin in Jive Forum too and use this as the required user in the service configuration within EM.
    I now however even though the Discussion and Announcement Service is available in WebCenter get the following error when trying to add either service to a group space:
    An error occurred while trying to provision the service 'Announcements'. The service did not get provisioned.
    I can't find anything in the logs that indicates any errors.
    Have I missed something? A slight configuration stuff-up perhaps?
    FYI my keystore defines -dname as "cn=machine name, dc=com, dc=au".
    Any advice and help would be much appreciated :)

    Make sure when you generate your keystore you use these commands:
    genkeypair
    importcert
    exportcert
    and not:
    genkey
    import
    export
    if the above commands you should be using are not available you've got an issue with your keytool which is probably an incorrect java. Make sure you have a JDK installed.

  • An error occurred while trying to access the service when trying to access adobe send since feb 28

    I have been trying to access my adobe send to send some files keep getting error message : an error occured while trying to access the service"
    everything was fine up until yesterday...

    Is that "SendNow"? If so you may get better help in the SendNow forum here: http://forums.adobe.com/community/sendnow

  • "An error occurred while trying to access the service" - Even after I have signed into Adobe reader

    I have signed into adobe reader and I am trying to convert a PDF to a word document. All I get every time is, "An error occurred while trying to access the service" My account is active and paid for. Please help me with this. I have tried a number of different documents. I pay to use this service!

    Thank you for your quik reply.
    Please try to login at https://exportpdf.acrobat.com/signin.html with your Adobe ID and password.  Please let me know this web UI does not work.
    Thank you again
    Hisami

  • In attempting to export a simple 1-page PDF file to Microsoft Word, I incessantly get the following error message:  "An error occured [sic] while trying to access the service."  Nothing on any of the community forums has helped in any way.  I have downloa

    In attempting to export a simple 1-page PDF file to Microsoft Word, I incessantly get the following error message:
    "An error occured [sic] while trying to access the service." 
    Nothing on any of the community forums has helped in any way. 
    I have downloaded a free trial of Acrobat XI Pro  --  and that too makes no difference.

      while trying to access the service." 
    That'd be associated with trying to connect to the server(s) for one of the Adobe online subscription services.
    (Edit PDF or PDF Pack)
    These online services are separate and independent of the desktop application Acrobat.
    It appears that you have had / are having internet connection issues.
    Be well...

Maybe you are looking for

  • Select and deselect all in ALV

    Hi, I have created an ALV that has a Check box as the first field as the first field of the row. Now when I press SELECT ALL nothing gets selected.How can i correct it, Thnx in advance

  • OBIEE Admin Tool 11.1.1.6.0 - Sources folders missing after merge in MUD

    Hi, We are using OBIEE 11.1.1.6.0 Repo Version 318 with Multi User Development (MUD). After few development checkins and checkouts from MUD repository, Sources folders disappeared for all Logical tables in BMM Layer. We can see Business Model Diagram

  • Are Nodes like Types?

    I am trying to understand Context in Web Dynpro. I know that Context is data storage in WDP. But how is Nodes and Attributes related to a standard ABAP program. Are nodes like Types and Attributes the actual fields? So if I create a type TYPES: begin

  • I am trying to rebuild Iphoto but command-option doesn't give me the option

    I am trying (like everybody else) to find my Iphoto library.  Holding down the command and option keys before opening Iphoto does not bring up the dialog box to rebuild?

  • Two Different Phone Numbers

    It's not a serious problem but, When I phone someone my number ends in 5913 on their handset, but to phone me you have to dial 5914, 5914 is ment to be my actual number but when people try to phone me back on 5913 and the number isn't recognised... S