My scenario:I am using a web service which access the sql server database to provide an XML output. this part is working fine. I am using a SqlDataAdapter and DataTable with Fill method to get the data.
Problem:When more than one person access this web service at the same time i get the error message which is given in the subject line.
I understand the problem is because of the sql connection which is still open by the first user. If the first user completes his operation before the second users request then both the user receives the correct response.
My Solution:What i did was i initiated 10 connection strings and will check which connection string is closed and i have used this connection for the second persons request if they both access at the same time.
Error is:- The data source does not support server-side data paging.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NotSupportedException: The data source does not support server-side data paging.
Source Error: Line 34: con.Open(); Line 35: GridView1.DataSource = cmd.ExecuteReader(); Line 36: GridView1.DataBind(); Line 37: con.Close(); Line 38: }
I am seeking your expertise in ASP.Net with regards to multi-thread support of WebService in a scenario , that is If a WebService-Client is making simultaneous calls from the same process, the requests will be serialized at the WebServices so that only one-call will execute at any one time , on the contrary, if those calls are sent from different WebService-Clients ( Instances/Processes) , they are processed in-parallel by WebServices.
Have you ever experienced the same with ASP.Net, and what configurations/Settings should be followed, in order for a WebServices to concurrently process simultaneous calls form a single WebClient , when deploying a large number of Web-Clients' instances/processes is impractical in a project-context.
I have several ASP.NET 1.1 web services that make use of several common DLLs. Rather than having each web service contain its own copy of these DLLs, I would like to have these DLLs centrally located so that I don't have to remember to update each web service with new copies of the DLLs if they happen to change. For example, if web services WSA and WSB each use XYZ.DLL does XYZ.DLL need to be in both WSA and WSB or can WSA and WSB be told that XYZ.DLL is is some other folder like C:Common? Is this at all possible or do I have to have a copy of the DLLs in each web service folder?
I am trying to connect forex trade server from my asp.net application. I am using MT4 Api for connecting. Its installed successfully and added to .net code library. But when i trying to create object of MetaTrader Class i got exception
The current configuration system does not support user-scoped settings.
There is no compile time error in code. I am getting run time exception.
There are the urls where i got some hope for solution but could not able to implement.
Server does not support secure connections. at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) atSystem.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) at MailWebService.SendMail(String fromAddress, String toAddress, String subject, String body)I am using a web service to send my mail and I get this error when smtp.EnableSsl = true;If I change it to false it works
I need a book or two to get a good understanding of web services, starting from very basics, and going upto WCF. I've been using c# for 2 years and have intermediate level of experience with the language.
I have written some web services that I want to make available to others by subscription. The subscribers need to use the service from a specific domain / IP address and also authenticate with a user Id and password.
What exactly should I distribute to the subscriber so they can use the services, while exposing the least about my code?How can authenticate a consumer of services without always passing an Id / password for each service?
I've created Web Services in .Net 3.5 & Consumed those Web Services in a Client Web Application. Now i want to Host the WebService in IIS 5.1. I'm very new to .net, I'm using VS 2010, Wndows XP Service Pack 3, IIS 5.1;
I'm having my first experience with Web Services with .Net. I received from a client an integration manual to consume a web service they have.
In this manual I have the following information:
Request Interface: [URL]
Using SOAP request would return a XML Document with the response.
There's also XSD for the response XML.
Well, I'm having a little trouble trying to figure out how to consume this web service.
I found a topic here pointing to a MSDN article. There it says that I would have to add a Web Reference for this web service, but in my case this web service is external. Do I really have to add this reference to consume the web service? If yes how do I do that?
Next I have to create the XML Document that will be sent with the SOAP request. But here's a question. Searching on the internet I found mainly two types of request XML. I don't know wich one I should use.
The first one would be:
The second one is a XML file with soap:Body, soap:Header, soap:Envelope, etc.
Wich one should I create with my application in order to consume the web service? If it's the second one, how would look the XML for the data of the first XML?
And finally, how do I send the Soap request? As I said above, I found a MSDN article but it assumes I'm adding a web reference to the web service on my project and I belive that in my case I won't add this reference. So, how do I consume this web service?
I'm kind of lost here and really really soon I will have to estimate how long will take to develop the web service consume code.
How to make web services secure in asp.net both the asmx and on WCF. Currently we have web services and now are in process of converting them to WCF in some modules in our application. Now as upgradation is in process we like to incorporate security on the web services as we intend to open some of them to all our clients via web (they contain both asmx and WCF as well).
I have a webservice, that when called, calls many other web services based on the information that was sent. I have always left the timeout as the default, or a better way to describe it, I have never changed anything. How (and where) do I change the timeouts for each service individually. Since I have quite a few now, I want the original transaction to never take more than 30 seconds. That said. I want to go in and change the timeouts for the services I have to ping in that 30 seconds to be 5 to 10 seconds based on which one.