![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |