Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Vista and WCF

 
 
Thread Tools Display Modes
Old 05-08-2006   #1 (permalink)
Arian T. Kulp
Guest


 

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
Old 05-08-2006   #2 (permalink)
Arian T. Kulp
Guest


 

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

 

Thread Tools
Display Modes









Vistax64.com 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 2005-2008

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 47 48 49 50