question

IISNET-0912 avatar image
0 Votes"
IISNET-0912 asked DarrenWilliams-4701 commented

Microsoft.Web.Administration Server Manager Com Exception Error

iisexpress.exe Warning: 0 : Remote activation to server 'SERVERNAME' requested but not supported
Exception thrown: 'System.NullReferenceException' in Microsoft.Web.Administration.dll
Object reference not set to an instance of an object.

'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132878421449841871): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\PrivateAssemblies\Runtime\Microsoft.VisualStudio.Debugger.Runtime.Desktop.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
iisexpress.exe Warning: 0 : Remote activation to server 'SERVERNAME' requested but not supported

ServerManager manager = new ServerManager();
manager = ServerManager.OpenRemote(SERVERNAME);

dotnet-csharpwindows-apiwindows-server-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered DarrenWilliams-4701 commented

Hello @IISNET-0912

try to follow the below steps:

1) open search from your machine and type DCOMCNFG.

2) In the component service window right-click on the My Computer and select properties. Choose the COM Securities tab.

3) In Access Permissions, click Edit Defaults and add Network Service to it and give it Allow local access permission. Do the same for < Machine_name >\Users or iis_iusrs, iusr.

4) In Launch and Activation Permissions, click Edit Defaults and add Network Service to it and give it Local Launch and Local Activation permission. Do the same for < Machine_name >\Users ,iis_iusrs, iusr.

Hope this helps with your query,


--If the reply is helpful, please Upvote and Accept as answer--

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Using ServerManager.OpenRemote(<server>) works as expected when I use .NET 5.0, but changing my project over to use .NET 6.0 runtime, I experience this same warning/error. I can't find any documented changes to this API, so any idea why this error occurs using .NET 6.0?

Also, I've seen the above answer posted elsewhere (although for other OpenRemote related issues). Should this be run on the local machine, the remote machine or both?

0 Votes 0 ·