DateTime Gets Changed In Service Reference Proxy

Jan 19, 2012

When I add a service reference to my VB.Net project all of the properties of type DateTime get changed to type Date. The project is ASP.Net using framework 4.0. The web service being referenced is C# framework 4.0. How can I keep this from happening?

View 1 Replies


ADVERTISEMENT

Web Service Using Old Proxy Settings?

Jun 30, 2009

Web Service A - Called directly by Win32 App, and various other web applications

Web Service B - Called directly by same Win32 App and a different set of other Web Applications

I'm working on adding a reference to B into A, so that we can use the functionality B provides without rewriting/reintegrating that code manually into A. I have a develop copy of A on my PC that I'm working with, and am calling a test copy of B on a remote server (the test server is accessed over the internet at our hosting provider)I believe to have my code ready for testing, but every time I go to test it on my local copy, I get the following error.No connection could be made because the target machine actively refused it 10.1.X.XX:8080

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

[code]....

It fails on the call to oZip.GetCities() with the above error. The IP in the error message does not in any way indicate it's made it out of our local network, it's a 10.* private IP, whereas the test server has a valid live publicly accessible IP.

View 2 Replies

.net - Extending Web Service Proxy Classes?

Jul 28, 2011

I need to add functionality to my web service calls so object translation and automatic retries are done and abstracted away.I would usually override the base class to add the extra functionality, but as the proxy methods aren't over-ridable I can't keep the method names the same. The only other option I can think of to do it this way is to use the 'Shadows' keyword to achieve what I want.What other methods do people use to add functionality to their web service proxy classes without modifying the generated classes?

View 1 Replies

Consume A Web Service With Proxy Settings?

Jun 21, 2010

I am trying to consume a web service using VS2008.

The code below works in VS2005 but not VS2008 I, suspecting it's to do with WCF. Please can someone help me to solve the puzzle?[code]...

View 2 Replies

Service Reference Stops Working When Make Changes To WCF Service?

May 26, 2011

I'm using Visual Studio 2010 and .NET3.5. I've created a WCF service application. I'm including two DLLs that contain the types I'm returning. The first method I wrote works both in WCF Test Client and also in a console application I created to test. When I move on to the next method that returns a generic list of a type. It works great in WCF Test Client, but when I update the service reference it acts as if the service is unavailable. All my objects say can't find reference, and I can no longer see it in the object browser. It's like it just disappears. I can still see it in the Service Reference folder. If I go back to the WCF app and comment out the contract and implementation of that one method it work again. I created a local class very similar to the class I'm using from the dll, and the it works. Is there something I'm missing here? Can someone point me in the right direction?

View 1 Replies

Decouple WCF Service Proxy Classes From Environment Endpoints

Jun 28, 2011

I have a WCF Service, I won't waste anyone's time with copy/pasting a basic implementation here, just imagine it as being the standard "Echo" example you see scattered around MSDN. Let's say I host the Service Library using IIS / a web app. Let's also say I publish the website to varying environments, local, shared dev server, varying test servers, and of course varying live environments. We'll also assume that the WCF gods smiled down upon us and the deployments went without a hitch.

Now I want to write an app (lets say WPF app for some clarity). When the app starts, I want a drop down listing all the available environments. I don't mind hard-coding or supplying (by means of a config file) those environments, but kudos points for linking any articles showing LAN discovery of deployed WCF services?

When the user has selected their chosen environment, I want the app to be able to call a method on the service (in the correct environment). Now I could do this with a big select case/if statement, instantiating the appropriate proxy class for the environment selected, calling out using the proxy class, etc. I could even pass the class around from method to method as an object and then use select case/if statements alongside TryCast/DirectCast to ascertain which environment the provided proxy class belongs to.

I'm bordering on the idea of selecting an environment (none in particular, just one of them) and on the assumption that all deployments/environments have identical code, instantiate the proxy client with the endpoint details of my chosen environment. I lose a form of type safety, but is that ok? Is that the done way?

