At first glance, that's strange as the .UseMachineKeyStore property is used
in environment where impersonating or running under an account whose user
profile is not loaded. Which is what a website is.

What was the exception ?


2010/4/26 Hadi Eskandari <[email protected]>

> Well, it runs smoothly on my local IIS but when deployed over the shared
> hosting, it throws the following exception is thrown:
> "CryptographicException: The system cannot find the file specified."
>
> To make it short, in some shared environments (even running at fulltrust),
> doing this may throw:
>
> RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();
>
> I've applied a small patch to create this differently when running in a web
> or non-web contexts. The problem, is that for this to work, you need
> System.Web added to the references (because the usage of HttpContext to
> detect if we're in a web context), which may result inability to use the
> library in Client Profile versions of the .NET Framework.
>
> Feel free to change it as you like.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino Tools Dev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rhino-tools-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to