.net - TcpClient Fails On Web Service Method?
Feb 15, 2011
i tried to use external assembly in my web service method (Web service is worked in LAN). This external assembly in their own internals use TcpClient to access to external IP address. But unfortunally. Creation of TcpClient fails.
System.Net.Sockets.SocketException was caught
Message=A socket operation has encountered a dead network xxx.xxx.xxx.xxx:xxxx
Source=System
ErrorCode=10050
[code]...
View 1 Replies
Similar Messages:
Aug 6, 2010
My web services have base web service method called IsGood()I want to make sure every methods in my web service call IsGood() in base web service automatically without add code in each web service method, can I do that?
View 2 Replies
Nov 19, 2010
asp.net 3.5...
I changed a method from public static void LogError(Exception exception) to public static Guid LogError(Exception exception) and once deployed the app throws the error
Method not found: 'System.Guid DefaultTechnologies.Portal.BusinessLogic.Common.LogError(System.Exception)'.
When deployed I sent all non-third party *.dll to be dropped into the bin folder. Runs fine from my machine :) but fails like crap everywhere else.
View 3 Replies
Mar 1, 2011
I have the following javascript tag inside my aspx head
[Code]....
GetWithCdn is a public method inside the codebehind file. but this is not getting called when i run the page? can anyone tell me why this is happening. because same method worked on a different page.
View 1 Replies
Feb 8, 2010
I want to create a web method that accepts a List of custom objects (passed in via jQuery/JSON). When I run the website locally everything seems to work. jQuery and ASP.NET and everyone is happy. But when I put it on one of our servers it blows up. jQuery gets a 500 error after the ajax request with the response being:
System.InvalidOperationException: EditCustomObjects Web Service method name is not valid.
[WebMethod]
public void EditCustomObjects(int ID, List<CustomObject> CustomObjectList)
[code]...
View 8 Replies
Feb 17, 2011
I am consuming a Web service passing it an XML string. The WS is querying a SQL Databse and returns an XML string. It all works fine from within Visual Studio 2010. Running the website from the browser, I receive the following error when calling ws.method "RQ.ProcessRequest(XMLOut, XMLIn)":
INNER EXCEPTION: System.Exception: The login failed when connecting to SQL Server SOMTSNAV01
[Code]....
Is there some additional credentials I need to pass to the WS? Is there anything that needs to be done on th WS side to ensure login does not fail? Ideas anyone?
View 1 Replies
Feb 21, 2011
I've got a web service on a server with valid IP and valid DNS entries. I'm using an asynchronous thread in a WPF .NET application to access methods from that web service. Under normal connection conditions, for almost all users, the connection and method works fine. Under a very specific condition - Verizon Aircard being used to connect, no VPN connection to the company through SSTP, on a PC with Forefront Client Security installed - the web service will return a "HTTP Error 400: Bad Request" error to the user. If the same user on the same PC connect their VPN connection, the method works flawlessly.
View 1 Replies
Jan 21, 2010
I am looking to incorporate web service into my application but am running into a problem. The following line of code in FwkComm.js document generates the following error: Microsoft JScript runtime error: 'FwkService' is undefined.
[Code]....
View 3 Replies
Mar 30, 2011
I have an ASMX web service which, in turn, creates a Service Reference which ultimately calls a third party web service. So, in essence, my ASMX is acting as a proxy to the thrid party service. This works fine on my development box.When I deploy to a target server and call my ASMX web service, it fails with an object instance not set error. On closer inspection, it looks as if the failure is in the line of code which creates an instance of the Service Reference - DIM XXX as new ServiceReference.I'm guessing that something has gone missing in the deployment, but can't see what.
View 1 Replies
Aug 17, 2010
I have built a WCF Service that is being consumed by a Silverlight app. At first I created one method that was very simple:
public String SfTest()
{
return "SF Test";
}
No poblem. My silverlight app references my service and displays "SF Test" in a textbox. Now I add a method to my wcf service like this:
public List<String> GetTest()
{
List<String> list = new List<string>();
String a = "a";
list.Add(a);
String b = "b";
list.Add(b);
return list;
}
I update the reference to the service in my Silverlight app and the using statement in my xaml cs page throws an error like the service doesn't even exist although it is there. I am assuming the problem has to do with datatypes or serialization or something like that but it is driving me up the wall. Why can't I consume a simple generic list in my Silverlight app through the WCF service.
View 1 Replies
Jan 20, 2010
We have an asp.net web service running on Windows Small Business Server 2008 SP2 (64-bit). It is in its own application pool. We've tried both Integrated and Classic settings for Managed Pipeline Mode. Enable 32-bit Applications is set to True. It is not able to successfully call a vb6 dll method but a Windows Forms app on the same machine can.Two vb6 dlls (A and B) are instantiated. The method in A is passed a reference to B as one of its parameters. That method then calls other methods within itself that also require the reference to B.Those internal method calls in A fail with this vb6 error (the A method logs these errors in the Windows Application event log):
70 (Permission Denied)
Another error is also logged in the Windows System event log:
The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {xxx} to the user NT AUTHORITYNETWORK SERVICE SID (S-1-5-20) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.The object in question (a third vb6 component which is an ActiveX EXE) has already been configured using DCOMCNFG (Component Services) with full Launch, Activation, and Access Permissions given to NETWORK SERVICE and even Everyone. Additionally, from Explorer, full control/permissions have been give to all required vb6 components to NETWORK SERVICE (tried Everyone too).
A Windows Forms application on the same machine is able to successfully call the method in A. The same web service works on another machine with a 32-bit OS.Both the web service and the Forms app have been built with Platform Target set to "x86".How can we get the web service call to work on the 64-bit machine?
View 1 Replies
Jul 5, 2010
I have the following code using the TcpClient
byte[] encbuff = System.Text.Encoding.UTF8.GetBytes("username" + ":" + "password");
string follow = "track=soccer,twitter";
byte[] encode_follow = System.Text.Encoding.UTF8.GetBytes(follow);
[code]...
View 1 Replies
Jan 15, 2011
I am using a gridview to select a record and control that record using a details view. I am using a class based objectdatasource to link the data for select, update and delete. Sofar the select works but the update fails. Here is my error message:
ObjectDataSource 'odsDetailsView_1' could not find a non-generic method 'UpdateSet' that has parameters: setId, TYPE, iHPlayer, iAPlayer, iHRuns, iARuns, iH8Break, iA8Break, iHe8s8, iAe8s8, iH15BRn, iA15BRn, iHWins, iAWins, SET_ID, MATCH_FK, HOME_MEMBER_ID_FK, AWAY_MEMBER_ID_FK, HOME_TABLERUN, AWAY_TABLERUN, HOME_8BALLBREAK, AWAY_8BALLBREAK, HOME_E8S8, AWAY_E8S8, HOME_15BRN, AWAY_15BRN, HOME_TOTALWON, AWAY_TOTALWON, HOME_POINTS, AWAY_POINTS, LOCKED, GROUP_FK.
The first group of parameters have lower case letters and they come from my objectdatasources update method parameters. The second group of parameters are all capitalized and they are the fields in my SQL database table (and I don't know how they wound up in the error). This might be a clue.When executing the code my class method never gets the chance to execute because the error pops up before the code gets there.
Here is my objectdatasource:
[Code]....
Here is my detailsview:
[Code]....
Here is my class update method constructor:
[Code]....
View 1 Replies
Feb 23, 2010
A customer has asked that we do a dynamic whois lookup on the homepage of their ASP.NET site, based on the IP of the user accessing the site.The implementation would be something like what's described here:
http://www.aspheute.com/english/20000825.asp
However, I noticed that this code connects to whois.networksolutions.com. I am thinking that this may not scale very well if we are initiating a connection to this remote server on every page load.For example, say 1000 different users hit the home page - this would cause a lot of connections to be initiated.
View 3 Replies
Apr 27, 2010
have a working ASP.NET 3.5 webservice that accepts standard POST requests using an encoding type of application/x-www-form-urlencoded. I then added a method which needs to accept an uploaded file. We change the encoding type of the request to multipart/form-data so that we can get the file data and now we receive the following error:System.InvalidOperationException: Request format is invalid: multipart/form-data
View 3 Replies
Jul 12, 2010
In IIS I have a virtual directory with only windows authentication enabled. From Javascript I call into a ASMX webservice. From the ASMX webservice I make a call to the SharePoint Search.asmx Webservice. whatever I try I keep getting the followin gerror message:
"The request failed with HTTP status 401: Unauthorized"
I use the following code to call the SharePoint webservice
[Code]....
My web.config settings are:
[Code]....
The Sharepoint farm is configured to use NTLM authentication.
Strangely everything works when I am testing in Visual Studio using the builtin webservice, but when I deply to my local IIS or Test Server it breaks.
View 1 Replies
Nov 8, 2010
Locally I have the cascading dropdown which loads countries in a cascading dropdown working.
But as soon as I place the code on the hosting server, Firebug shows me an:
500 Internal Server Error - [URL]
The cascading dropdown just shows "[Method error 500]"
REMEMBER: IT WORKS ON MY LOCAL SERVER!!!
local configuration:
Windows 7
IIS7.5
ASP.NET4
server configuration:
Windows Server 2008
IIS7.5
ASP.NET4
So it almost MUST be something on my hosting server! :s I dont know what to configure though...
[code]....
View 5 Replies
Oct 6, 2010
To me this should be much easier, but I can't seem to retain the values that are put in the Insert template upon a validation failure or when the sql fails. This will prevent the user from having to retype everything agin in the event of a failure.
As you can see I am using the Sub Insert_Click and not using an insert through the wizard. so the fields are unbound textboxes on the form. There are 2 dropdowns that provide choices for the other fields.
I pasted in the code using the text only option becuase the format was getting messed up. I probably need more background on why the fields are blanking out.
[code]....
View 8 Replies
Jan 5, 2011
We have a web application that makes a call to a remotely hosted ASMX service that worked in Server 2003 under IIS6. We are now migrating it to a Server 2008/IIS 7 setup and it doesn't appear that the application makes the call to the remote web service anymore. We ran Wireshark and don't see any traffic to the service URL. It seems to throw a 404 error without trying to connect.
Is there some security policy or restriction in Server 2008 or IIS 7 we need to set to allow an ASP.NET application make a call to a remote web service? We are using Network Service as our application pool user, but also tried using Local System as a troubleshooting step. In addition, the same code works if run from a console application on the server instead of the web application.
Is there some setting under IIS7 or server 2008 that would be causing this?
View 3 Replies
Jun 13, 2010
I am using Microsoft SQL server 2008 reporting service to generate PDF reports for my application.All was working fine, until I start to get the following error. I came to know after some google that this is because of some JPG images having metadata. If I have png image then its fine, but for me to convert these jpg to png is not an option, since all I have available is JPG.I installed service pack 1 as well, but its same. I have following SQL server installed.
"Microsoft
SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)"
I found few solutions like mentioned here http://support.microsoft.com/kb/967618 But thats for 2005. Surprisingly, already solved error for 2005 coming for 2008.
Non-negative number required.
Parameter name: value
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.ArgumentOutOfRangeException: Non-negative
number required.
Parameter name: value
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: [ArgumentOutOfRangeException: Non-negative number required.
Parameter name: value]
System.IO.MemoryStream.set_Position(Int64 value) +10435528
View 3 Replies
Jan 26, 2010
can I create more than one method on a web service? Because the other method does not exist when I set my web service to be the start page. I created a web service for my autocomplete.
View 3 Replies
Mar 12, 2011
I am using Tuple class in WCF Service. When i add reference to my web project I get Tuple class. Now i want to add an extension method to Tuple<> class in my service which will be accessible in my Web project.
View 1 Replies
Nov 24, 2010
Since a page method can only be called from the browser page that's talking to the aspx page that created the client, is it a correct assumption that a page method is more secure than a web service that's live on the internet for anyone to connect to?
View 1 Replies
Mar 19, 2011
For the moment, I have a page method that I call with javascript/jqeury and the server returns a json object. I'm realizing that I'd actually like to have this page method on every page. Of course, I could copy paste the page method on every page but I'm looking into better options.1) Putting the page method in the master page. Is this easy to do? 2) Creating a web service. My question is this: for now, the page knows which client is requesting the method through the sessionID; does a web service also know who's calling it? In term of performance, are they comparable?Let me know you have any suggestions and what I should watch out for.
View 2 Replies
Dec 12, 2010
In my WCF service i exposed two services service1 and service2 now consumer/client do not intrest to consume service2 then how he will restrict this?
View 1 Replies