> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/products/cc-software/troubleshoot/command-centre-connection-issues/command-centre-connection-issues-e-3.md).

# Error while connecting to specified server: Method '' of object

[Command Centre - Connection Issues](/knowledge-hub/products/cc-software/troubleshoot/command-centre-connection-issues.md) › Method '~~' of object '~~' failed

**Error:** "Method '~~' of object '~~' failed" from the OPC Bridge Configuration tool.

**Cause:** the OPC username and password registry keys are missing.

## Resolution

1. Open **Registry Editor** (you may need Administrator privileges).
2. Locate:
   * **(32-bit OS):** `HKEY_LOCAL_MACHINE\SOFTWARE\Gallagher\Command Centre`
   * **(64-bit OS):** `HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Gallagher\Command Centre`
3. Right-click in the empty space and select **String Value (REG\_SZ)**. Create two keys named:
   * `OPCUserName`
   * `OPCPassword`
4. Enter an OPC username and password in the **Value Data**.

> ⚠️ **Security:** Create a separate OPC operator account with only the required privileges. The username and password stored in these registry keys are **not encrypted**.

Then try to connect to the OPC Server in the OPC Bridge Configuration tool again.

![Method of object failed, registry keys](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-afb46050a982a8fd61b1e44810d81d224b0a768d%2FSECHUB-CCS-CONN-METHOD-02.png?alt=media)

![OPC registry string values](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-435553e8c25de638bbb8ee15ba93faf129b9fc23%2FSECHUB-CCS-CONN-METHOD-05.png?alt=media)

***

🔗 **Related**

* [OPC Connections 7.90 and higher - DCOM changes](/knowledge-hub/products/cc-software/troubleshoot/command-centre-connection-issues/command-centre-connection-issues-opc-c.md). The DCOM transport change that affects OPC.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/products/cc-software/troubleshoot/command-centre-connection-issues/command-centre-connection-issues-e-3.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
