locked
WCF Rest windows authentication RRS feed

  • Question

  • Hi everyone.

    I am create wcf rest service with windows authentication. And when i turn on 

    System.Web.Routing.UrlRoutingModule
    

    i recive Unautorized exception. When turn of module autorization process pass correct and i see credentials in service method. 

    I don understand why route module break wcf windows authentication. On service side i use WCF starter kit. On client side i use HttpClient.

     

    Friday, September 2, 2011 2:56 PM

Answers

  • Are you declaring any routing rules?
    Please mark posts as answers/helpful if it answers your question.
    Senior Consultant on WCF, ASP.NET, Siverlight, and Entity Framework. Author of Microsoft's Official WCF 4 Course. Co-author of the Microsoft HPC/Azure burst whitepaper.
    Visit my blog: http://blogs.microsoft.co.il/blogs/idof
    Friday, September 2, 2011 8:52 PM

All replies

  • Are you declaring any routing rules?
    Please mark posts as answers/helpful if it answers your question.
    Senior Consultant on WCF, ASP.NET, Siverlight, and Entity Framework. Author of Microsoft's Official WCF 4 Course. Co-author of the Microsoft HPC/Azure burst whitepaper.
    Visit my blog: http://blogs.microsoft.co.il/blogs/idof
    Friday, September 2, 2011 8:52 PM
  • I am not declare any routing rules.
    Saturday, September 3, 2011 4:55 PM
  • Something is probably changing the request otherwise I see no reason for IIS to return unauthorized.

    Can you turn on failed request tracing in IIS? try to see from the output trace if the url rewrite is changing the request.


    Please mark posts as answers/helpful if it answers your question.
    Senior Consultant on WCF, ASP.NET, Siverlight, and Entity Framework. Author of Microsoft's Official WCF 4 Course. Co-author of the Microsoft HPC/Azure burst whitepaper.
    Visit my blog: http://blogs.microsoft.co.il/blogs/idof
    Saturday, September 3, 2011 5:09 PM
  • On iis trace log i see next error "Credentials not available in security package". But i delete System.Web.Routing.UrlRoutingModule all code work correct.
    Saturday, September 3, 2011 5:19 PM
  • I create simple sample application on my Notebook. And described case work great. I don't no why that not work on my work pc, but i know what that work generally. Thanks for the answering.
    Saturday, September 3, 2011 5:57 PM