Tema: Re: WCF Message Security su sertifikatais
Autorius: Sabotage
Data: 2011-05-05 15:58:54
dekui uz linka.

Klaida ivyksta bandant vykdyti metoda client.GenerateUrl:

            ClientAccessClient client = new ClientAccessClient();



            DataObjectComplete dataObject = new DataObjectComplete()

            {

                Type = ConstantsType.Cars,

                CategorySchemaId = xxxyyy,

                LanguageId = 1

            };



            string username = "name.surname@jato.com";



            try

            {

                string url = client.GenerateUrl(dataObject, username, 
ConstantsApplicationMode.Standalone); // ERROR

                Process.Start(url);

            }

            catch (Exception ex)

            {

                Console.WriteLine(ex.InnerException);

            }





            client.Close();


Exception:
An unsecured or incorrectly secured fault was received from the other party. 
See the inner FaultException for the fault code and detail.


"rl" <ask@me.for> wrote in message news:ipu54v$qig$1@trimpas.omnitel.net...
> http://msdn.microsoft.com/en-us/library/ms733098.aspx
>
> On 2011.05.05 15:26, rl wrote:
>> Cia kaip suprantu ta pati sertifikata nori naudoti ir ant kliento ir ant
>> serverio ir viska leisti per HTTP?
>>
>> Nu tai ant serverio sudedi sertifikata i Local Computer storage'a ir
>> confige nurodai kad ji naudotu: <behavior>
>> <serviceCredentials><serviceCertificate...StoreLocation/StoreName/Name
>>
>> Ant kliento isideti i Local Computer arba Current User storage'a ir
>> nurodai kad ji naudotu: <behavior><clientCredentials>
>> <clientCertificate...StoreLocation/StoreName/Name
>>
>> Na ir jei neveikia - tai rasyk kokia klaida meta....
>> Gal tu idedi sertifikatus i viena vieta, bet nurodai kad imtu is kitos...