Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
Questionhow to make global variables which could be accessable in all the project c# Pin
theredonion10-Jul-08 1:38
theredonion10-Jul-08 1:38 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
DaveyM6910-Jul-08 2:02
professionalDaveyM6910-Jul-08 2:02 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
c242310-Jul-08 3:16
c242310-Jul-08 3:16 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
PIEBALDconsult10-Jul-08 4:05
mvePIEBALDconsult10-Jul-08 4:05 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
RK KL10-Jul-08 5:22
RK KL10-Jul-08 5:22 
Questionproblem in gridview Pin
Mogaambo10-Jul-08 0:52
Mogaambo10-Jul-08 0:52 
AnswerRe: problem in gridview Pin
dan!sh 10-Jul-08 1:17
professional dan!sh 10-Jul-08 1:17 
QuestionWCF and Mtom Pin
Simon Lime10-Jul-08 0:19
Simon Lime10-Jul-08 0:19 
I am consuming a secure java webservice over https from an Excel Office add-in.

I am having problems with a method which both uploads and downloads a file. My binding looks like this:-
<binding name="uploadServiceHttpBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="67108864" maxBufferPoolSize="524288" maxReceivedMessageSize="67108864"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="TransportWithMessageCredential">
' <transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

And the method signature like this:-
public byte[] uploadFromOffice(byte[] fileBytes, String fileName, Long folderId)

When I run the upload succeeds however c# does not like the response, I get the following error:-
There was a communication problem. The content type multipart/related; type="application/xop+xml";
start="<soap.xml@xfire.codehaus.org>"; start-info="text/xml"; boundary="----=_Part_8_23410216.1215684578307" of the response message
does not match the content type of the binding (text/xml; charset=utf-8).

I have been told that the web service is Mtom enabled. When I change my message encoding in my binding to be messageEncoding="Mtom" the server does not like the request and I get this error:-
'There was a communication problem. Could not find the attachment cid:http%3A%2F%2Ftempuri.org%2F1%2F633512846834593677'

Does anyone have any suggestions on where I am going wrong, or how to set about debugging this?
Questionwhy my program breaks? Pin
George_George9-Jul-08 23:55
George_George9-Jul-08 23:55 
AnswerRe: why my program breaks? Pin
Thomas Stockwell10-Jul-08 4:55
professionalThomas Stockwell10-Jul-08 4:55 
GeneralRe: why my program breaks? Pin
George_George10-Jul-08 16:03
George_George10-Jul-08 16:03 
QuestionMDIChild FormBorderStyle.None Pin
Cristina Afonso9-Jul-08 23:33
Cristina Afonso9-Jul-08 23:33 
QuestionMDI problem Pin
Yulianto.9-Jul-08 23:15
Yulianto.9-Jul-08 23:15 
QuestionDo you know which event fire ? Pin
banker_kiran9-Jul-08 23:04
banker_kiran9-Jul-08 23:04 
QuestionHow to store connection string in global.asax file and web.config file using c# Pin
sacr839-Jul-08 22:50
sacr839-Jul-08 22:50 
QuestionMaskedTextBox Time Validation in Visual C#.Net Pin
somagunasekaran9-Jul-08 21:33
somagunasekaran9-Jul-08 21:33 
QuestionHow to pass value from thread to GUI in C# Pin
Susanmat9-Jul-08 21:32
Susanmat9-Jul-08 21:32 
AnswerRe: How to pass value from thread to GUI in C# Pin
N a v a n e e t h9-Jul-08 22:38
N a v a n e e t h9-Jul-08 22:38 
GeneralRe: How to pass value from thread to GUI in C# Pin
Susanmat9-Jul-08 22:57
Susanmat9-Jul-08 22:57 
GeneralRe: How to pass value from thread to GUI in C# Pin
Daniel Grunwald9-Jul-08 23:22
Daniel Grunwald9-Jul-08 23:22 
GeneralRe: How to pass value from thread to GUI in C# Pin
Susanmat10-Jul-08 0:26
Susanmat10-Jul-08 0:26 
GeneralRe: How to pass value from thread to GUI in C# Pin
N a v a n e e t h10-Jul-08 1:43
N a v a n e e t h10-Jul-08 1:43 
AnswerRe: How to pass value from thread to GUI in C# Pin
RK KL10-Jul-08 5:31
RK KL10-Jul-08 5:31 
GeneralRe: How to pass value from thread to GUI in C# Pin
Susanmat10-Jul-08 21:13
Susanmat10-Jul-08 21:13 
Questionexecute sql Pin
arkiboys9-Jul-08 21:02
arkiboys9-Jul-08 21:02 

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.