![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 |
| | #2 (permalink) |
| 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 |
| |
| |