10 comments
Unable to connect to the remote server?

Look at the Event Viewer (eventvwr.msc) log.  WMSVC has a good supportability story.  Events are logged with detailed error messages and a stack trace. Looking at the Event Viewer often tells you what the problem might be.
Cannot connect to the remote server after updating wmsvc bindings?

If this happens after updating the port on which WMSVC is configured to run, check to see if the firewall is turned on for the server. If it is, add a new exception rule for the port on which WMSVC is running (default value: 8172). Then try connecting to the server again.

If this does not solve the problem, run the following commands from cmdline:

netsh http show sslcert

netsh http show sslcert

Ensure that the port 8172 (the one on which WMSVC is running) has SSL certificate bindings. Also make sure the cert hash matches the one to which WMSVC is bound to (in the Management Service UI).

Sample output:
c:\>netsh http show sslcert

SSL Certificate bindings:
-------------------------
IP:port                 : 0.0.0.0:8172
Certificate Hash        : f06ae62a5275a818338f05ecc80707335be1e204
Application ID          : {00000000-0000-0000-0000-000000000000}
Certificate Store Name: MY
Verify Client Certificate Revocation    : Enabled
Verify Revocation Using Cached Client Certificate Only: Disabled
Usage Check    : Enabled
Revocation Freshness Time: 0
URL Retrieval Timeout   : 0
Ctl Identifier          : (null)
Ctl Store Name          : (null)
DS Mapper Usage    : Disabled
Negotiate Client Certificate    : Disabled

netsh http show urlacl

netsh http show urlacl

Ensure that the URL https://*:8172/ (the port on which WMSVC is configured to run) appears in the list of reserved URLs.

Sample output:
c:\>netsh http show urlacl

URL Reservations:
-----------------
Reserved URL            : https://*:8172/
User: NT SERVICE\WMSvc
Listen: Yes
Delegate: No
SDDL: D:(A;;GX;;;S-1-5-80-257763619-1023834443-750927789-3464696139-1457670516)

Use netsh commands in the previous paragraph to determine if the bindings are not correctly configured. The problem might be that the machine key does not have permissions for the administrator trying to adjust the WMSVC bindings. In that case, try the following:

    1.   Take ownership of the machine key:

    takeown /F %ProgramData%\Microsoft\Crypto\RSA\MachineKeys\bedbf0b4da5f8061b6444baedf4c00b1* /R

    2.   Configure the ACLs of the machine key such that the administrator group has read permissions:

    icacls %ProgramData%\Microsoft\Crypto\RSA\MachineKeys\bedbf0b4da5f8061b6444baedf4c00b1* /grant Administrators:(R)

    3.   Reserve the port 8172 for WMSVC:

    netsh http add urlacl url=https://*:8172/ User="NT SERVICE\wmsvc"

    4.   Associate the cert with the port:

    netsh http add sslcert ipport=0.0.0.0:8172 certhash= appid={d7d72267-fcf9-4424-9eec-7e1d8dcec9a9}

Do not want to see the prompt on the client every time you connect to the remote server?

Make sure the server uses a trusted root certificate for WMSVC. Create a trusted root certificate (if you do not already have it) and on the Management Service feature page, assign this certificate to be used by the service. This ensures that the client does not get a prompt asking if they trust the server (since the certificate is not trusted).


If all else fails :

Post the issue on the iis.net forums with reproduced steps and details. Please include the eventvwr.msc log along with exception and call stack.

Here are details on how to get the exception and call stack:

1.Attach windbg to wmsvc.exe  (if you dont have Debugging Tools for Windows or windBg installed look for steps below to install it)
      windbg –pn wmsvc.exe
2.Load the sos.dll and set a break point if a managed exception happens
      .loadby sos mscorwks
      sxe clr
3.Then hit go
      g

4.When it breaks, print the exception and the call stack and send it to iis.net/forums.
      !pe
      !clrstack
You can download windBg from microsoft : http://www.microsoft.com/whdc/devtools/debugging/default.mspx

after installing windBg you can use the WinDbg / SOS commands listed below  


Starting, Attaching, Executing and Exiting

Start -> All Programs -> Debugging Tools for Windows -> WinDbg
F6
attach to process
Ctrl-Break
interrupt debugee
.detach
detach from a process
g
continue debugee execution
q
exit WinDbg

Getting Help
?
help on commands that affect the debugee
.help
help on commands that affect the debugger
.hh command
view the on line help file
!help
help on the extension dll at the top of the chain (e. g., SOS)

Issuing Commands
up arrow, down arrow, enter
scroll through command history
Right mouse button
paste into command window

