SunQuest
 
           Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 4th, 2002, 08:47 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Article Discussion: Creating A Windows Service in VB.NET

Creating A Windows Service in VB.NET If you have any comments or questions about this article then please post them here.

You can read the article here .

Reply With Quote
  #2  
Old October 5th, 2002, 11:33 AM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7
Is someone going around rating all the articles bad? I read the article, and it certainly deserved more than a 2!

Reply With Quote
  #3  
Old January 1st, 2003, 01:16 AM
tuoc tuoc is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 1 tuoc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

Hello Jayesh Jain,

Thanks for the Article. It's really help me lots. I have couple questions if you don't might answering. First, could you please tell me where can I download the Windows Service Template? My VB .NET doesn't have it. Second, is it possible to build a windows service to interact with a web service? If it is, could you kindly give me some hints or direction?

Many Thanks
Tuoc

Reply With Quote
  #4  
Old March 14th, 2003, 02:23 PM
chsantosh chsantosh is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 chsantosh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
opening a new process(executable)

Thank you very much for all the information.
The article is just too good.....it works great for me.
I was wondering if there is a way to start a new process....start an executable on certain event.
If so can you help me with it.

Thank you very much for your time

Reply With Quote
  #5  
Old March 18th, 2003, 03:16 PM
chsantosh chsantosh is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 chsantosh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
opening a new process(executable)

Does anybody have an answer as to how can we open a new process from a windows service.??

Thanks for your time

Reply With Quote
  #6  
Old April 15th, 2003, 08:27 AM
kumar26 kumar26 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 kumar26 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need some help ... It's urgent !!!

Hi Jayesh,

Gone thro' ur article. It's very nice !!!

I need to use windows services in my module to poll the database. I'm using SQL server as backend & ASP.NET using vb.net. But i'm not getting how to use a connection string in it.

Will u plz help me in connecting services to the database.

Waiting for ur earliest reply .

Reply With Quote
  #7  
Old April 24th, 2003, 07:25 AM
gofunny88 gofunny88 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 1 gofunny88 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking How to run the service when bootup

The service created in .Net is to be running by installutil.

How can we automatically run the service when Windows is boot up ?

I also want to know how to create Service without .Net.

Microsoft seems keeping secret in "Service" and not giving us very easy way to create service (prior to .Net). Very strange !!! Not documented ..............

Reply With Quote
  #8  
Old April 30th, 2003, 11:18 AM
kjledford kjledford is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 1 kjledford User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Windows Service - Querying/Insert DB

I am trying to create a windows service using Visual Studio.Net (2002) that will query one database and update another with the results.

My code works fine in a web app - but I need this repeated every 10-15 minutes - so I built a windows service around it.

The service does not show any build errors - and it writes to the log just fine - but it seems to just ignore the whole query/insert record section... Can windows services do that???

Thanks!
Kristina

Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed


Dim MyLog As New EventLog() ' create a new event log
' Check if the the Event Log Exists
If Not MyLog.SourceExists("MyService") Then
MyLog.CreateEventSource("MyService", "Myservice Log") ' Create Log
End If
MyLog.Source = "MyService"
' Write to the Log
MyLog.WriteEntry("MyService Log", "Test 3 " & _
CStr(TimeOfDay), EventLogEntryType.Information)

Call UpdateData()

End Sub

Sub UpdateData()
Me.selectRsched.CommandText &= " WHERE entry_date = {d '" & DateTime.Now.ToString("yyyy\-MM\-dd") & "'} " & _
" AND entry_time > '" & DateTime.Now.AddMinutes(-15).ToString("HH:mm") & "'"
Me.qryRsched.Fill(Me.DsRsched)

Me.conSuperTED.Open()
Dim index As Integer = 0
While index < Me.DsRsched.Tables(0).Rows.Count
Me.insertEmailTransactions.Parameters("@trans_no").Value = Me.DsRsched.Tables(0).Rows(index).Item("trans_no")
Me.insertEmailTransactions.Parameters("@emailed").Value = 0
Me.insertEmailTransactions.Parameters("@reminded").Value = 0
Me.insertEmailTransactions.ExecuteNonQuery()
index = index + 1
End While
Me.conSuperTED.Close()
End Sub

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Creating A Windows Service in VB.NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway