Some time ago I developed a Dnn Web Api Service (DnnApiController descendant) which is consumed by a standard desktop application using the HttpClient .Net class.
For security measures, all the service methods must require authentication. This has worked fine until I changed (again for security measures) the webconfig parameter enablePasswordRetrieval="false". Since then, I can no longer call any methods of the services.
I get the following error:
{StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Cache-Control: private
Date: Tue, 27 May 2014 17:08:15 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 3640
Content-Type: text/html; charset=utf-8
}}
In order to get this working again, I must to go back and enablePasswordRetrieval or allow anonymous call to the methods. Any of them are the ideal solution.
Has someone experience the same situation?
Greetings...