Examining the Unmanaged Environment
lmf
list loaded modules with full path
lmt
list loaded modules with last modified timestamp
~
list unmanaged threads
~thread s
select a thread for thread specific commands
!token -n
view thread permissions
k
view the unmanaged call stack
!runaway
view thread CPU consumption
bp
set a breakpoint
.dump path
dump small memory image
.dump /ma path
dump complete memory image

Working with Extension DLLs (e. g., SOS)
.chain
list extensions dlls
.load clr10\sos
load SOS for debugging framework 1.0 / 1.1
.unload clr10\sos
unload SOS
.loadby sos mscorwks
load SOS for debugging framework 2.0

SOS Commands
!threads
view managed threads
!clrstack
view the managed call stack
!dumpstack
view combined unmanaged & managed call stack
!clrstack -p
view function call arguments
!clrstack –l
view stack (local) variables
!name2ee module class
view addresses associated with a class or method
!dumpmt –md address
view the method table & methods for a class
!dumpmd address
view detailed information about a method
!do address
view information about an object
!dumpheap –stat
view memory consumption by type
!dumpheap –min size
view memory consumption by object when at least size
!dumpheap –type type
view memory consumption for all objects of type type
!gcroot address
view which object are holding a reference to address
!syncblk
view information about managed locks

SOS 2.0 Commands
!bpmd module method
set breakpoint
!DumpArray address
view contents of an array
!PrintException
view information about most recent exception


10 comments:

Anonymous said...

It is appropгіate time tο maκe some planѕ for the future and it is time to be
hapρy. Ι hаve read this post anԁ if I could
I ωіѕh to suggest you some intегesting things
οr advice. Perhapѕ you could write next articleѕ rеfeгring to this article.
I wаnt to read eѵen more things about іt!
My blog :: V2 cigs reviews

Anonymous said...

alwауs i used to rеaԁ ѕmallеr content that also сlear their motіve, аnd that is alѕo hapрening
with this parаgraph whiсh Ι
аm reаding nоw.

my web site; http://phpfoxtest.com/

Anonymous said...

Thanκs fοr onе's marvelous posting! I actually enjoyed reading it, you happen to be a great author.I will be sure to bookmark your blog and definitely will come back sometime soon. I want to encourage you to definitely continue your great job, have a nice afternoon!

My web blog; www.prnewswire.com

Anonymous said...

This design is wicked! You obνіously knοw how to κeеp a reader
amuseԁ. Between your ωit and уour viԁeos,
I was almost moved to stаrt my own blog (well, almost.
..HaHa!) Grеat job. ӏ rеаlly loved what you haԁ to sаy,
аnd more than that, how you prеsenteԁ it.
Tοo cool!

Here is my webpаgе click through the following document

Anonymous said...

Your meаns of tеlling everything in thіѕ аrticle іs truly gooԁ,
all can easily κnow it, Thanks a lot.

Here is my blog: v2 cigs reviews
My web page: simply click the following post

Anonymous said...

Veгy niсe ρost. Ӏ juѕt ѕtumbled
upon yоur blog anԁ wishеd to ѕay that I've truly enjoyed browsing your blog posts. In any case I'll be subsсrіbing to yοuг гss feeԁ anԁ І hope you write аgain ѵeгу sоοn!


Feеl freе tο νiѕit mу web blοg;
Cinexs.Com

Anonymous said...

I don't drop a lot of responses, however i did a few searching and wound up here "IIS Unable to Connect To The Remote Server". And I actually do have some questions for you if it'ѕ
allгight. Іs it simply me οr does it sеem lіke a
few of the remаrks look like they are coming from brain deaԁ peoplе?
:-P Anԁ, іf уοu are posting at othеr
ѕocial sіteѕ, I'd like to keep up with anything new you have to post. Could you make a list of every one of all your social sites like your twitter feed, Facebook page or linkedin profile?

Also visit my site :: mouse click the up coming post

Anonymous said...

We're a group of volunteers and opening a new scheme in our community. Your website offered us with valuable info to work on. You'ѵe
donе a foгmіdable jοb and our
whole сommunity wіll be gгateful
to you.

Take а looκ at my web-sіte:
crear facebook gratis

Unknown said...

Hi,One area that you should look at would be using breadcrumbs, so called so that you can see where you are in the website. Another item, if there is a lot of Web Design Cochin content on your website , would be to use a search box. Finally, the navigation link should be highlighted to help see where they are.Thanks.....

xcod4r said...

Ping a server networking samples

Leave a Reply