pclarke7
asked on
URL with Parameters is failing
Hello
I have WCF service which emails invitation for members to join a particular enterprise. The URL sent to the users is as follows:
Please respond to invitation using the Link below:
http://www.tios.ie/account/invite.aspx?enterprise=AAAAAA&enterpriseName=BBBBBB&emailaddress=CCCCCC
This would take this to the Invite Page where they could accept or reject the invitation. This all worked fine until recently. However now when the URL is clicked, instead of going to the invite page , it seems to be trying to redirect to the Login Page. Nothing is displayed but the URL displayed on the browser is as follows:
http://www.tios.ie/Account/Login.aspx?ReturnUrl=%2faccount%2finvite.aspx%3fenterprise%3dAAAAAA%26enterpriseName%3dBBBBBB....
I am not sure why this is happening or how I would go about debugging. Appreciate some suggestions.
I have WCF service which emails invitation for members to join a particular enterprise. The URL sent to the users is as follows:
Please respond to invitation using the Link below:
http://www.tios.ie/account/invite.aspx?enterprise=AAAAAA&enterpriseName=BBBBBB&emailaddress=CCCCCC
This would take this to the Invite Page where they could accept or reject the invitation. This all worked fine until recently. However now when the URL is clicked, instead of going to the invite page , it seems to be trying to redirect to the Login Page. Nothing is displayed but the URL displayed on the browser is as follows:
http://www.tios.ie/Account/Login.aspx?ReturnUrl=%2faccount%2finvite.aspx%3fenterprise%3dAAAAAA%26enterpriseName%3dBBBBBB....
I am not sure why this is happening or how I would go about debugging. Appreciate some suggestions.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It really depends on the kind of authentication and how it is implemented with this page.. maybe a simple attribute may do it, but without hands on the entire system and source, it's just wild guessing..
You need to talk the that 3rd party company.
You need to talk the that 3rd party company.
Nothing is displayed but the URL displayed on the browser is as follows:
http://www.tios.ie/Account/Login.aspx?ReturnUrl=%2faccount%2finvite.aspx%3fenterprise%3dAAAAAA%26enterpriseName%3dBBBBBB....
I am not sure why this is happening or how I would go about debugging. Appreciate some suggestions.
try sending again the email with correct email content and test it in different email clients, see whether you got the same issue?
ASKER
Thanks All for your comments. Ste5an was correct in that it was authentification issues. I got it working by exempting the page in question by adding the following code to the web.config
<location path="Account/Invite.aspx">
<!--//path here is path to your Account/Invite.aspx page -->
<system.web>
<authorization>
<allow users="*"/> <!-- this will allow access to everyone to Account/Invite.aspx-->
</authorization>
</system.web>
</location>
ASKER
this is possible as the logic was implemented by a 3rd party and there were subsequent changes to the site afterwards. The invite is for new users to join , so they will not have a login. Therefore they are directed to a page that does not call for a logon - the page just calls a web service for Registration.
Is there any simple way to switch off authentication for this Page ?