Questions tagged [protocolexception]
41 questions
0
votes
0 answers
I get an error using svcutil to generate the WCF client of a Named Pipe service hosted using ServiceHost
I am using the following command:
svcutil.exe /language:c# /out:agnServiceClient.cs /config:app.config
net.pipe://localhost/agnService
And I'm getting the following ProtocolException on the server:
Stream Security is required at
…

Ignacio Soler Garcia
- 21,122
- 31
- 128
- 207
0
votes
1 answer
Must I Get The Response Code From The Server?
I have the following code
URL url = new URL(pushURL);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type",…

Mushy
- 2,535
- 10
- 33
- 54
0
votes
1 answer
Cannot write output after reading input; Experiencing this but not certain of cause
I am experiencing this problem although not sure if exactly.
I have discovered Cannot write output after reading input in logs and, per the above, I believe this is occurring because of a getResponseCode() followed by a getOutputStream().
Would this…

Mushy
- 2,535
- 10
- 33
- 54
0
votes
1 answer
Volley gives a Protocol Exception error, 21 too many followups
This is the function I call:
public static void sendData(final Integer type , final String url, final Context context, final CrudStateCallback back){
StringRequest jr = new StringRequest(type, url,
new Response.Listener() {
…

rosu alin
- 5,674
- 11
- 69
- 150
0
votes
2 answers
java.net.ProtocolException: Unexpected status line:
I am new to Java and Android programming, I'm trying to get the result of a PHP file on my server but I get the following exception:
java.net.ProtocolException: Unexpected status line:
07-10…

Cliff Burton
- 3,414
- 20
- 33
- 47
0
votes
1 answer
ActiveMQ ProtocolException Invalid CONNECT encoding
What means this warning in ActiveMQ?
jvm 1 | WARN | Transport Connection to: tcp://xx.xxx.xxx.xxx:xxxxx failed: java.net.ProtocolException: Invalid CONNECT encoding
I use ActiveMQ as broker and connect from Android with MQTT. I get every…

Puls
- 59
- 1
- 7
0
votes
1 answer
com.android.volley.NoConnectionError: java.net.ProtocolException: Unexpected status line: HTTP/1.1 401.3 Unauthorized
The following is my code. I got com.android.volley.NoConnectionError: java.net.ProtocolException: Unexpected status line: HTTP/1.1 401.3 Unauthorized.
RequestQueue queue = Volley.newRequestQueue(this);
String url =…

DaisyYoun
- 93
- 1
- 11
0
votes
1 answer
HttpWebRequest.GetResponse giving Internal Server Error
I want to make a request to a web service with Http-Post approach. Here is my code in C#.
static void Main(string[] args)
{
var _url = "http://localhost/EventWebService/EventWebService.asmx";
var _action =…

ceskin
- 13
- 5
0
votes
1 answer
Silverlight - WCF error
I have a problem consuming a WCF service through a silver light application, the problem suddenly happened today, the same piece of code was running successfully 1 month ago,
I got the following exception:
{System.ServiceModel.ProtocolException:…

user2326796
- 13
- 3
0
votes
2 answers
Receiving an image from a SOAP service results in ProtocolException
I'm trying to access a SOAP service that returns an image for a request. The content-type is image/png. Now I get the following ProtocolException when invoking the method:
The content type image/png of the response message does not match the…

cguedel
- 1,092
- 1
- 14
- 28
0
votes
2 answers
Webservice returns wrong content-type response header
I am trying to use third-party web service (php-based) in asp.net c# application, and failed with service configuration.Already tried add service/web reference - all the same error :
The content type text/html of the response message does not match…

tbd
- 3
- 1
- 1
- 4