-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: raagz
Message 8 in Discussion


Hi 
,
 
I 
assume that you have created an Exe file as output ( if not make the output as 
an exe file).
After 
you build the solution in VS.NET you can find the exe file generated in the bin 
folder.
 
To 
install the exe file (windows service exe ) as a service you need to follow 
these steps.
1.from 
VS.NET command prompt ( START ->PROGRAMS ->VS.NET->VS.NET Commandprompt 
)
2.go 
to the directory where the exe is generated using 
VS.NET
3.in 
the prompt type installutil FileName.exe
4. you 
should see the message " service is installed successfully"
5.Then 
run services from the Start->Run
6. you 
can find the Service you have created in the list of 
services.
7. 
RightClick on the service and select Start.
8. 
That's it you have started your service.
 
Thanks
Raghavendra
 
 

  -----Original Message-----
From: BanupriyaVelmurugan 
  [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 
  2004 1:02 PM
To: BDOTNET
Subject: Re: Sending automatic 
  mails from ASP.NET


  
    
      
      New Message on BDOTNET
    
      

  Sending 
    automatic mails from ASP.NET


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 6 in 
                Discussion 
      
        
          
            
            
              From: BanupriyaVelmurugan 
              
            
              

                Hi Raagz,
                 
                I added the code as follows
                 
                Protected Overrides Sub OnStart(ByVal args() As 
                String)
  ' Add code here to start your service. This 
                method should set things
  ' in motion so your service 
                can do its work.
  MakeURLRequest()
End 
Sub
                 
                Protected Overrides Sub OnStop()
  ' Add code 
                here to perform any tear-down necessary to stop your 
                service.
End Sub
                 
                Private Sub MakeURLRequest()
  Dim client As 
                New WebClient
  Dim bytedata As 
                Byte()
  Dim strURL As String
  strURL = 
                "http://localhost/birthday/birthdaymail.aspx";
  bytedata 
                = client.DownloadData(strURL)
End Sub
                 
                How to execute the windows service... It produces the 
                following error message on execution.
                 
                Cannot start service from the command 
                line or a debugger.  A Windows Service must first be 
                installed (using installutil.exe) and then started with the 
                ServerExplorer, Windows Services Administrative tool or the NET 
                START command.
                 
                How to go with this error?
                 
                Thanx & Regards,
                Banu
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to