Hi
I have a winform app that uses a timer to periodically run a number of
queries on an access db and write the results in a rich text control on the
form. I have two questions;
1. If I am to convert this app into a service app what changes do I need to
make?
2. Is installing a service in vs 2005 any easier than it used to in vs 2003?
Thanks
Regards 4 2280
All you need to do is more the data access to a web service and expose a
method to return the results. Leave the timer in the WinForms app and just
call the service.
Either version of VS is fine. There are not a whole lot of changes when it
comes to web services.
=============== =============== ========
David McCarter [Microsoft VB.NET MVP] www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at: www.cafepress.com/vsdntips.20412485
"John" wrote:
Hi
I have a winform app that uses a timer to periodically run a number of
queries on an access db and write the results in a rich text control on the
form. I have two questions;
1. If I am to convert this app into a service app what changes do I need to
make?
2. Is installing a service in vs 2005 any easier than it used to in vs 2003?
Thanks
Regards
1) You mean a Windows Service as installed by Visual Studio setup projects
with Installer classes?
If so, you'd install the service and use remoting from the Forms app to the
service, and the service gets the data. When you say "on the form" I don't
know where this for lives. Services don't have UI, so you can't really have
the service showing a form.
2) Not if you're using Installer classes, they're still used in VS 2005.
--
Phil Wilson
[Microsoft MVP Windows Installer]
"John" <Jo**@nospam.in fovis.co.ukwrot e in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Hi
I have a winform app that uses a timer to periodically run a number of
queries on an access db and write the results in a rich text control on
the form. I have two questions;
1. If I am to convert this app into a service app what changes do I need
to make?
2. Is installing a service in vs 2005 any easier than it used to in vs
2003?
Thanks
Regards
Sorry I just realised I wasn't clear. Windows Service.
Thanks
Regards
"dotNetDave " <do********@dis cussions.micros oft.comwrote in message
news:67******** *************** ***********@mic rosoft.com...
All you need to do is more the data access to a web service and expose a
method to return the results. Leave the timer in the WinForms app and just
call the service.
Either version of VS is fine. There are not a whole lot of changes when it
comes to web services.
=============== =============== ========
David McCarter [Microsoft VB.NET MVP] www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at: www.cafepress.com/vsdntips.20412485
"John" wrote:
>Hi
I have a winform app that uses a timer to periodically run a number of queries on an access db and write the results in a rich text control on the form. I have two questions;
1. If I am to convert this app into a service app what changes do I need to make?
2. Is installing a service in vs 2005 any easier than it used to in vs 2003?
Thanks
Regards
Hi John,
"John" <Jo**@nospam.in fovis.co.ukwrot e in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Hi
I have a winform app that uses a timer to periodically run a number of
queries on an access db and write the results in a rich text control on
the form. I have two questions;
1. If I am to convert this app into a service app what changes do I need
to make?
I suggest you to put your code in a library, create a service using vs
wizard, call library from your newly created service.
>
2. Is installing a service in vs 2005 any easier than it used to in vs
2003?
Not that I know. It is easy enough already. What are you missing?
Anyway, you might consider creating a nonservice app and call it from task
scheduler instead. This way you won't need to hassle with instalations.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Cenray |
last post by:
How to generate a web request from a Winform Application using a WebService?
In a C# Windows Application, when I try to genrate a web request using the
following code, it is woking fine
Winform code
---------------
Browser.DocumentHTML = "";
string HTMLData="";
|
by: hazz |
last post by:
I don't get it. I have a VS2005 solution with a web service project and a
windows project. The web service when tested on its own works fine. But when
I add it as a web reference and refer to it my windows form code behind I
receive the following;
{"The request failed with HTTP status 401:
Unauthorized."}
when trying to execute
this.dataGridView1.DataSource = ws.ReturnStudentDS();
not sure if it is relevant but the web.config in the...
|
by: IntraRELY |
last post by:
I have an WinForm (VB.NET) that is launched from an ASP.NET page that uses
Form Authentication. After the WinForm is lauched it calls a web service. I
want to use the credentials stored in the cookie and authenticate them on
the web service side. Is there a way to access the information?
TIA,
Steve Wofford
www.IntrRELY.com
|
by: Stan |
last post by:
I need to attach to aspnet_wp.exe in order to debug a web serivice from
WinForm client. Why don't I have to do this for ASP.NET / WebForm client?
Why doesn't VS.NET debugger attaches automatically? Can I configure it?
Thanks,
-Stan
|
by: Kevin Yu |
last post by:
hi all
got a questoin here, I have a winform client to call web service and the web
service functions have EnableSession =ture, use IE to test the web service
session, it works, but how to get it to work in winform? it seems like every
call to the service will start a new session even if the web service object
is a global variable in the winform.
kevin
| |
by: Benny Ng |
last post by:
Dear All,
Now I just finished my winform application. And a part of that is to
send email reminder to the users. It's working fine in the server that with
SMTP service in Windows 2003.
But now the user wants to used the Linux server to send email messages.
(already installed the SMTP service in that). Unfortunatelly one error shown
after the sending funciton invoked.
It shows "Pickup directory is not existed,x,x,x,,"
|
by: yao |
last post by:
there are two web method in my web service.
bool verifyUser(string user, string pwd)
DataSet GetData()
that I need connect the web service by WinForm, I hope the client is
verified by server by the verifyUser() ,and then it is allowed to execute
the GetData() method.
I think winform can't use Session object or Cookie for managing session
state, are there any good solutions for this?
|
by: moondaddy |
last post by:
I have a .net 2.0 winforms app that calls a web service which creates
creates a GUID and caches it, then passes the GUID back to the winform.
then it opens a aspx page and passes the GUID as a parameter. this GUID is
only cached for about 10 seconds and must be still cached for the page to
load. otherwise, the page redirects to a error page. all of this forces the
page to only be called from winforms app.
I can debug from the winform...
|
by: IsRaEl |
last post by:
Hello everybody...
i reeeealy need a way to automatically execute a WinForm with the same
permissions that i have with the LocalService user.
Thanks in advance...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |