> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/gateway/help/troubleshooting/side-by-side-method-not-found.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Side-by-side installation method not found

Fix the "Method not found" error of a Devolutions Gateway side-by-side installation from the Devolutions Server Console by installing Windows PowerShell 5.1.

When you install ***Devolutions Gateway*** on the same server as Devolutions Server (side-by-side installation) from the Devolutions Server Console, the installation fails and its log contains this error:

`Method not found: 'Void System.Management.Automation.Runspaces.InitialSessionState.set_ExecutionPolicy(Microsoft.PowerShell.ExecutionPolicy)'.`

The Devolutions Server Console can also report "Configuring Devolutions Gateway service failed." at that point.

## Why it happens

After installing the Devolutions Gateway program, the Devolutions Server Console configures the gateway (ID, listeners, certificate, public key, recording folder) with the Devolutions Gateway PowerShell module, in a PowerShell session it opens itself. Both need Windows PowerShell 5.1. On a server with an older Windows PowerShell, the setting the console applies to that session doesn't exist, and .NET reports "Method not found".

The Devolutions Gateway Windows installer has the same requirement and stops on its own with "This product requires Windows PowerShell 5.1" when you run it directly.

## Fix it

1. On the server, open PowerShell and run `$PSVersionTable.PSVersion`.
2. If the version is lower than 5.1, install Windows Management Framework 5.1 from Microsoft, then restart the server.
3. Run `$PSVersionTable.PSVersion` again to confirm 5.1.
4. In the Devolutions Server Console, start the Devolutions Gateway side-by-side installation again.

If Devolutions Gateway was installed but its configuration failed, the gateway record may be missing in Devolutions Server: "Devolutions Gateway can't be created. It will be possible to create it manually via the Devolutions Server web interface later." Add it in ***Administration*** – ***Devolutions Gateway*** – ***Add*** – ***Gateway***, or uninstall Devolutions Gateway from the console and install it again.

## Related pages

* [Install Devolutions Gateway from the Devolutions Server Console](https://docs.devolutions.net/gateway/guides/devolutions-server/install-from-console.md)
* [Side-by-side with Devolutions Server in IIS](https://docs.devolutions.net/gateway/guides/reverse-proxies/iis-side-by-side.md)
* [System requirements](https://docs.devolutions.net/gateway/reference/system-requirements.md)


---

# 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://docs.devolutions.net/gateway/help/troubleshooting/side-by-side-method-not-found.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.
