Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Vista and WCF

 
 
Old 05-08-2006   #1 (permalink)
Arian T. Kulp


 
 

Vista and WCF

I've got Vista 5308 (Feb CTP) installed, Visual Studio 2005 Team System,
WinFX Runtime Feb CTP, and Orcas CTP tools. I've created a pretty simple
solution in three projects (Interface/implementation, service host, and
client). When I run the host, I get a FatalExecutionEngineException. There
is absolutely no P/Invoke, COM-interop, or anything "weird." The interface
defines a single method returning a decimal. The implementation returns the
current milliseconds from Date.Now.

I did have some trouble with the config file (ported from an earlier CTP).
I have:

<system.serviceModel>
<services>
<service name="TestService">
<endpoint address=""
binding="wsHttpBinding"
contract="Test.TimeService"/>
</service>
</services>
</system.serviceModel>

My host declares:

using( ServiceHost host = new ServiceHost(typeof(TimeService)))
{
host.Open();
...
}

Anything obvious?

Thanks!

-Arian

My System SpecsSystem Spec
Old 05-08-2006   #2 (permalink)
Arian T. Kulp


 
 

RE: Vista and WCF

I tried this on another computer. I had suspicions that my hardware or
configuration might be somewhat at fault. On the other computer (Vista build
5366), I get:

"CallbackException was unhandled

A user callback threw an exception. Check the exception stack and inner
exception to determine the callback that failed.

HTTP could not register URL http://+:8000/TestService/. Your process does
not have access rights to this namespace."

I should also make it clear (since my config snippet in my original message
isn't very clear), that I do have the implementation class name in the
service/@name attribute and the interface name in the
service/endpoint/@contract attribute.

"Arian T. Kulp" wrote:

> I've got Vista 5308 (Feb CTP) installed, Visual Studio 2005 Team System,
> WinFX Runtime Feb CTP, and Orcas CTP tools. I've created a pretty simple
> solution in three projects (Interface/implementation, service host, and
> client). When I run the host, I get a FatalExecutionEngineException. There
> is absolutely no P/Invoke, COM-interop, or anything "weird." The interface
> defines a single method returning a decimal. The implementation returns the
> current milliseconds from Date.Now.
>
> I did have some trouble with the config file (ported from an earlier CTP).
> I have:
>
> <system.serviceModel>
> <services>
> <service name="TestService">
> <endpoint address=""
> binding="wsHttpBinding"
> contract="Test.TimeService"/>
> </service>
> </services>
> </system.serviceModel>
>
> My host declares:
>
> using( ServiceHost host = new ServiceHost(typeof(TimeService)))
> {
> host.Open();
> ...
> }
>
> Anything obvious?
>
> Thanks!
>
> -Arian

My System SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46