c# - The authentication scheme ' NTLM' is not supported and other issues migrating from .asmx to wcf -


i switched .asmx web service wcf (both in .net 3.5), , getting

the authentication scheme ' ntlm' not supported.  

the thing i've seen on google w3svc/ntauthenticationproviders setting had ntml instead of ntlm. don't have issue.

okay - here summary of annoying wcf issues encountered while migrating helps someone.

issue 1 - "this collection contains address scheme http. there can @ 1 address per scheme in collection."

this caused, guess, web server having multiple web sites multiple host headers. solution found here: wcf service startup error "this collection contains address scheme http".

i added baseaddressprefixfilter:

<servicehostingenvironment>     <baseaddressprefixfilters>         <add prefix="http://yoururl.blahblah.com/" />     </baseaddressprefixfilters> </servicehostingenvironment> 

issue 2: got the authentication scheme ' ntlm' not supported. error. struggled while reboot made 1 go away (although did (http://bytes.com/topic/net/answers/705912-authentication-scheme-ntml-not-supported):

# change directory c:\inetpub\admin scripts first cscript adsutil.vbs set w3svc/ntauthenticationproviders "negotiate,ntlm" 

there space after first comma in config, no idea if causing issue.

issue 3: after reboot, got fun .404 errors.

my first guess @ wcf not set hosted on server ran: (http://msdn.microsoft.com/en-us/library/ms732012.aspx)

servicemodelreg.exe -i 

but real source of 404 caused me trying go http://yoururl/somewhere.svc instead of http://yoururl.blahblah.com/somewhere.svc (i.e. baseaddressprefixfilter causing 404).

hope helps!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -