service reference not working

T

Trapulo

I've a web site that contains a remote service reference (binded to a tcp://
WCF service).

I can add the reference, I can see endpoints and interface and select them,
and VS creates the service referce. No error.

Bun no object proxy is available on my namespace! I cannot refer to the
remote service in any way... :(

any idea?

I've create a blank new project and added a reference to the same service,
and all is ok :(
 
M

Mr. Arnold

Trapulo said:
I've a web site that contains a remote service reference (binded to a
tcp:// WCF service).

That can only happen on Server 2008 that a Web application running on
IIS7 can call a WCF service that is a non Web WCF service.
 
T

Trapulo

That can only happen on Server 2008 that a Web application running on
IIS7 can call a WCF service that is a non Web WCF service.


my application is hosted by a custom exe, not IIS. The client is an asp.net
web site, but the server is a console application.

It seems something related to custom types. I notied that disabling use of
custom type in reference, and using types created by the service proxy, all
interfaces came available.
 
M

Mr. Arnold

Trapulo said:
my application is hosted by a custom exe, not IIS. The client is an
asp.net web site, but the server is a console application.

The client is a ASP.NET Web application running on an IIS application
server hosting a site a on a server. The site itself is not the client.
It seems something related to custom types. I notied that disabling use
of custom type in reference, and using types created by the service
proxy, all interfaces came available.

Maybe, you know something I don't know. But I do know this, that a WCF
Web application client cannot consume a non Web WCF service, if it's
IIS6 and Win 2k3 server and below doing the hosting. It can only happen
with IIS7 and Win 2k8 server that a WCF Web application client can
consume a non Web WCF service.


You don't have IIS7 and Win 2k8 server where MS has implemented this
kind of WCF functionality you're trying to do, then it's not going to work.

And I suspect that's Win 2k8 server on both ends.
 
T

Trapulo

Maybe, you know something I don't know. But I do know this, that a WCF
Web application client cannot consume a non Web WCF service, if it's
IIS6 and Win 2k3 server and below doing the hosting. It can only happen
with IIS7 and Win 2k8 server that a WCF Web application client can
consume a non Web WCF service.


You don't have IIS7 and Win 2k8 server where MS has implemented this
kind of WCF functionality you're trying to do, then it's not going to work.

And I suspect that's Win 2k8 server on both ends.


I'm using W2K8 on both sides.

Thanks
 
S

Steven Cheng

Hi Trapulo,

As you said that you can correctly see the service and operations in the
"Add ServiceReference" wizard, but the generated proxy doesn't contains
actual proxy class, correct? Are you using a website project? If so, have
you tried creating a web application project to see whether the generated
proxy code correctly display? For website project, "web reference" or
"service reference" may use dynamic compilation to generate the runtiem
proxy class and it may not persist source code file at design-time. If web
application project still doesn't show the proxy class file, there might
have some problem with the IDE or project.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.


--------------------
Date: Fri, 05 Feb 2010 19:22:30 +0100
From: Trapulo <[email protected]>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7)
Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1
 
Joined
May 27, 2010
Messages
1
Reaction score
0
Hi Trapulo,

If you have resolved the problem can you please share what exactly you have done. even I am having same issue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top