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

C#

 
GeneralRe: Problem Starting Windows Service Automatically Pin
karthi8411-Jul-08 3:06
karthi8411-Jul-08 3:06 
QuestionValue in long pointer resets after a stackalloc Pin
Campden BRI Developers10-Jul-08 3:34
Campden BRI Developers10-Jul-08 3:34 
QuestionConcept of digital signing -help Pin
Emil Müller10-Jul-08 3:30
Emil Müller10-Jul-08 3:30 
AnswerRe: Concept of digital signing -help Pin
Simon P Stevens10-Jul-08 3:40
Simon P Stevens10-Jul-08 3:40 
QuestionApplying a filter to a dataset Pin
Andres Coder10-Jul-08 2:57
Andres Coder10-Jul-08 2:57 
AnswerRe: Applying a filter to a dataset Pin
Harvey Saayman10-Jul-08 3:20
Harvey Saayman10-Jul-08 3:20 
Questionconverstion of wmv to mpeg format using c# Pin
santosh04210-Jul-08 2:07
santosh04210-Jul-08 2:07 
AnswerRe: converstion of wmv to mpeg format using c# Pin
Simon P Stevens10-Jul-08 3:33
Simon P Stevens10-Jul-08 3:33 
Questionhexadecimal numbers in C# Pin
Ranger4910-Jul-08 1:46
Ranger4910-Jul-08 1:46 
AnswerRe: hexadecimal numbers in C# Pin
Giorgi Dalakishvili10-Jul-08 2:00
mentorGiorgi Dalakishvili10-Jul-08 2:00 
AnswerRe: hexadecimal numbers in C# Pin
DaveyM6910-Jul-08 2:00
professionalDaveyM6910-Jul-08 2:00 
GeneralRe: hexadecimal numbers in C# Pin
Ranger4910-Jul-08 2:07
Ranger4910-Jul-08 2:07 
GeneralRe: hexadecimal numbers in C# Pin
leppie10-Jul-08 3:16
leppie10-Jul-08 3:16 
GeneralRe: hexadecimal numbers in C# Pin
Kythen10-Jul-08 4:39
Kythen10-Jul-08 4:39 
Questionhelp need in freqency matching using c# Pin
theredonion10-Jul-08 1:41
theredonion10-Jul-08 1:41 
QuestionQuery Regarding PDA? Pin
Tridip Bhattacharjee10-Jul-08 1:41
professionalTridip Bhattacharjee10-Jul-08 1:41 
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 

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.