Try our conversational search powered by Generative AI!

WCF service stops working when logging in to Episerver

Vote:
 

I have a WCF service that is reachable by anonymous users on my Episerver site. The service works fine as long as I'm not logged in to Episerver; when I log in Episerver sets a cookie called ".EPiServerLogin" which seems to make the application authorize all users with Forms authentication. I'm guessing that since my WCF service is configured for Anonymous authentication it stops working when the app switches to Forms auth. 

Some additional information is that the problem only occurs over https, when I run the site locally on http I can be logged in to Episerver and use my service.

Does anyone have an idea of how to solve this?

#175215
Feb 15, 2017 9:34
Vote:
 

How exactly it stops? 401, 404 or 500 statuses?

#175280
Feb 15, 2017 17:25
Vote:
 

I've tested in Firefox and Chrome so far and as long as I'm not logged in to Epi I get 200 from the service, but when I log in the status code is simply empty (to be precise, in chrome the status is "(failed)"). In the chrome console I get an error message: "net::ERR_CONNECTION_RESET". This message seems to usually be connected to issues with certificates, but I don't really understand why it would appear only when I'm logged in to epi.

#175306
Feb 16, 2017 8:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.