View 3 Replies

WCF Service Generated Proxy Class Exposing Function As ByRef Sub

May 23, 2011

I have a WCF Service exposing a single contract and operation:

<ServiceContract(Namespace:="ImageSystem")> _
Public Interface IUploadService
<OperationContract()> _

[Code].....

This subsequently leads to stream casting issues, because the generated function allows me to pass a memory stream as an input (which works correctly when passed through to the service), but instead of passing me back a new stream for the response, it attempts to cast the MessageBodyStream received from the service into my memory stream.

This is, in some ways similar to other posts but as you can see, there are no enums involved in my contracts - presence of Enums caused strange proxy class generation is marked as the answer in the similar post.

Is there anywhere I configure the proxy behaviour to use the contracts I've specified? Clearly I'm within a dev/test environment currently, but when this eventually goes to production it will be memory and file streams passed to the service, and the returned stream can be in any format to be honest, I intend to treat it as the abstract stream class. The only way round this I can see right now is to change my in stream to be the same as the anticipated out stream, but surely there is a better way?

View 1 Replies

How To Stop Reference Onject From Being Changed

Nov 9, 2011

I have a class. In that class is a readonly property the returns a List(Of T) in the class. I dont want that list to be changed. I understand that readonly only actually applies to the pointer and not the object being pointed to. That's fine. But how do I stop people from changing the list?

View 4 Replies

VS 2010 VB - Create A NotifyIcon Program - Service That Every Second Looks At A Database To See If Anything Has Changed

Dec 22, 2011

Im Trying to create a NotifyIcon Program. I want this to basically be like a service that every second looks at a database to see if anything has changed this is the module thus far

Imports System.Data.OleDb
Module ModNtifi
Public conn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\MyserverMyDatabase.accdb ;Persist Security Info=False")

[CODE]...

The Problem i am getting is that after the start procedure has finished the program closes. i want it to start the the timer and then keep it going till the user exits the program manually.

View 6 Replies

TcpClient.Connect With Proxy Server - Conncect - Send - Recive Data Using Tcp Connection With Specific Internet Service

Nov 4, 2011

I found similar forum thread [URL], but he don't have answers. How I can conncect | send | recive data using tcp connection with specific internet service (not web).

View 1 Replies

AJAX Enabled WCF Service Fails If Date Property Is DateTime.MinValue

May 2, 2012

If a AJAX-Enabled WCF should return an Object with a Date Property which is Nothing a Request to this Service fails.[code]Chrome displays on this call the following error message: "failed to load resource".Has anyone an explanation/idea for this behaviour and how are you supposed to prevent this problem?

View 1 Replies

.net - Service Reference Client Bug?

Aug 16, 2011

i have a WPF application that uses a service reference to a web service.Now i have a GUI component that tracks the progress of this...But i seem to have some sort of bug here, it only occurs on some machines and not often..I start a call with MethodNameAsync and display the progress bar until the matching Completed event occurs.

some times i call 3 different async methods in a row but only the two of them get their Completed event raised so the GUI will be locked and the application has to be restarted.After being totally frustrated a few weeks i found the event AppDomain.CurrentDomain.FirstChanceException, so i hooked up to it and started logging all FirstChanceExceptions..

[Code]...

Fix this temporary by not using async methods and instead using a thread that will call them one by one.. now this is not a elegant solution, i should be able to use the async methods...

View 1 Replies

IDE :: Why Could Not See Indexing Service In Reference

Dec 10, 2009

While I write some code in VB 2008 Express, I could not see ciodm.dll (Indexing Service)in Reference. This library is just missing!

View 1 Replies

VS 02/03 Path To Web Service Reference?

Nov 12, 2010

I have added webservice support to an OLD PocketPc 2002 application written in VS2003. I don't have the ability to choose dynamic path as in VS 2005, which is the best way to switch URL from dev, test and prod environment for this application? Should I create some factory class that read a value from the app.config and return a service reference with the correct URI?

View 1 Replies

Wcf - Add A Service Reference In .NET Through A Code?

Oct 10, 2011

I want to make a program that will ask the user to enter the service reference URL in the text box then click a button to add the service reference. how to add and remove a service reference?

View 2 Replies

WCF Without Adding Service Reference In Vb?

Mar 28, 2012

I'm just a starter in silverlight and WCF. I came across a very good article here by Miguel A. Castro which teaches to add the WCF manually. I have the contract service setup and the only thing I left is to get the data back from the service in the silveright. I have a hard time translate the code to vb.net.

BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
EndpointAddress endpointAddress = new EndpointAddress("/Person.svc");
IPersonService personService = new ChannelFactory<IPersonService>(basicHttpBinding, endpointAddress).CreateChannel();

[code]....

How should that be written in vb.net?

View 1 Replies

Can't Add Service Reference In VS 2010 To A Net.tcp Endpoint

Sep 15, 2010

I've got a service running (well, it doesn't crash), but when I try to add a Service Reference to it, I keep getting:

Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'.
Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'.

If the service is defined in the current solution, try building the solution and adding the service reference again.The pertinent parts of my config file are:

<netTcpBinding>
<binding name="ReliableDuplexBinding" closeTimeout="00:00:10"
openTimeout="00:00:10" receiveTimeout="00:00:30" sendTimeout="00:00:15"

[code]....

The service must be self hosted.

View 1 Replies

Types Not Showing Up For Service Reference

May 30, 2012

I'm integrating one of our apps with a third-party provider's web service. I've added the service reference, but when I go to dimension a var as one of their types, the types aren't showing up for me in Intellisense. I'm using VB.NET/VS 2008 on Windows 7 and a 2.0 Framework web site running on local IIS. I have imported System.Web and System.Web.Service in my codebehind. I also made sure to check the "Always generate message contracts" checkbox.Types not showing up for service reference

View 2 Replies

Add Service Reference Option Is Missing In Program

Jun 14, 2009

I have installed WCF / WPF Extension with Visual studio 2005.

I developed the sample WCF services and to consume it I have developed the client project.

In client project I need to give the service reference, however I noticed here Add service reference option is missing.

View 4 Replies

Build One Windows Service Application Which Has The Reference To 4 Dll?

Apr 1, 2010

Today I was build one Windows Service Application which has the reference to 4 Dll. After building the Release I found that there was one more DLL in addition to the reference I have. I checked using ILDASM and it only showed 4 dlls.What could be the issue ? How I can I check why it is getting unwanted DLL's in Release Folder?

View 10 Replies

C# - Add A Service Reference In Visual Studio, Through The Interface?

Nov 16, 2010

I'm currently trying to call a WCF service dynamically See here, therefore, I'm trying to understand what happens behind, when I add a service reference by the GUI of Visual Studio... What's generated..? An object is created and an implicit reference is created...

Are the references contained in a specific container, a sort of pool?

View 1 Replies

Service Reference Error When Moving Dev. Environment From XP To W7?

Apr 21, 2010

I am building an application and I am using web services for getting data from a server. It was working fine when I was developing on my XP machine but had to switch to Windows 7. On the new machine I grabbed the latest version of the code using sourcesafe.However, when I try to add a service reference in the solution or update an existing one I get the following error:

There was an error downloading 'http://localhost:52490/Service/CustomerService.asmx'.

The request failed with the error message:Server Error in '/' Application.Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'Digital_Server.CustomerService'. Source Error
<%@ WebService Language="vb" CodeBehind="CustomerService.asmx.vb" Class="Digital_Server.CustomerService" %>
Source File: /Service/CustomerService.asmxLine: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

[Code]...

View 1 Replies

.net - Send HTTP Auth Credentials With A WCF Service Reference

Sep 4, 2009

I'm attempting to consume a HTTP Basic Auth Secured PHP WebService using VB.NET. I've so far managed to get 100% perfect integration by adding it as a Web Reference and doing the following:

Dim Credentials = New System.Net.NetworkCredential("username", "password")
Dim CredentialCache = New System.Net.CredentialCache()
CredentialCache.Add(New Uri(MyWebService.Url), "Basic", Credentials)
MyWebService.Credentials = CredentialCache
MyWebService.PreAuthenticate = True

I can also successfully add the webservice as a 'Service Reference' and this also works fine, as long as i turn off all HTTP authentication on the SOAP server.

My problem is that I can't find any documented means of sending basic HTTP Auth Credentials when using Service References as opposed to 'Web References'

Am I right in my understanding that 'Web References' are a legacy method of Web Service consumption?

View 1 Replies

Create A Web Service Reference Manually In Visual Studio?

Apr 23, 2009

how to create a web service reference manually in visual studio. I do not want to use the "add reference" already contained in the ide.

View 6 Replies

Asp.net - Changing "web Reference" To "service Reference" Changes Method Signature

Sep 3, 2010

We have an asp.net 3.5 web application calling a WCF service. Originally the app used a "Web Reference" to register the service however after having some trouble and burning an incident with Microsoft their solution was to replace the "Web Reference" with a "Service Reference" to the WCF service.

This is great except the problem is that when we create a Service Reference, the method signatures are different than they were when a Web Reference was used.

From what I've read this may be expected, however in our case this would mean some significant changes to the application and of course it was due yesterday...so...

...I'm wondering two things:

Is it normal/expected that method signatures will change based on the reference type? Is there a way to create the Service Reference that will generate method signatures identical to the original Web Reference?

View 1 Replies

Proxy - Passing Data Via College Proxy

Oct 15, 2011

I'm making a application to use in college to retrieve my calendar and other things in VB.NET. But my college uses a proxy so when I connect my laptop I need to change the internet settings in my web browser to view web pages. how I would send requests via a proxy server in VB.NET? Or is there a piece of software that I can download which tunnels all connections or is there a setting in win7 does this?

View 1 Replies

VS 2010 : HTTPWebRequest.Proxy : Set The Proxy For A Web Request?

Nov 24, 2010

I'd like to set the proxy for a web request. However, when I say, for example, request.proxy = "x.x.x.x:xxxxx", it gives me the error "String cannot be converted to webproxy". How can I get around this and actually set the proxy?

View 2 Replies

VB 2008 .suo File Needs To Be Changed/recreated Because A Path Has Changed. All Other Files Are OK

May 5, 2012

I changed my Username on my computer from i.e. "xxxxxx x xxxxx" to "Dennis"

VB 2008 during a compile gave me the following error: Error reading icon 'C:Usersxxxxxx x xxxxxAppDataRoamingMicrosoftVBExpress9.0VSProjectApplication.ico' -- The system cannot find the path specified.

The file "VSProjectApplication.ico" is in 'C:UsersDennisAppDataRoamingMicrosoftVBExpress9.0'

Somewhere in the VB2008 "configuration" files I believe that I need to manually change the old path to the new path.

I found the old path in the ".suo" file. The ".suo" file is not a text file. How can I edit the .suo file, save it so that it will work?

View 4 Replies

Saving Changed Data Before DataViewGrid Selection (Row) Changed?

Jan 20, 2010

on my Form I have a DataViewGrid and some textboxes with a save button (they are filled with additional data of the selected row).Save is disabled first, when I change something in the textboxes the save button is enabled.When the user changes a gow in the grid, I want to ask before changing the grid row, if he wants to save (if the button is enabled).I am using RowEnter but this is too late, then the selected row already changed (and my textboxes already got new data)...What event can I use to ask if I should save stuff before the user changes a row?Something like BeforeRowChanging with a chance to cancel changing the row?

View 2 Replies

.net - WCF Service Hosted In A Managed Windows Service Connect Using A WCF Service Application

Jul 14, 2011

i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:

Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.

It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.

View 1 Replies







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