Hi,
It looks like the documentation in web.config went out of sync with the
code.
The configuration attribute ticketManager was renamed to
serviceTicketManager when proxyTicketManager was added. In order to
process proxy tickets, the client needs to maintain some state. Proxy
support now uses a pluggable state store similar to the
serviceTicketManager. Since we only have 1 concrete implementation of
both interfaces, I would recommend having both attributes defined as
follows:
proxyTicketManager="CacheProxyTicketManager"
serviceTicketManager="CacheServiceTicketManager"
If you can provide more details on the exception (full stack trace), it
would be helpful in troubleshooting. I would recommend adding a
DotNetCasClient.csproj to your solution and using it as a project
reference instead of using DotNetCasClient.dll as an assembly reference.
Then you can set a breakpoint on the line in question. It would help to
know which parameter/configuration element is coming up null (probably
proxyGrantingTicketIou or proxyGrantingTicket) and also where this was
being called from.
public void InsertProxyGrantingTicketMapping(string
proxyGrantingTicketIou, string proxyGrantingTicket)
{
HttpContext.Current.Cache.Insert(proxyGrantingTicketIou,
proxyGrantingTicket, null, DateTime.Now.Add(DefaultExpiration),
Cache.NoSlidingExpiration);
}
I'll update the documentation in web.config to reflect the parameter
name changes. Sorry for the confusion.
-ScottH
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Sunday, July 11, 2010 12:19 PM
> To: [email protected]
> Subject: [cas-dev] [.Net CAS Client] Error on PGT mapping?
>
> This week i've done some testing on my two hosts.
> http://test2.enascoservizi.it (last trunk)
> http://sso2.enascoservizi.it/ (snapshot 48222)
>
> both on web.config have
> casServerLoginUrl="https://intranet.enasco.it:8443/cas/login"
> casServerUrlPrefix="http://intranet.enasco.it:8080/cas/"
>
>
> I do an export from the last trunk on SVN and trying to integrate dnn
> webconfig and casserver client.
>
> On past version i noticed there were a naming change on
dotnetcasclient
> attributes on web.config (respect on published compiled packager on
the
> wiki).
> (proxyTicketManager and serviceTicketManager) So i done a build from
> Visualstudio for the client project to make required dll.
>
> After that nothing to do, i get an error on file
> DotNetCasClient\State\CacheProxyTicketManager.cs
> Line 50 function, InsertProxyGrantingTicketMapping
> -------------------
> this is webpage output:
>
> Value cannot be null.
> Parameter name: key
> Description: An unhandled exception occurred during the execution of
> the current web request. Please review the stack trace for more
> information about the error and where it originated in the code.
>
> Exception Details: System.ArgumentNullException: Value cannot be null.
> Parameter name: key
> -----------------------
>
> so i deleted any dotnetnuke files and trasfered only exampleWebsite
> from last trunk.
>
> last trunk on: http://test2.enascoservizi.it (you can try with user
> castest, password castest)
> Ticket is correctly generated, i can see in querystring and if I go to
> the other hosted website (with trunk 48222 form jasig wiki) it works
> correctly. (http://sso2.enascoservizi.it)
>
> both domain are on the same machine (previously for testing I used two
> different machine) to prevent any firewall issue.
>
> At the and... There is any error on revision?
>
> Sorry for this long message
>
>
-----------------------------------------------------------------------
> --------
> Valore legale alle tue mail
> InterfreePEC - la tua Posta Elettronica Certificata
> http://pec.interfree.it
>
-----------------------------------------------------------------------
> --------
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see http://www.ja-
> sig.org/wiki/display/JSG/cas-dev
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev