User Profile

Collapse

Profile Sidebar

Collapse
calinux
calinux
Last Activity: Nov 3 '08, 07:57 AM
Joined: Oct 27 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • calinux
    replied to windows service (c#) through proxy
    in .NET
    yes i implemented

    Code:
    Public Class pcksrv
        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.
            LogInfo("Stariting the service")
            myClock.Enabled = True
    
        End Sub
    
        Protected Overrides Sub OnStop()
    ...
    See more | Go to post

    Leave a comment:


  • calinux
    replied to windows service (c#) through proxy
    in .NET
    Hi Plater

    i tried this, but u know virtualization in Vista! registry ideea is not good.
    at setup process (installation) i am writing default proxy setings in a file. when i am running the service, i am reading the proxy from that file. i thought that this will solve the problem, but appear a new one:
    The <my_service_nam e>service hung on starting.

    any idea?
    thank u in advance!

    ...
    See more | Go to post

    Leave a comment:


  • calinux
    replied to windows service (c#) through proxy
    in .NET
    Hi Plater

    is all true what u said. the service is running like LocalSystem, but i need to be ran by localsystem. U know in vista is more complicate. for this i implemented Elevated method.

    This service need to have ADMIN privileges. Any ideea how can i use default proxy in my windows service started like LocalSystem?

    Thank you in advance
    Calin
    See more | Go to post

    Leave a comment:


  • calinux
    replied to windows service (c#) through proxy
    in .NET
    Hi Plater

    all time the service is trying to access DIRECT (doesn't matter if in IE is seted up a proxy)

    Code:
     Dim objRequest As HttpWebRequest
     objRequest = WebRequest.Create(URL + PostData)
     Dim retProxy As WebProxy
     Dim retURI As Uri
     retURI = New Uri(URL)
     retProxy = New WebProxy(WebRequest.DefaultWebProxy.GetProxy(retURI))
     objRequest.Credentials = CredentialCache.DefaultCredentials
    ...
    See more | Go to post

    Leave a comment:


  • calinux
    started a topic windows service (c#) through proxy
    in .NET

    windows service (c#) through proxy

    hi

    i am developing a windows application (VS 2008 - .net 3.5) which is requesting some data from a server (XML) and depends by results it is doing something

    this application is using a UI for load/ save setings and a windows service which is requesting data at each 20 minutes.

    i realized that the form (UI) has no problem to communicate with server (with or without proxy) but windows service is working...
    See more | Go to post

  • windows service (vb .net) through default proxy

    hi

    i am developing a windows application (VS 2008 - .net 3.5) which is requesting some data from a server (XML) and depends by results it is doing something

    this application is using a UI for load/ save setings and a windows service which is requesting data at each 20 minutes.

    i realized that the form (UI) has no problem to communicate with server (with or without proxy) but windows service is working...
    See more | Go to post
No activity results to display
Show More
Working...