Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
GeneralRe: need help Pin
SeMartens10-Jul-09 0:45
SeMartens10-Jul-09 0:45 
GeneralRe: need help Pin
mjawadkhatri10-Jul-09 0:50
mjawadkhatri10-Jul-09 0:50 
GeneralRe: need help Pin
N a v a n e e t h9-Jul-09 21:46
N a v a n e e t h9-Jul-09 21:46 
JokeRe: need help Pin
SeMartens9-Jul-09 21:55
SeMartens9-Jul-09 21:55 
GeneralRe: need help Pin
mjawadkhatri10-Jul-09 0:29
mjawadkhatri10-Jul-09 0:29 
AnswerRe: need help Pin
K03069-Jul-09 21:39
K03069-Jul-09 21:39 
Answer== and .Equals() are different. Pin
Nagy Vilmos9-Jul-09 22:19
professionalNagy Vilmos9-Jul-09 22:19 
QuestionHow can I encrypt to message in WCF? Pin
dataminers9-Jul-09 20:40
dataminers9-Jul-09 20:40 
My WCF properly working when SecurityMode.None. If I switch to SecurityMode.Message so it is not work in client side. My main problem is how can I encrypt to message in WCF?

Following code OK, its work;

Host Side Code
---------------------------------------------------------------------

NetTcpBinding tcpBinding = new NetTcpBinding(SecurityMode.None);

Uri tcpUri = new Uri("net.tcp://10.0.105.240:7070/HesaplamaServisi");

ServiceHost host = new ServiceHost(typeof(Hesaplayici), tcpUri);

host.Description.Behaviors.Add(new ServiceMetadataBehavior());

host.AddServiceEndpoint(typeof(IHesaplamalar), tcpBinding, "net.tcp://10.0.105.240:7070/HesaplamaServisi");

host.AddServiceEndpoint(typeof(IMetadataExchange), System.ServiceModel.Description.MetadataExchangeBindings.CreateMexTcpBinding(), "mex");

host.Open();



Client Side Code
---------------------------------------------------------------------

NetTcpBinding tcpBinding = new NetTcpBinding(SecurityMode.None);

IHesaplamalar proxy = ChannelFactory<IHesaplamalar>.CreateChannel(tcpBinding, new EndpointAddress("net.tcp://10.0.105.240:7070/HesaplamaServisi/"));



FOLLOWING NOT WORK
---------------------------------------------------------------------

I want encrypt to message, so I add following code both side;

NetTcpBinding tcpBinding = new NetTcpBinding(SecurityMode.Message);

tcpBinding.Security.Message.AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.TripleDesSha256Rsa15;

This code properly work when Host and Client same PC, If client.exe run another PC in same network this code not work. What can I do? Thanks...
AnswerRe: How can I encrypt to message in WCF? Pin
SeMartens9-Jul-09 21:09
SeMartens9-Jul-09 21:09 
AnswerRe: How can I encrypt to message in WCF? Pin
SeMartens9-Jul-09 21:10
SeMartens9-Jul-09 21:10 
QuestionModified TextBox property not persisting in designer Pin
SillyPants9-Jul-09 19:51
SillyPants9-Jul-09 19:51 
AnswerRe: Modified TextBox property not persisting in designer Pin
DaveyM699-Jul-09 22:39
professionalDaveyM699-Jul-09 22:39 
QuestionOver Lay Image Pin
satsumatable9-Jul-09 19:27
satsumatable9-Jul-09 19:27 
AnswerRe: Over Lay Image Pin
dan!sh 9-Jul-09 19:31
professional dan!sh 9-Jul-09 19:31 
QuestionTo open a new file Pin
Rupaa9-Jul-09 19:18
Rupaa9-Jul-09 19:18 
AnswerRe: To open a new file Pin
MumbleB9-Jul-09 19:22
MumbleB9-Jul-09 19:22 
AnswerRe: To open a new file Pin
0x3c09-Jul-09 19:40
0x3c09-Jul-09 19:40 
AnswerRe: To open a new file Pin
Huxley Stronghead10-Jul-09 1:15
Huxley Stronghead10-Jul-09 1:15 
Questioni want to write an application use sanner Pin
nghia.VKS@gmail.com9-Jul-09 18:38
nghia.VKS@gmail.com9-Jul-09 18:38 
AnswerRe: i want to write an application use sanner Pin
_Maxxx_9-Jul-09 19:00
professional_Maxxx_9-Jul-09 19:00 
JokeRe: i want to write an application use sanner Pin
himanshu25619-Jul-09 19:03
himanshu25619-Jul-09 19:03 
JokeRe: i want to write an application use sanner Pin
dan!sh 9-Jul-09 19:05
professional dan!sh 9-Jul-09 19:05 
GeneralRe: i want to write an application use sanner Pin
MumbleB9-Jul-09 19:23
MumbleB9-Jul-09 19:23 
GeneralRe: i want to write an application use sanner Pin
dan!sh 9-Jul-09 19:28
professional dan!sh 9-Jul-09 19:28 
AnswerRe: i want to write an application use sanner Pin
vaghelabhavesh9-Jul-09 20:37
vaghelabhavesh9-Jul-09 20:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.