services

Proper way to delay an application while a service is starting?

My system has a service (Serv.exe) which starts as LocalSystem and should be running at all times, additionally on startup of the PC (auto logon) the user has a STARTUP application (App.exe) which runs. Sadly I've found that sometimes App.exe starts to run before Serv.exe has finished starting, and one of the first thing App.exe does is...

RIA .NET service installation error

I am trying to install Microsoft .NET RIA services Preview (RiaServices.msi) on a machine running Windows 7 RC + Visual Studio 2008 SP1, and get the following error: "2908. Error while installing assembly System.Web.DomainServices.Tools.VisualStudio, version 1.0.0.0.." Anybody else had this problem? What should I look at? ...

Can I have multiple services hosted in a single windows executable

My question is essentially the same as the following one but the answer did not help me. http://stackoverflow.com/questions/1407217/net-windows-service-multiple-services-in-one-project Essentially, I have 3 services, lets say "Service1", "Service" and "Service3". ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] ...

Windows service runs file locally but not on server

I created a simple Windows service in dot net which runs a file. When I run the service locally I see the file running in the task manager just fine. However, when I run the service on the server it won't run the file. I've checked the path to the file which is fine. Below is the code used to launch the process which runs the file. Any i...

Should we create local web services within an Asp.Net application which are called by the application itself?

Hi, I've moved to a new project team and while going over the codebase, found that the team have created a number of local web services which then get called by server code in other web pages within the same application. I'm somewhat puzzled by this architecture, as I'd thought local web services were something you'd then access from t...

Grails: How do you unit test a command object with a service injected into it

I am trying to test a Controller that has a Command object with data binding. The Command Object has a Service injected into it. But When I try test the command object the injected service method is never found as it is never "injected" Is there a way to mock a service inside a command object? Test method void testLoginPasswordInv...

WCF: Enforce equal DataContracts on both sides

Hi all, I'm wondering if it is possible to have WCF make sure that the DataContracts on both sides of a connection are exactly the same (and throw an exception when trying to connect if they are not). For example, imagine this service: [DataContract] enum State { [EnumMember] Red, [EnumMember] Yellow, [EnumMember] ...

Mac OS X app/service and stdin?

I'm debugging a service I'm developing, which basically will open my .app and pass it some data to stdin. But it doesn't seem like it's possible to something like: open -a myapp.app < foo_in.txt Is it possible to pass stuff to an .app's stdin at all? Edit: Sorry, I should have posted this on SO and been more clear. What I'm trying to...

Best Practices Server Side Scripting or Web Services

Hello, Let me start off by stating that I am a novice developer, so please excuse the elementary nature of my question(s). I am currently working on a Flex Application, and am getting more and more confused about when to use server side scripting, and when to develop web services. For most of the functionality I am working on, I am ...

what is the best way of developing the web services and deploying them into a web application?

what is the best way of developing the web services and deploying them into a web application? ...

OS X Services Bundle

I'm trying to build a standalone service for Snow Leopard. It builds just fine, it shows up in the services menu, but when I try to run it, the executable is not recognized (it reports a Bash error 126 in the Console). I built it out of a Cocoa bundle template. Is there something special in building bundles that I may have missed and ne...

ado.net data service performance

Hi I am testing on ado.net data service. I just created web application with SQL server there is one table and about 900 rows in database table. I made a model only contains one entity After building application i just test to get all entities from web browser. but it takes about 5 or 6 minutes to get all data in internet webbrowser I...

Illegal Instruction in service using SCM in VC++

Hi guys, I have issue in service created using VC++ code. as my ServiceMain function ends. it returns following error in End of the function(in release it crashes.) Unhandled exception at 0x0012e3b4 in Adiserv.exe: 0xC000001D: Illegal Instruction. i am unable to figure out the issue. can you help me out... Thanks Ashish ...

Why does my WCF service method only work once I've called MessageBox.Show()?

I have a WCF service which provides a method that creates a file. Sometimes it takes a little while for this file to appear, and other methods which are relying on that file's existence fail if they are called immediately afterward. As a result, I want to check that the file has appeared before proceeding. In my client class, I can call...

Query Regarding XML

How To call Xml File into Our Xcode Application… I want to do application like Photo Gallery , I need to download the XML file over internet and it store it in my MAIN BUNDLE.. I need to connect to links in the XML file & Download the IMAGES ...

Hyper-V Integration Services

Hi I have Win2k8 Enterprise SP2 x86, which I was using in a Virtual Pc Machine. I used the vmc-hyper v tool to bring it into Hyper V. But now every time I try and install the intergration services, it says theres a previous version install, and I need to upgrade\repair, even though there is nothing in add remove programs about this exis...

Drupal node.save and JSONP

I am having an issue with call Drupal node.save using MooTool's JSONP. Here is an example. Here is my request: callback Request.JSONP.request_map.request_1 method node.save sessid 123123123123123 node {"type":"blog","title":"New Title","body":"This is the blog body"} Here is my result HTTP/1.0 500 Internal Server Error I got this wo...

Is ASP.NET MVC a good option for developing a Services layer and/or API?

Is ASP.NET MVC a good option for developing a Services layer and/or API? If so, are their any solid examples out there for reference. ASP.NET MVC views are generally tied to aspx pages, but how would I go about making my views in the form of XML or JSON? In the scenario I am proposing, I'll have an ASP.NET MVC front-end which will con...

Changing provided services based on user preferences in OSX?

Hi, I would like to be able to change the OSX services that my application provides based on the current user's preferences (like adding more, changing the name,...). This basically means modifying the Info.plist (NSService key), but I don't think it is a good practice when an application modifies its own Info.plist while running, right...

How do you catch a thrown soap exception from a web service?

I throw a few soap exceptions in my web service successfully. I would like to catch the exceptions and access the string and ClientFaultCode that are called with the exception. Here is an example of one of my exceptions in the web service: throw new SoapException("You lose the game.", SoapException.ClientFaultCode); In my client, I tr...