Skip to main content

All Questions

Tagged with
1 vote
1 answer
15k views

How to fix "ERR_ABORTED 400 (Bad Request)" error with Jquery call to C# WCF service?

I created a simple C# WCF service that returns a string with html code. When i consume this service with a simple MVC project inside the WCF solution, everythigs works fine. Service code public ...
Mark's user avatar
  • 13
-1 votes
2 answers
63 views

405 Method Not Allowed - when sending object from jQuery to rest WCF

This question is asked a lot, but even though I tried the solutions they offered, I still get an error. I am sending a post request with a Person object as a parameter, but i get: 405 - Method ...
Zag Gol's user avatar
  • 1,076
0 votes
0 answers
1k views

Logical file 'Test' is not part of database 'Test'. Use RESTORE FILELISTONLY to list the logical file names

When i use SMO code for database restore, it throws me below exception Exception detail: Restore failed for Server 'servername'. at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(...
Prajapati Dasharath N's user avatar
0 votes
0 answers
80 views

Download multiples documents as zip (Ajax call) not working

I'm trying to download multiples documents retrieved from WCF (C#) and passing it through data.Stream. Apparently it works but I'm not able to open the downloaded zip, could someone help me please? ...
Pippo Franco's user avatar
0 votes
0 answers
55 views

WCF unable to invoke using Jquery (using Postman)

I'm trying to invoke a WCF web service using Jquery. I tried using POSTMAN tool to test it first, but I'm getting the following error: 415 Cannot process the message because the content type '...
Kanes's user avatar
  • 105
0 votes
2 answers
42 views

Send data to wcf webservice from jquery

I am trying to send a json string to a wcf webservice from a html page using jquery. But it is giving error and not returning the desired result. The html page is showing error. How to debug a service ...
Hasan Zubairi's user avatar
0 votes
0 answers
49 views

Browser Edge adding "?" to datatime chrome works fine

Error, removed some not relevant information https://example.com/_vti_bin/myWS/myWS.svc/GetAll/?removed=https://someexample.com&removed2=11&lastModified=?07?/?02?/?2018+?14?:?42?:?24&...
Mathematics's user avatar
  • 7,548
-1 votes
1 answer
57 views

CORS not working with jQuery

I have the below code in WCF RESTful Service public EmployeeJSON GetEmployeeJSON(string id) { List<EmployeeJSON> employees = new List<EmployeeJSON>() { ...
CPK_2011's user avatar
  • 1,120
0 votes
1 answer
361 views

Error 400 Bad Request AJAX (WCF)

I'm trying to use "POST" Methods in WCF but I can't use it, the only thing that I can use in my WCF service is "GET" Methods but the issues start when I try to use "POST" Methods sending Objects: ...
Antonio Labra's user avatar
0 votes
0 answers
35 views

How to call WCF as a object parameter

I tried to connect to an API through WCF service. I was successful if I pass the values as many parameters, but when I tried to pass all the parameters to a created class I can't. How can I call it ...
Merbin Joe's user avatar
1 vote
1 answer
73 views

How to use WCF method with jQuery

I am testing my first WCF Service. It has only one method which equals two values given as parameters and returns the result. It works fine when I use the Test Client provided by Visual Studio, but ...
user avatar
0 votes
0 answers
75 views

JQuery Ajax and WCF Keeping session alive

I am calling a WCF Webservice via JQuery Ajax method. The method in my WCF service doesn't access the session in anyway but it seems to be keeping my site session active thus not timing out after 3 ...
ccStars's user avatar
  • 815
0 votes
0 answers
695 views

How to download file returned from WCF REST service using AJAX

I am using the below code to download the file returned from WCF REST service (file is returned as stream). This code is working fine for text file but the files such as excel and pdf are getting ...
user17274's user avatar
0 votes
2 answers
81 views

WCF and Json Call

I am developing a WCF application and frontend uses JSON to call web methods. I have a data model class as below [DataContract] public class GL_AccMainTypeListItem { [DataMember] ...
Kamal Mahendra Sirisena.'s user avatar
0 votes
0 answers
317 views

jquery $.ajax call to WCF returns 404 not found error

I am new to WCF services. I just wanted to learn WCF with $.ajax call so created a test application which has two projects 1. WcfService1 project of Wcf service and another Client asp.net application ...
SAM's user avatar
  • 119

15 30 50 per page
1
2 3 4 5
16