How To Make A Web (WCF) Service Act As Windows Service
Sep 22, 2010
I have a web application - .net 4. The client is having a requirement that he want to send email to his users on a regular basis about his new courses etc.
The webapplication created will hosted on a "Shared hosting environment" with no excess to windows services - file system other than the web root folder through FTP.
Due to shared hosting i cannot create a windows service for him which will check the database - if there are any scheduled mail to send every 5 min.
So my question is - Is there anyway i can run a wcf web service or any other web based service or page or handler which can keep running and automatically checks the database for any new scheduled mails - if yes start sending it automatically in an different thread.
View 2 Replies
Similar Messages:
Dec 13, 2010
Iam using ftp client wrapper class for accessing ftp.
iam able to download files from ftp when used in windows application
when i try to use the same code with windows service i get an error
the error is
"The underlying connection was closed: An unexpected error occurred on a receive. "
this error i get on directory listing
the stack trace is:
[Code]....
Note:
FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer
soruce code:
[Code]....
View 5 Replies
Jul 28, 2010
When i create a Windows Service for getting information from a Web Application(ASP.NET c#) for scheduling some task in the client machine.
To consume WCF from the web application. I added WCF reference to Window Service project as a service reference, everything seems fine. It updated app.config file, added service reference etc.
it was not working.
[Code]....
View 1 Replies
Nov 5, 2010
using vb.net 2005.
what is the best and easiest way to test a windows service while developing it?
View 5 Replies
May 2, 2010
We have two servers, both are containing a local application connecting to local web service, applications and services are identical on both servers. One of the servers work just fine, The other one is just dead, I have impression the the security configuration are different on those servers. What prevents an application X from connecting a web-service, given that another application y on the same server can connect to it. and X is a windows service. What I should check, what is chances?
View 2 Replies
Dec 28, 2010
I need to read the data from the COM port in a web application, so I have written a Windows Service for reading data from serial ports. Now I need to access that data in a web application. Can anyone tell me how to access it? Is using threads the best way to do this or not? What other possible ways are there?
View 3 Replies
Sep 10, 2010
I wanna embed the windows service in the web application. I have seen few posts in the web. where they generate separate exe for the windows service and use it as an installable.
The same process i tried doing it but it threw an OS error in my server which is windows 2000 and didnt supported the executable.
However the website of mine runs fine in the same server. Thus i was thinking if i cd embed the same code in the web application.
Also, in my case the website of mine takes job for simulation. These jobs are taken for simulation execution and nearly takes 12hrs for completion and if they are not completed within twelve hours then they are supplied extra twelve hours to complete the simulation jobs.
The simulation executables are a series of executable and bat files.
The results of the simulation gets updated in the tables of MySql and hence are displayed to the user.
View 2 Replies
Jan 20, 2011
I need a windows service. This service will start when userId insert on myDatabase.And after I want to handle this userId send
to my web service.If webservice return true I insert this userId another table on mydatabase. How can I write this?
View 5 Replies
Feb 14, 2010
I have built a web page that does a complex processing, and I realized recently that I need to convert it to a windows service running at the background and keeping the web page for monitoring and initiating the service.
The service will process some files, and provides information messages to the user.
I'm not sure how to implement the link between the windows service and the web site, but i was trying to avoid using MSMQ to connect both application together.
View 1 Replies
Jan 5, 2011
I have a web application that uses a SQL database which contains all the standard asp membership tables.Within my Web application I use the standard asp.net membersip logic for adding new users, roles, etc...The point here is I dont use any custom providers for anything.Now on that same machine that is hosting my web application I am writing a Windows service in c# .net.As part of one of the method calls to the windows service application I was curious if I would be able to use any type of membership classes that would connect to my existing database and perform the same functionality as does the ASP.NET membership classes.
View 1 Replies
Aug 18, 2010
I want to develop a windows service which will be accepting a datatable from an aspx page. Both the windows service and the website are hosted on same machine.
Also I need to set a date and time on which this service is to work. this date and time are to change according to customer needs. once again the date and time are to be fed from the aspx page.
View 6 Replies
Mar 11, 2011
I have an web application which needs some calculations and processing on data. This job is a long running job(few hours). Job is initiated by user.
Requirement.
User Clicks on Process Data.
Some functions are called to start data processing.
Data Processing runs for hours.
User is given feedback of percentage completed etc.
Even if user logs off and then again log on he should get this feedback.
The requirement is somewhat similar to Spiceworks. Where it runs in background to detect the devices/computers in network and the user is notified in his page about the progress. But spicework uses windows service. We don't want to us windows service.
Now the question is.
What if user closes the page, will the task still run in background. This task has to be completed fully.If terminated in between output will not have any meaning. How to actually to design this long running process. In ASP.Net environment. Also is there a way to show all/same user who logs in the status of processing.
View 1 Replies
Aug 18, 2010
I have application that runs non stop in the background on a dedicated remote server.The application is build in .NET 4 using log4net for logging and SQL Server.I i think it would be best to use Windows Service for the main background application.I want to build a second application to manage and view the status and logs of the main application.Any recommendation on the best way to do that?How should i connect to the service to get the status or attach to log4net logging?Windows Service + Asp.net Website?Windows Service + Remote WinForms Application?On Server WinForms Application?
View 2 Replies
Mar 11, 2011
I have one windows service in vb.net...Its functionality is to send email to faculty at given time...Now i want to send email to faculty along some attached documents to that email from windows service. That attached documents is the list of users from DB... So i want to know can we attached some documents to email send through windows service...
View 1 Replies
Jun 3, 2010
So I am required to write a fairly basic Windows service and have never done so before. Of C#, C++ (the Visual Studio suite), what is the best language to develop in? I am a student, and am most familiar with OO languages such as Java.
View 4 Replies
Sep 2, 2010
I want to create a popup application that will run against my sql database and Fire a popup everymorning at the user machine to ask a question. the response will be send back to the Database. Prety easy with Windows service BUT not with a POpup or Interface.
View 3 Replies
Jul 19, 2011
I have a web service within my application (app A) writing to an oracle database (database resides on a different server). when i call the web service from another application (app B), it fails to write to the database. when the web service is called from app A, it successfully writes to the database.
I guess this issue has to do with authentication/impersonation of ASP.NET. both applications (A & B ) are subsites within the same website in IIS and both uses windows authentication (intranet applications). I dont have access to the server and IIS.
View 5 Replies
Nov 6, 2010
I have a project that i need to make a service that we will add to it about 500 RSS for different sites and we want this service to collect new RSS feeds from these sources and save Title & URL in my SQl Server database ..
View 2 Replies
Nov 5, 2010
Using vb.net 2005
I am trying to open a connection object in a windows service but getting an error, what do i need to do:
what I have now:
[Code]....
on the Open line i'm getting a squiggly error saying "declaration expected" for the MyCon.Open.
do I need to import something?
View 6 Replies
Nov 22, 2010
Is it possible to remotly login into Windows using ASP? What I'm trying to accomplish is, that I could remotly call a ASP page on my server (Apache on Win Vista) that logs in a user on that system. For example remotly I start a Wake-On-Lan to start the computer (server). It boots up to the user login screen where I would have to enter my password to login to the desktop. Because the service is already running at that time, I would like to open a ASP page from my client that I could pass the windows user/password and the ASP-service would login the user on the server machine.
View 1 Replies
Nov 6, 2010
I have a visual studion 2010 solution with two projects
1 . A class libarary
[Code]....
2. A windows service application
[Code]....
The service application is used to convert .dbf files to xml. The convertion is done using the classlibary project wich is called by the windows service application. This class library project has some values hard coded. like the path to look for the .dbf file
const string sourcePath = @"F:forms";
const string pathToDbfStructure = @"F:formsstructure.dbf";
const string pathToBackupFile = @"F:ackup";
I want to make these hard coded values changable. like moving them to an app.config file. To which project I have to add the app.config file (classlibary or windows service)? How can I use the value from configuration file in classlibrary ?
View 3 Replies
Feb 25, 2011
How to programmatically download a CSV using Windows Service into my website?
View 1 Replies
Jan 10, 2011
I have limitations to host Windows Services in my web hosting provider. But i need run small task frequently.
Do we have any other framework/api which provides similar infrastructure like "Windows Services" from ASP.NET?
View 4 Replies
Dec 20, 2010
how to access remote computer windows service using asp.net
View 2 Replies
Jul 16, 2010
Can a windows service and a IIS site share the same dlls?
And maybe the configuration (web.config)?
View 3 Replies