All Questions
229 questions
1
vote
1
answer
16k
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 ...
-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 Not ...
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(...
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?
...
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
'...
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 ...
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&...
-1
votes
1
answer
60
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>()
{
...
0
votes
1
answer
369
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:
...
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 ...
1
vote
1
answer
77
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 ...
0
votes
0
answers
82
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 ...
0
votes
0
answers
706
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 ...
0
votes
2
answers
82
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]
...
0
votes
0
answers
318
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 ...