I am trying to upgrade a server from Windows Server 2003 to Windows Server 2012 and I have a service that restarts an application that needs to be updated, which must be always running in order for it to get its job done propperly (summarizing is an application that reads data sent from several sensors and stores it in a database).
The thing is, Microsoft changed the way services work and it won't work properly in the new server.
Is there a way to keep doing it with a service even if it needs to be done within a user session?
Thanks in advance.
Related
I have the following architecture: local C# desktop app with SQL Server Express and a central web app with SQL Server Enterprise, with db per local app.
I need to sync those two databases semi-automatically, but with some controls (and info) from an local desktop and web apps.
For example, I want for user to see when sync start, when it ended, etc. Also, if synced ok or there was an error.
What is the best solution for this problem ?
I see that there are two technologies: merge replication (works only on SQL Server level with no app interference), and discontinued Sync framework, with lots of problems. Should I create my app module for this?
Update: just to note, a web app will be fine without this, however, the reason for this sync is that as I need to have offline functionality, i.e., when network is offline app must work regulary.
i need Communication between Client and Server running on two different machines in C# using Visual studio 2010
The main app that is the client app needs to tell the server app on the server to start and stop process. and server app needs to tell the main client app when process has been completed and also of any errors
please give me some suggestion , what is best to use for my application .
The easier form of doing that, I would think on having a database in the middle for communication between the client app and the server.
On the server you would have a service on continuous running, and querying the DB if he should start the process (code) or not. The server will mark that task as Started, and when it finished, it would mark Finished. The client, only need to add new records to a table where the server will look for.
I have been searching for this for couple days but was unlucky finding any answer.
I am building a winform application . Where the application will be installed to multi PC's on the same network and all will connect to the db on the server in same network.
First , I am unable to find how to develop/design multi client(sorry I don't know what exactly to call it ) application , where same app will be operating at the same time, with different users, in different PC's and all will use the a single DB on the network.
Second , I want to create a setup wizard ,where the user will choose ,when installing the application , if its the server , or the client side. When the server is selected it will create the db for the app , and when client is selected , user will point to the server machine on the network and the client app will be installed with pointing at the db on the server.
I don't know if I was clear enough or too complicated while explaining.
I resolved the issue with WCF.
I am building a WCF Host on the main server , where the terminals will comunicate to main server via WCF and the host program will do all the sql queries.
We have developed an iPhone application which communicates with SQL server database via asp.net hosted on a public server. We have completed all the development and we need to test this with live server data.
Now we understand that live server database is using dynamic ports and cannot be accessed from our asp.net script. Database administrator is against changing the dynamic ports as they are worried about the security threat. We tried asking them to change this by giving access to the server where we host the asp.net web service but they are not willing to do this.
The solution they are asking is to develop a windows service which would act as a middleware between their SQL server database and our web service. They are ready to open ports for running that windows service on their server. Our iphone app need to take values from database as well as insert values to the databse.
We need to know if this is feasible to develop a windows service and if yes, can someone can guide us how to develop this?
Their server is running windows 2003 and SQL server version is 2008
this are good reads on how to start creating a window service
http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.80).aspx
http://tech.pro/tutorial/895/creating-a-simple-windows-service-in-csharp
I'm working on deploying a web application written in C# with ASP.Net Application services databases.
The application runs fine on the development machine.
Windows Server 2003 has been built to test the application.
The database has been scripted across using MS SQL Server GUI.
ASP.Net application services tables were created using an utility.
The connection strings are stored in the web.config and connectionStrings.config.
The application connects to the database successfully, but then it times out after 10 seconds.
I think we'll need more than this to figure out why the timeout is happening. How do you know that the application is successfully connecting to the database?
If that's all the information I had and I observed those symptoms, I'd likely try to run SQL Server Profiler against the SQL instance in question to see what activity against the database is timing out.
Connection string was hardcoded somewhere in the app...ahhh