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


ADVERTISEMENT

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

.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

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

How To Get Remote Endpoint

Jan 28, 2009

I'm trying to get the remote endpoint when receiving data over UDP. But it seems to not be working. I know that when sending UDP, the remote ip and port are part of the packet, but I don't know how to get that information with .net.

Updates.client.remoteendpoint.tostring does not work.
Sub StartServer()
Updates = New UdpClient(5602, AddressFamily.InterNetwork)

[code]....

View 3 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

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

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

Norton EndPoint Security?

Jan 26, 2012

I have a console app (Exe) which runs on my local PC. The problem is this Norton EndPoint Security thinks that this app is a BloodHound SONAR 2 and stops my application. How can I fix this?

View 2 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

VS 2010 : Reference To A Non-shared Member Requires An Object Reference

Mar 4, 2011

I am getting this error for Login.Show() here:

Imports Microsoft.VisualBasic.FileIO.FileSystem
Public Class Update
Public Sub CheckUpdate()

[code]....

I am also getting this is every other form when using the Login form, along with Login.Close(), and Login.Hide(). I haven't tested any other ones.

View 5 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

.net - Can A WCF REST Endpoint Be Forced To Accept Raw Message Format

Jan 25, 2012

I have a web service with both SOAP and REST endpoints. I have to accept requests from a client that I do not have any control over on my REST endpoint. Currently the client gets a 400 response and the tracelog on my server shows this error:

The incoming message has an unexpected message format 'Raw'.
The expected message formats for the operation are 'Xml', 'Json'.

I've tried everything I can think of with the WebContentTypeMapper but seem to end up right where I started every time. The request from the client doesn't appear to be well formed XML or JSON so if I try to force XML or JSON types from the WebContentTypeMapper I end up with parser errors.

So I guess I need to find out if I can force this endpoint to accept the message anyway.

View 2 Replies

Can A WCF REST Endpoint Be Forced To Accept Raw Message Format

Oct 6, 2010

I have a web service with both SOAP and REST endpoints. I have to accept requests from a client that I do not have any control over on my REST endpoint. Currently the client gets a 400 response and the tracelog on my server shows this error:The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml', 'Json

View 2 Replies

Change The Default Endpoint Device In Vista And Windows 7?

Feb 18, 2011

I am working in visual studio 2010, framework 3.0.I want to enumerate the Audio Recording devices on Vista and Windows 7 PCs. With the help of Core Audio APIs, this is completed successfully. Now I want to change the default state of devices and also I want to set the state of Disabled device to Enable. In Core Audio APIs, it is not possible. So can I use the Registry to Enable the device or change any device to DEFAULT?On changing the default device from SOUND dialog, windows makes some changes of Binary values in registry Role:0, Role:1,ole:2under HKLMSoftwareMicrosoftWindowsCurrentVersionMMDevicesAudioCapture {GUID}.

View 1 Replies

VS 2005 : Determine If UDP Message Was Successfully Received On The Other Endpoint?

Sep 24, 2009

I just want to make sure if the UDP sent was received successfully, what could be some methods to do such? Its just for chatting on a local network.

View 14 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

Service Error Cannot Open <service Name> Service On Computer '.'

Feb 3, 2010

I have a VB2008 application which can control a windows service i.e. start, stop, pause etc. This runs ok on a Windows XP machine but not on a Win 7 machine (message is - Service error cannot open <service name> service on computer '.') ( if I stop the UAC then it runs ok ). It seems to be a rights issue,

View 3 Replies

VS 2010 .net FileStream To WCF Service?

May 24, 2012

making a WCF service before or do know anything about them, so this should be pretty simple. I have to get this "program" to take an excel file from a folder, and send it to this service but I keep getting this very specific error message:

The remote server returned an unexpected response: (400) Bad Request.

Probably one of the most specific error messages I have come across in my days. This is my code for the program, and what I have as his "service reference".

vb
Imports System.IOImports System.ThreadingImports System.Net.MailImports System.TextImports WindowsApplication1.ServiceReference1Imports SystemImports Microsoft.VisualBasicPublic Class Form1 Const Processfolder As String = "C:TestScottsCrap" Const Processedfolder As String = "C:TestScottsCrapCrap" Const ErrorFolder As String = "C:TestScottsCrapError" Private Sub Button1_Click(sender As

[code]....

View 2 Replies

VS 2010 Add A Reference To A DLL

Jun 21, 2011

I am trying to add a reference to a DLL written by a coworker to a project of mine but I am getting this message:

The referenced assembly "SomeDLL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

View 3 Replies

VS 2010 To Window Service Or Not To Window Service?

Jul 20, 2010

I am making a server program, it works, cool.Made it display the info coming in via a textbox, the number of users connected, etc.I based it off of one of the members heres examples (jmcilhinney).However, I am kind of in a rock and a hard place.Do I try and convert it to a windows service so its on all the time? Or do I leave it in a exe format?I have never touched windows services before, but they look promising.However, this will be residing on a collocated server running Windows Server 2003.The problem with that is, if I run it. Person B, C, D, E, whoever.. can not see it due to the virtualized desk tops of RDC (even under the same username).I am kinda curious if I should make it a windows service, then make my 'display' program that just.. remotely taps into it to control it, and view stats and such.The 'server' will take info sent from the client, and add it into a database, then pass back some commands and such.

View 1 Replies

Debug Windows Service In 2010?

Oct 19, 2011

I upgraded to VB2010 from VB2008 early this year and have been working on a Windows Service which I am now debugging. When I was using VB2008 in Windows XP SP3 I would put a Stop statement in the code and when execution got to it a dialog would open asking if I wanted to debug it using a development environment listed in a provided list. The list contained the VB2008 VS IDE which I selected which would in turn transfer me to the IDE in debug mode. I was very happy with this setup.

Now I am using VB2010 with Windows 7 and when the execution reaches the Stop statement the service just stops. It no longer offers the choice and ability to "jump" into the development environment via the dialog that I mentioned.[code]...

View 1 Replies

VS 2010 - Self Hosted WCF Service Not Accessible

Oct 13, 2011

I have creatred a self hosted service with a proxy Service and Contrats

[Code]....

View 1 Replies







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