Answered by:
Web page authentication

Question
-
Hi ,
In my CRM form i am calling an aspx page. It loads successfully in the form .But when i do a page refresh inside CRM form it asks for Authentication.Can anyone let me know how i can stop this.
Thanks, AarchTuesday, October 13, 2009 8:43 AM
Answers
-
This appears to be a site configuration issue. Please make sure that the custom site (page) uses windows authentication.Adding the custom page to the trusted sites list will also solve the problem.Hassan.
Hassan Hussain | http://hassanhussain.wordpress.com/ | http://www.mscrmvirtualusergroup.com/- Proposed as answer by Hassan Hussain Tuesday, October 13, 2009 8:47 AM
- Marked as answer by DavidJennawayMVP, Moderator Wednesday, November 11, 2009 6:43 PM
Tuesday, October 13, 2009 8:47 AM
All replies
-
This appears to be a site configuration issue. Please make sure that the custom site (page) uses windows authentication.Adding the custom page to the trusted sites list will also solve the problem.Hassan.
Hassan Hussain | http://hassanhussain.wordpress.com/ | http://www.mscrmvirtualusergroup.com/- Proposed as answer by Hassan Hussain Tuesday, October 13, 2009 8:47 AM
- Marked as answer by DavidJennawayMVP, Moderator Wednesday, November 11, 2009 6:43 PM
Tuesday, October 13, 2009 8:47 AM -
Hi ,
I tried this but no help :-(
this is the code which i have used inside the aspx page
// Set up the CRM Service.
CrmAuthenticationToken token =
new CrmAuthenticationToken();
// You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0;
token.OrganizationName =
"orgname";
CrmService service =
new CrmService();
service.Url =
"url";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.
CredentialCache.DefaultCredentials;
In the web.config also the authentication mode is windows
Thanks, AarchTuesday, October 13, 2009 9:40 AM -
Where is this code deployed? Under MS CRM website or as a separate site?I do not believe there is an issue with the code. It is most probably your IIS settings.Hassan.
Hassan Hussain | http://hassanhussain.wordpress.com/ | http://www.mscrmvirtualusergroup.com/Tuesday, October 13, 2009 9:46 AM -
Hi Hassan,
the code is deployed under crm website only. i added the sites in Trusted sites also but no hope :-(
Thanks, AarchTuesday, October 13, 2009 9:49 AM