Deployment Manager - 1.0
Common errors - Deployment Manager
This page describes the following common errors:
- 'Unable to generate a temporary class (result=1)' error
- 'Could not load type 'System.Management.Automation.PowerShell'...' error
- 'SocketException: No connection could be made...' error
- 'A required anti-forgery token was not supplied...' error
- 'There was a problem processing your request...' error
- DeploymentManager.exe - Microsoft.CompilerServices.AsyncTargetingPack.Net4 error
- Deployment Manager server/machine communication
'Unable to generate a temporary class (result=1)' error
If the IIS_IUSRS group does not have permission to read/write from the Windows Temp folder, you will see the following error when browsing the web interface:
Unable to generate a temporary class (result=1)
Fix
To grant permission to the IIS_IUSRS group:
- In Windows Explorer, browse to C:\Windows.
- Right-click on the Temp folder, and then click Properties.
The Temp Properties dialog box is displayed.
- On the Security tab, click Advanced:

The Advanced Security Settings for Temp dialog box is displayed.
- On the Permissions tab, click Continue:

- Under the Permission entries list, click Add:

The Select User, Computer, Service Account, or Group dialog box is displayed.
- Click Locations:

- Select the local machine, and then click OK.
- In the Enter the object name to select box, type IIS_IUSRS, and then click Check Names:

The IIS_IUSRS object name is expanded and underlined.
- Click OK.
The Permission Entry for Temp dialog box is displayed.
- Under Permissions, select the check box to allow List folder / read data:

- Click OK.
- On the Advanced Security Settings for Temp dialog box, click OK, and then on the confirmation dialog box that is displayed, click Yes:

'Could not load type 'System.Management.Automation.PowerShell'...' error
If the computer you have installed Deployment Manager on does not have Windows PowerShell 2 (or later) installed, you will see the following error when you launch the server administration application:

Fix
You need to install Windows PowerShell 2:
'SocketException: No connection could be made...' error
You may receive this error when Deployment Manager server or the web interface are starting up:
SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:10930
The causes for this may be:
- The Deployment Manager service is not running
To start the service manually:
- In the Start menu, type services.msc, and then click services.
- In the Services dialog box, right-click the Red Gate Deployment Manager service, and then click Start:

- Some kind of anti-virus or other security software is preventing the connection
- You have multiple IP addresses, and HTTP.SYS is only bound to one of them
This is a common configuration when you are using, for example, a Tomcat-based service (like TeamCity) and Deployment Manager on the same machine. You can check this via:
netsh http show iplisten
To solve it, either add 127.0.0.1 to the list of IP addresses HTTP.SYS can listen on using:
netsh http add iplisten 127.0.0.1
Or, in the registry under HKLM\Software\Deployment Manager, you can add the following string value:
Deployment Manager.Raven.HostName = <host name or IP address to use>
'A required anti-forgery token was not supplied...' error
You may receive this error when trying to log in to the Deployment Manager web interface:
A required anti-forgery token was not supplied or was invalid
The causes for this error may be:
- Cookies are disabled in your web browser
For information on how to enable cookies, refer to your web browser's documentation:
Manage your cookies and site data (Chrome documentation)
How to manage cookies in Internet Explorer 9 (Internet Explorer documentation)
- Session cookies have expired
This can happen if you leave the Deployment Manager web interface on the Login page for several hours before trying to log in. If your session cookies have expired, you need to refresh the Deployment Manager Login page before you can log in.
'There was a problem processing your request...' error
You may see the following error when adding a package step, or testing a package feed:

This error occurs when Deployment Manager has a problem connecting to a package (NuGet) feed.
Fix
To avoid this error, make sure that:
- You have specified the correct URL for your feed in the Deployment Manager web interface
- Your feed is running
- Your Deployment Manager server can see the machine your feed is running on
- Your feed and network are not overloaded
You can check that your feed is running, and that Deployment Manager can see the machine the feed is running on, by navigating to the feed URL in a web browser.
DeploymentManager.exe - Microsoft.CompilerServices.AsyncTargetingPack.Net4 error
You may see the following error when using the DeploymentManager.exe command line:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CompilerServices.AsyncTargetingPack.Net4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
This error can occur if if you have moved DeploymentManager.exe to a different location on your computer.
DeploymentManager.exe requires the Microsoft.CompilerServices.AsyncTargetingPack.Net4.dll file to be in the same location.
Fix
If you want to move DeploymentManager.exe to a different location on your computer, you must also move Microsoft.CompilerServices.AsyncTargetingPack.Net4.dll to the same location. You can find Microsoft.CompilerServices.AsyncTargetingPack.Net4.dll in your Deployment Manager installation location, in the Tools folder.
Deployment Manager server/machine communication
You can test whether Deployment Manager is able to reach a target machine (traversing firewall rules, etc.) by remoting to the Deployment Manager server, and pointing your web browser at http://your-machine-host-name:10933 (or whichever port you chose for machine to listen on).
If you see this error:
System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: An error occurred when verifying security for the message.
It can sometimes happen because the clock on one of the two machines is out-of-sync.
Was this article helpful?
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Installing and upgrading