WCF / ASMX :: Service Reference Fails On Deployment?

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


Similar Messages:

WCF / ASMX :: Web Service Fails To Login To SQL Server

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

WCF / ASMX :: Web Service Fails - 400 Bad Request - Only Certain Connections

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

WCF / ASMX :: Create An Instance Of Web Service Without Adding Web Service Reference?

Mar 17, 2011

How to create an instance of web service without adding web service reference? How to identify the server address/name where the web service is hosted from C# code?

View 1 Replies

WCF / ASMX :: Add Service As Service Reference To VB6 Winforms Application

Feb 7, 2011

How do I add the WCF service built using VS2010 as a service reference to a Winforms app which is written in VB6?

View 1 Replies

WCF / ASMX :: Add Web Service Reference From Behind Proxy?

Jan 12, 2011

I want to add web service reference but we are using proxy. Is there a way to bypass proxy and add web service reference?

View 1 Replies

WCF / ASMX :: Service Reference Not Being Updated?

Apr 13, 2010

I have a UI that communicates with a service. I made some changes to the service- added some code and a property in the Interface associated with the service. After I made the changes, I updated the service reference in my UI and I couldn't access my newly added property. I also tried deleting the reference and adding in back again, it still doesn't work. I get the following error:

xxxxxxx(filename) does not contain a definition for xxxx(propertyname) and no extension method accepting a first arguement of type xxxxx could be found(are you missing a using directive or an assembly reference?)

When I look in the Reference.cs file, I don't see the newly added property in it.

View 5 Replies

WCF / ASMX :: Change Web Service Reference At Run Time?

Nov 12, 2010

I have web project and class projects. one of the Class project has web reference. and i am consuming it in web project.Question: can I change class projects web reference url depending on environment DEV, Release, Test?Question: While in runtime why does not web reference's url take value from app.config?(it is taking value from Settings.settings.)

View 1 Replies

WCF / ASMX :: Serialization - Can't See Service Reference In Code

Jan 19, 2011

Thing is, when my service is providing result of type string my client .aspx page is working fine and it gives reference in my code. But now I changed my service to provide custom data type and I can't see service reference in my code, intellisense doesn't offer it at all. What am I missing here? WCFTestClient.exe is giving good results but I can't create my own in VS 2008

View 1 Replies

WCF / ASMX :: Dynamic Add Service Reference In Vs2010

Mar 22, 2011

I have created WCF Application in vs2010 and using it in window application . i have added WCF service reference using "Add Web service Reference" from visual stuio. i want to do it by programming.

View 1 Replies

WCF / ASMX :: Getting Error On Adding Service Reference?

Aug 25, 2010

I am getting this error while loading(adding) it into service References (web client)

The type 'WcfTrial2.Calculation', provided as the Service attribute value in the ServiceHost directive could not be found.

How to resolve it?

View 1 Replies

WCF / ASMX :: Service Reference On Client Side?

Dec 15, 2010

I am having a strange issue in my C# Console Application:

Name Space: WcfConsoleApp
Main Class: Program.cs
Name Space: WcfConsoleApp.ServiceReference
this namespace contains the WCF service reference

After building the project, the Program.exe avaliable in Debug folder is executing fine as expected.But when i move the exe to Client, where i need to actually run this exe, it works fine up to the line where i am referencing the Service, the line is:

WcfConsoleApp.ServiceReference.ServiceClient service = new WcfConsoleApp.ServiceReference.ServiceClient();

the consoel app crashes on the client machine at this line. (i know this because before this line, i display some mesage on the console)the same .exe and works fine at my development machine.I am sure it has to do some thing with reference path, i think the program is not getting to the path where service reference is avaliable. I have copied the full project folder as it is to the client, but still its is not working.

View 4 Replies

WCF / ASMX :: To Call A Web Service Reference LiveSearchService?

Nov 29, 2010

created a web reference to this web service

http://soap.search.msn.com/webservices.asmx?wsdl

