PTracker Authentication fails

PTracker Authentication fails

Old forum URL: forums.lhotka.net/forums/t/8949.aspx


kwadwo posted on Monday, May 17, 2010

Hi,

i am new to CSLA and i just got the PTracker sample applicaiton. i am trying to run the PTWeb sample. i have configured my wcf dataportal and i am able to view the service wsdl through the web url correctly.

for some reason, even though i have setup the ptracker database and security database according to the directions Rocky gave, authentication still fails. i get the following exception error when i try to login to the PTweb application.

The request for security token could not be satisfied because authentication failed

  i have cross checked my connection strings in the web.config on both the PTweb and wcf dataportal and they are correctly formed. i have been struggling with this for 2 weeks! and i am making no progress.

does any body know what i could be doing wrong? i am running on IIS 7 on a windows 7 os and a SQL 2005.

any pointers or any help on how to make the ptracker sample project work will be a great help to me!

thanks!

 

RockfordLhotka replied on Monday, May 17, 2010

Have you put a breakpoint in the global.asax code where the authentication is handled? You should be able to walk through that code and see the authentication request.

Also, there's the custom membership provider class - put a breakpoint there to walk through the process that occurs after the user clicks the login button.

kwadwo replied on Tuesday, May 18, 2010

Hi Rocky,

after steping through the code. i found that it throws the exception:

"Caller was not authenticated by the service" when the Fetch method is called on line 232 in the DataPortal class.

try

{

result = proxy.Fetch(objectType, criteria, dpContext);

}

 

catch (Server.DataPortalException ex)

{

.....

could it be that my dataportal is not well configured?

RockfordLhotka replied on Tuesday, May 18, 2010

What is the actual exception? That message text is not familiar to me, and it doesn't really tell us anything about what is happening.

Copyright (c) Marimer LLC