1,314 questions
0
votes
2
answers
72
views
How to get response errors from webforms WebMethod in production?
I'm working on a .NET Framework 4.8 project using Web Forms (the one with .aspx pages). During development, I used a WebMethod tasked with fetching and validating data, returning either a success (...
0
votes
0
answers
58
views
SyntaxError: Unexpected non-whitespace character after JSON at position 221 (line 1 column 222) by ajax in asp.net
When form load at that time I am calling .asmx.cs page via Ajax at that time getting error
SyntaxError: Unexpected non-whitespace character after JSON at position 221 (line 1 column 222)
Here is my ...
0
votes
0
answers
47
views
change in one dropdownlist according to another dropdownlist by ajax in asp.net
I have two dropdownlist one with name and another with contactno on selecting name corresponding contactno want to show by ajax in .net.
Here is my load event [ in which dropdown is bind ]
service....
0
votes
2
answers
72
views
How to append rows data on grid view to header on end event page when export data to pdf?
I work on itextcharp library to export grid view to pdf .
I face issue header column display within data and it must
display above of data
so my issue data rows display above header
exactly .
I need ...
1
vote
0
answers
27
views
The length of the string exceeds the value set on the maxJsonLength property in asp.net C# [duplicate]
I want to show image through ajax by web method.
<asp:Image Height="200px" Width="200px" runat="server" ID="img_Product" CssClass="col-md-2 control-...
2
votes
1
answer
121
views
Why webservice can't return datatable in ASP.NET C#
I use this code to call an ASP.NET C# web service to access a SQL Server table:
HttpResponseMessage message2 = client.GetAsync("GetAll?Columns=*&Tbl=Coding_Sell").Result;
string ...
0
votes
1
answer
62
views
Getting undefined value by ajax success data in asp.net
I am calling function from .asmx.cs file by ajax web method. Now, I am getting output undefined value in ajax success.
Here is my code,
<input type="button" id="btnGetStock" ...
1
vote
0
answers
64
views
Terracotta-server-not-starting-after-restart-activity
Terracotta used and 10.7 level:
We restarted our terracotta server but it’s not starting up after shutdown of server.
We are getting below error in wrapper logs.
INFO | jvm 1 | 2024/03/24 22:45:22 | ...
0
votes
1
answer
81
views
Page Method returns undefined response
I am using Visual Studio 2022 for a .NET 4.7.2 project.
I created a simple page to make use of web method it's not working for me. Even the breakpoint is not being hit in web method.
I get undefined ...
0
votes
1
answer
38
views
Access Web Page User Control from a Public Shared Function
I need to access the user controls on a web page from a shared function decorated with a WebMethod. That function is being called from jQuery AJAX. When I try I can the error "Cannot refer to an ...
0
votes
0
answers
73
views
The time it takes for PageMethod to be received by code behind is not consistent
I am quite new to webpage development.
I have a ASP .NET Web Application. On my webpage, I have several controls, that when clicked, will call a PageMethod to the code behind. My concern is, when I ...
0
votes
0
answers
52
views
Getting Error: 500 error when using AJAX POST to C# Webmethod
I created a webmethod that returns an HTML string that is attached to a div at the end of a drop operation.
The first iteration of the WebMethod was named TestMethod, which worked great. When I ...
0
votes
1
answer
1k
views
Refused to connect to ‘http://localhost:5555/’ because it violates the following Content Security Policy directive: “connect-src ‘self’ https:”
Issue I’m facing now is, one of our custom Portlet which trying to establish the connection from Portal to ESB server we’re getting error on the console as “Refused to connect to ‘http://localhost:...
0
votes
0
answers
39
views
Get All row value of specfic columns on datatable
I facing issue how we can get a all row value of specific columns from datatable in a single variable using ajax
I am trying various method to get different row data some thing like this :
var table =...
0
votes
1
answer
705
views
Getting error from web service method after publish "Maximum response size reached"
Published GetDocument Web Method and it will return the File Name along with File Content, which is Base64 text of the File and it's working fine. But when we request more than 120MB file getting ...
1
vote
1
answer
259
views
An asynchronous operation cannot be started at this time in webservice
I have a webservice to convert html to pdf using PuppeteerSharp but this line
await new BrowserFetcher().DownloadAsync(BrowserFetcher.DefaultChromiumRevision);
is returning this error
An ...
1
vote
0
answers
118
views
Different sessions created when page is called by external application as a return URL
I have an ASP.Net web apps application. Where I am using session to save a data. The application calls an external application where user can select a value and the selected value is stored in an ...
0
votes
0
answers
45
views
WebService answer in c#
I am not expert of Internet communication protocols. Normally I develop some WebServices in c#, for my needs. My functions are developed with the [WebMethod] keyword and return numbers, for example ...
0
votes
2
answers
497
views
send string from c# windows form application to asp.net web server
i have a table in ms-access database
i create DataTable using select query
then convert DataTable to json and then i compress json because raw json size is 13mb
now i want to send this compressed json ...
0
votes
2
answers
62
views
WebMethod returning multiple line (list<>) from SQL query in WCF with Entity Framework Linq
Creating a WCF in VisualStudio 2017, I need to create a WebMethod that will return multiple rows from a SQL query. Here is the code that is not working...
code
[WebMethod]
public List<...
0
votes
1
answer
489
views
Exception while trying to zip files
I have a little issue with a Java service that I call in a Webmethod Flow.
I call it with 2 args filepath and filename and retrieve the archive's filepath.
This service is supposed to be call when I ...
1
vote
0
answers
77
views
How can I make ASP.NET PageMethods fail on unauthorized (401.2) rather than returning a success with an error page?
I have an ASP.NET legacy app that uses WebMethods called from the auto-generated PageMethods. I don't really understand why they don't fail when the user is unauthorized (401.2). The method returns to ...
0
votes
1
answer
222
views
Error 302 when passing multiple parameters via AJAX to ASP.NET WebMethod
I'm trying to pass three parameters to a WebMethod using AJAX in an old ASP.NET web application (NET Framework 4.6.2 project).
Note: I cannot use a form, so the three controls (id, date and ...
0
votes
1
answer
641
views
Upgrade "My WebMethods Server" from 10.1 to 10.5 using/applying patches/fixes
Could anyone please help me with steps to upgrade "My WebMethods Server" from 10.1 to 10.5 using/applying patches/fixes?
0
votes
1
answer
796
views
What is happening when i pass a date string as response to the Jquery Ajax Call from WebMethod
I attempted to pass a date as a response from the webmethod via a jquery AJAX call. and the time is in GMT/UTC format oct 26 2021 12:01 am. However, the AJAX response contains /Date(1635264118393)/, ...
0
votes
0
answers
71
views
Why isn't my WebMethod being called from javascript?
I'm working in ASP.Net 4. I have the following within the body tag of my aspx:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1&...
0
votes
1
answer
935
views
ASP.NET Request time out calling an async webmethod in ASMX from jquery
I can't figure this out in days. I have tried everything. I have to change my cloud storage so I'm trying to refactor. First of all, I'm using MinIO in an intermediate class to connect the storage.
...
1
vote
1
answer
2k
views
How do I convert an ASP.NET web method in .aspx page to a restful API?
Dears
it is the first time to post here and I hope to get the benefit from your experiences in application development.
as mentioned in the subject, I wrote C# web-method behind.ASPX page and I used ...
1
vote
2
answers
6k
views
Getting Error: 500 Internal server error when using AJAX POST to C# Webmethod
var image = document.getElementById("capture").toDataURL("image/png");
image = image.replace('data:image/png;base64,', '');
alert(image);
$.ajax({
type: 'POST'...
0
votes
0
answers
80
views
php call c# asp.net webmethod
I would like to use php to call a c# webmethod but it's unsuccessful - why?
try {
$client = new SoapClient($VerifyUser);
$params = array(
'Merchant_id' => $tbl_result['...
0
votes
1
answer
4k
views
cannot read property of undefined (reading 'ajax')
I can't access webmethod within javascript. It gives the error in the title. Why might it be caused?
Js :
function funcGoster() {
$.ajax({
type: "POST",
...
0
votes
1
answer
174
views
When multiple people try to save a transaction the user id is going null to the database
When multiple people try to save a transaction the user id is going null to the database. I am fetching user information based on session id from database each time.
I have tried query string and ...
0
votes
2
answers
616
views
Return html page in webmethod inside iframe multiview c#
Hi i want to display html page from DB using web method on anchor tag click. I get html from db but not able to display inside iframe. The html page is stored in binary format which i will be ...
0
votes
1
answer
272
views
How to send success and error messages to jQuery AJAX call from a webmethod
I am calling an asp.net webform's webmethod using jQuery AJAX, from an aspx page. When the webmethod experiences an exception I am throwing an HttpResponseException exception. I am not sure what's the ...
0
votes
1
answer
215
views
Call Webmethod to Fill DropDownList
I want to fill the DropDownList via SqlQuery in webmethod. But it gives internal Server error.
Except for the error, can't I just do this in javascript?
function doldur() {
$.ajax({
url: &...
0
votes
1
answer
199
views
Data can't be fetched in ReactJS from ASP.NET webService
I'm using ReactJS with functional components for my front-end trying to fetch data from the ASP.NET WebService,
SomeComponent.jsx
const URL = 'http://localhost:63579/WebService.asmx/ProductList'
...
1
vote
2
answers
1k
views
How to add a [WebMethod] file for WebService1.asmx?
I have a project with server side in C#.
I'm connecting to the SQL Server and want to pass it parameters to a table.
How do I open a WebMethod file ? I can't find it anywhere
neither a WebService ...
0
votes
1
answer
255
views
NET Core application WebMethod needs to pass in URL as parameter
My NET Core application exposes a Webmethod.
This method needs to accept a URL as parameter for further processing.
e.g.
mysite.com/webmethod/url=https://www.google.com
It would never go through.
...
0
votes
1
answer
107
views
In the place of image showing [object Object] when Convert Bytes To Image in asp.net
I am converting image from bytes by FromBase64String method in asp.net C# and placed in gridview field, but in gridview it showing [object object] data in the place of image.
For more clear lets see ...
0
votes
0
answers
24
views
The Function App/GetSPANList returns 401 error on server. C# asp.net
The below method returns 401 error on server. As I don't see any errors in this. Please suggest why its coming as 401 error
function loadSPANByMZ() {
try {
showLoading();
var ...
0
votes
0
answers
140
views
asp.net google charts problems my project
this code does not work. what should i do please help me there is no problem in database i couldn't find the solution
Is there a problem with WebMethod? I did everything but there is something I can't ...
0
votes
0
answers
427
views
"Web Service method name is not valid" when URL contains additional slashes after method name
I have a simple ASP WebService with a WebMethod, i.e.:
public class MyService : WebService
{
[WebMethod]
public void MyMethod()
{
return;
}
}
If I set a breakpoint in MyMethod,...
0
votes
0
answers
159
views
Unable to bind Grid view using jquery
I want to bind grid view using jquery, As per procedure i completed all steps. And while debugging i can see my web method returning value and in browser also i can see all data are appearing as ...
0
votes
1
answer
812
views
Serilog not logging in .Net WebService ASMX WebMethod
I have a .Net Web Application which I am successfully logging to file using Serilog and the File Sink. The main application is setting up the logger in the global.asax application start.
The web ...
0
votes
1
answer
300
views
AJAX method not posting to web method
I have this method that uses AJAX to post data from a form to a web method in the C# backend. Unfortunately, the method is not being hit. I did my research and all accessible resources states that ...
-2
votes
1
answer
985
views
How get async method value from non async method
I have async method called GetDetails(); to get data from API.
public async Task<string> GetDetails(string token, int tenantId, string fromDate,string searchText)
{
try
{
string ...
0
votes
0
answers
49
views
jQuery - AJAX - Upload file via FormData isn't working [duplicate]
The following setup triggers the "success" event, however the response is simply the content of the aspx page.
HTML
<input id="fileInput" type="file" />
<button ...
0
votes
0
answers
361
views
ASP.Net PageMethods executes page load event instead of method if I navigate to the page with the Web Method
I'm using ASP.Net Ajax through the PageMethods function in Javascript. This function triggers a method on the server without posting the page back. If launch the project with this page as the ...
1
vote
0
answers
158
views
How to use events fullCalendar plugin
I'm using an html template with plugin fullcalendar. I need load event from database using events as a json feed
There are many example to do this with $.ajax but I want to use native plugin tools.
...
-1
votes
1
answer
284
views
Web Method not called in ajax aspx web form
Here is my ajax request:
$("#<% =txtDiagnosisData.ClientID %>").autocomplete({
source: function (request, response) {
$.ajax({
...