using the VS(2008) Data configuration wizard, and it found the web service and displayed various items from the service. I want to make a simple call to this web service (mainly to learn how to do it). Here is some sample code I found, but I just
don't know how to implement it.

private void Call_Web_Service_Method()
{
ServerName.WebServiceName CallWebService =
new ServerName.WebServiceName();
String sGetValue = CallWebService.MethodName();
Label1.Text = sGetValue;
}

I named my web service reference LiveSearchService. What code do I need to implement, what libraries, to retrieve any information from this web service?

View 8 Replies

C# - ASMX Web Reference Not Updating After Service Return Type Updated?

Feb 21, 2010

I have a webservice - called MyCompany.WebService1

I reference this using a web reference in my ASP.net web application.

Theres a method called "GetDeal" in this web service, that returns a "Deal" Object.

The deal object currently looks (for example) like this:

[code]....

This class is in a different assembly: MyCompany.Model

The web service references this assembly.

In my web app, I can call the GetDeal method. This returns Service1.Deal (service1 is just the name of the web reference)

I can access both properties above. I have now changed the Deal class, and added a couple more properties.

However, I can't see these new properties in my web application. I've updated the web service in the web application. I rebuilt the web service several times, tried removing the MyCompany.Model reference and re-addding it etc...

I can't figure out what has changed... This was working - I have changed the model before, and it's updated the reference correctly...

View 2 Replies

WCF / ASMX :: Adding Reference To Web Service Do Not Copy The .config File?

Jul 8, 2010

I am adding a reference of class library in web service in VS2008 and it is not copying the .config file from class library to web service. I have checked the property "Copy to output directory" of .config file and its value is "Copy Always".

View 3 Replies

WCF / ASMX :: Error When Call Service Reference Client Class

Apr 28, 2010

when svc.getLookupList(reqobj) will call i get following error.

"There was no endpoint listening at http://rets.newjerseymls.com/rets that could accept the message. This is often caused by an incorrect address or SOAP action."

View 3 Replies

WCF / ASMX :: Add Service Reference Reading Svc File But Not Reading Service?

Mar 10, 2011

I was trying to go through this tutorial:

[URL]

but when I tried to add the service reference to the silverlight app, the Add Service Reference window would show me that there was a service file, but the node wouldn't expand to show the rest of the files that contain the services and what not. I got this error instead:

"An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately."

"Parser Error Message:There is no service behavior named 'AdventureWorks_WebServer.Service1Behavior'."

"Metadata contains a reference that cannot be resolved: 'http://localhost:55579/Service1.svc'.

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

If the service is defined in the current solution, try building the solution and adding the service reference again."

here's my web.config file:

[Code]....

View 1 Replies

WCF / ASMX :: Custom Tool Error: Failed To Generate Code For The Service Reference 'CompanyService'

Aug 23, 2010

we have an existing ASP.net application that is undergoing expansion. The new functionality is all written in Silverlight 4. As part of that expansion I gutted all the old Linq to SQL and put Entity Framework 4 into place. To do this I created a standard .net Class Library and added my edmx files there. Naturally, the business entities created by this cannot be used in Silverlight. So I created a Silverlight Class Library and added all the business entities to that Silverlight Class Library as linked files. I changed the name space to be the same.

So I have the following assembly / namespaces

Company.Project.Dal.csproj / Company.Project.Entities (.net 4 class library)

Company.Project.Entities.csproj / Company.Project.Entities (SL4 class library)

With this architecture I was able to share my business entities with my SL enabled web services, my asp.net projects, my silverlight projects. Really it's a beautiful thing.

Once this was done I added "message" classes to Company.Project.Dal and again shared them with the other entites using linked files. These messages are things like MyObjectRequest; they are classes that have properties that can set to the ID of the record in the database you want to get, a search string for filtering by last name, first name, etc. (This is in the style of the Web Service Factory if you're familiar with that.)

Finally I turned the whole message into a generic using a base class called EntityRequest

[code]...

I corrected this error and everything went well for a week until I had to make my first change to the service interface. I added a new operation contract, clicked the handy Update Service Reference on my client and boom.

View 6 Replies

WCF / ASMX :: Service Reference In VS2008 / Error Downloading 'http://localhost:8000/Tasks'

Mar 3, 2011

I have developed the WCF service as follows.

1) Service Contracts in a project

2) Data Contracts in a project

3) Finally adding the reference of service contract project in a Hosting project (Console Application) with complete configurations.

I am adding one more windows app project as a client.When i am trying to add the service reference using the address "http://localhost:8000/Tasks", VS 2008 displays the below error.

There was an error downloading 'http://localhost:8000/Tasks'.

Unable to connect to the remote server

No connection could be made because the target machine actively refused it 127.0.0.1:8000

Metadata contains a reference that cannot be resolved: 'http://localhost:8000/Tasks'.

Could not connect to http://localhost:8000/Tasks. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8000.

Unable to connect to the remote server

No connection could be made because the target machine actively refused it 127.0.0.1:8000

If the service is defined in the current solution, try building the solution and adding the service reference again.

View 3 Replies

WCF / ASMX :: WCF Add Service Reference Error "The Request Failed With HTTP Status 403: Forbidden"

Apr 11, 2010

when i am adding service reference the Following erro shows Up..where as the same works on the Other machine. The url when tested in Internet explorer works but only while adding shows the error. The request failed with HTTP status 403: Forbidden. The HTTP request was forbidden with client authentication scheme 'Anonymous'.

View 5 Replies

WCF / ASMX :: Web Service Error: Object Reference Not Set To An Instance Of An Object

Jan 15, 2010

I could really use some help on this one. I've been fighting it now for several days and we are supposed to start testing early next week.I am subscribing to 4 web services all hosted by the same company. The integration with 1, 2 and 3 all went fine, but on the fourth I keep getting the very unhelpful error:

System.Web.Services.Protocols.SoapException = {"Server was unable to process request. ---> Object reference not set to an instance of an object."}
[code]...

View 9 Replies

Web Applications - Deployment Fails - Could Not Load File Or Assembly 'Microsoft.mshtml'?

Sep 22, 2010

I have developed a Web application in VS2008. It works perfectly on my development PC. When I publish and upload to the shared Windows hosting service (which supports ASP.NET 3.5), it fails (even when accessing it from my development PC). The error message is: Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.I have read many forum posts on the subject, and have tried the recommended solutions:

Set the reference to Copy Local - VS2008 does not allow Copy Local for ASP.NET references, just for WinForms references.Copy mshtml.dll into the installation directory - I have tried 3 different versions of the file, both in the root directory and /bin/, under both the names "mshtml.dll" and "Microsoft.mshtml.dll". None work.install the Interoperability Assemblies from Visual Studio onto the server by running "vs_piaredist.exe" - I don't have admin access to the server and the hosting company won't do it.

View 2 Replies

WCF / ASMX :: Call HTTPS Web Reference Through Another Web Reference - An Unhandled Exception Of Type Error?

Aug 6, 2010

I am trying to call web reference "A" in an application.

The web reference "A" will then call a function in another web reference "B" through HTTPS connection (require certificate).

Then I keep getting the following error:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll

View 3 Replies

C# - Web Service Deployment In IIS?

Jan 20, 2011

I started learning web services. I learnt about web services, UDDI, WSDL, SOAP etc. and architecture of web services. Visual Studio is running the service in local system successfully.Then I deployed the entire folder of that web service in IIS wwwroot, and tested. Its running successfully.But when I remove the other file from the wwwrootwebService1 folder (I left only service1.asmx and bin folder) then also service is running.

Here I see that only two file are used in ruuning the webservice one is .asmx and another one is webService.dll in bin folder.I'm not able to understand where is SOAP, WSDL, namespace or other things, that are required to run web service.

View 4 Replies

C# - Why Does Silverlight Reference To Wcf Service Blow Up When Add Method To The Wcf Service That Returns Generic List

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







Copyrights 2005-15 www.BigResource.com, All rights reserved