Answered by:
CRM Customer Portal - Can't Log In

Question
-
Hi,
I have been working on installing the 2011 CRM Customer Portal on an Azure hosted server for the past couple of days. I am running into some roadblocks - mainly because the installation guides are somewhat old (beginning of 2011, and it's now the latter part of 2012), so some of the screen shots of Azure, Live Developer Center, etc. are not exactly the same. I've made a lot of good progress, and have read between the lines and now have a sort-of functional portal - in the sense that it is up and running and accessible via web.
But now I am having an issue logging in. I have followed the instructions to the letter and have the different types of logins available (Yahoo!, Google, Live). They all seem to be working to the point where you're taken to the appropriate site to login. The site will ask your permission, etc. and then you get redirected back to the portal. Now here's where the problem starts:
No matter which type of login you choose, you ultimately get this message:
~We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.~
Possibly worth noting, the error is displayed on these two URL's, depending on the type of authentication selected:
http://XXX.cloudapp.net/LiveID.axd & http://XXX.cloudapp.net/Federation.axd
I've double checked all the settings. I've deleted and started over. I just can't figure it out.
I hope someone out there has run across this and can possibly give me a little help. Anything would be greatly appreciated!!!
Thanks in advance :)
- Edited by Lightspeed Voice Friday, August 10, 2012 10:48 PM
Friday, August 10, 2012 10:42 PM
Answers
-
Hi, I was in exactly the same position as you today with an Azure install and was getting the "We're sorry, but something went wrong." message on login.
I solved the problem by going back through the "Configuring the Portal" section in the "Portal Configuration Guide - Windows Azure ACS Authentication" document on the skydrive. I was missing a couple of changes to the default Web.config that weren't immediately obvious on the first read through.
In particular - I hadn't updated requireHttps to be "true" here:
<federatedAuthentication>
<wsFederation passiveRedirectEnabled="false" issuer="https://[Service Namespace].accesscontrol.windows.net/v2/wsfederation" realm="[Realm URI]” requireHttps="true"/>
<cookieHandler requireSsl="false"/>
</federatedAuthentication>And I was using http rather than https in one of the other url's that I'd pasted in.
Finally, I added: invitationCodeKey="InvitationCode" as show in John Leung's post on this topic here:
http://social.microsoft.com/Forums/en/crmlabs/thread/99d35e87-0965-45d4-a297-565cbf4558cf
One of those changes sorted the problem for me. I may go back and figure it out when I have more time, but I hope it provides you with something to try!
Kind regards,
Simon
- Edited by Sapphiel Tuesday, August 14, 2012 7:41 AM Edited to correct a spelling mistake in John Leung's name.
- Marked as answer by Lightspeed Voice Tuesday, August 14, 2012 11:49 PM
Monday, August 13, 2012 11:03 PM -
Hi Sapphile,
Thanks for taking the time to write that reply! Yesterday I too figured out what was happening. In my case, we were missing:
<certificateValidation certificateValidationMode="None"/>
out of the web.config. once I put it in there underneath </issuerNameRegistry>, I was able to log in!!
Now, I'm unable to edit any of the pages. When I click, I get a couple different errors:
"An error has occurred while saving your content. Your changes have not been saved"
&
"An error has occurred while loading content required for this feature"
Any chance you've run across this error????
Thanks again!
- Marked as answer by Lightspeed Voice Tuesday, August 14, 2012 11:49 PM
Tuesday, August 14, 2012 2:07 PM
All replies
-
Hope I'm not being impatient. Would really appreciate a pointer!
- Proposed as answer by Anaís Tuesday, January 29, 2013 6:40 PM
Monday, August 13, 2012 2:08 PM -
Hi, I was in exactly the same position as you today with an Azure install and was getting the "We're sorry, but something went wrong." message on login.
I solved the problem by going back through the "Configuring the Portal" section in the "Portal Configuration Guide - Windows Azure ACS Authentication" document on the skydrive. I was missing a couple of changes to the default Web.config that weren't immediately obvious on the first read through.
In particular - I hadn't updated requireHttps to be "true" here:
<federatedAuthentication>
<wsFederation passiveRedirectEnabled="false" issuer="https://[Service Namespace].accesscontrol.windows.net/v2/wsfederation" realm="[Realm URI]” requireHttps="true"/>
<cookieHandler requireSsl="false"/>
</federatedAuthentication>And I was using http rather than https in one of the other url's that I'd pasted in.
Finally, I added: invitationCodeKey="InvitationCode" as show in John Leung's post on this topic here:
http://social.microsoft.com/Forums/en/crmlabs/thread/99d35e87-0965-45d4-a297-565cbf4558cf
One of those changes sorted the problem for me. I may go back and figure it out when I have more time, but I hope it provides you with something to try!
Kind regards,
Simon
- Edited by Sapphiel Tuesday, August 14, 2012 7:41 AM Edited to correct a spelling mistake in John Leung's name.
- Marked as answer by Lightspeed Voice Tuesday, August 14, 2012 11:49 PM
Monday, August 13, 2012 11:03 PM -
Hi Sapphile,
Thanks for taking the time to write that reply! Yesterday I too figured out what was happening. In my case, we were missing:
<certificateValidation certificateValidationMode="None"/>
out of the web.config. once I put it in there underneath </issuerNameRegistry>, I was able to log in!!
Now, I'm unable to edit any of the pages. When I click, I get a couple different errors:
"An error has occurred while saving your content. Your changes have not been saved"
&
"An error has occurred while loading content required for this feature"
Any chance you've run across this error????
Thanks again!
- Marked as answer by Lightspeed Voice Tuesday, August 14, 2012 11:49 PM
Tuesday, August 14, 2012 2:07 PM -
That is a separate issue. To diagnose this problem, open the IE developer toolbar (or use Fiddler) and get a network trace to the cms.svc call. It will likely have returned an error 500. Look at the message that is in the response and post it here. If it returned a 404 error, this is a known bug in the latest service pack for Windows Server 2008 R2 (and Windows 7) and you have to install the update. The details are on my blog site: http://community.adxstudio.com/blogs/shan/service-pack-1-breaks-asp-net-routing/
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Thursday, August 30, 2012 12:20 PMModerator