Re: windows service
- From: "Ignacio Machin \( .NET/ C# MVP \)" <ignacio.machin AT dot.state.fl.us>
- Date: Tue, 12 Apr 2005 14:50:38 -0400
Hi,
I think that the LocalSystem does has permission to access the network, I
have a couple of processes running as LocalSystem and they listen to and
send/receive data over the network.
Maybe the OP is running the SQL server with win. auth.
Why don't you put a try/catch when you open the connection and perform the
DB operations?
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:uoGeM$3PFHA.2520@xxxxxxxxxxxxxxxxxxxxxxx
> J,
>
> The LocalSystem account does not have permissions to access the network
> either. You need to use the NetworkService account in order to access the
> network (assuming the SQL server is on another machine or you are
> accessing it through TCP/IP on the same machine).
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> "J" <j@xxxxxxxxxx> wrote in message
> news:rdun5199k0i3jhcg98q1e7g6nrq2f6e8g5@xxxxxxxxxx
>> Well, the account for the windows service is set to "LocalSystem", and I
>> have
>> assigned user id and password for the SQL server connection string.
>>
>> Any idea?
>> Thanks.
>>
>>
>> On Tue, 12 Apr 2005 09:36:03 -0700, "Salvador"
>> <Salvador@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>>>Hi,
>>>
>>>The first thing that you should notice is that the service uses another
>>>account to run, maybe you have a permissions issue. Try to load your
>>>server
>>>with your user and check again.
>>>
>>>hope this helps
>>>Salva
>>
>
>
.
- Follow-Ups:
- Re: windows service
- From: Willy Denoyette [MVP]
- Re: windows service
- References:
- windows service
- From: J
- RE: windows service
- From: Salvador
- Re: windows service
- From: J
- Re: windows service
- From: Nicholas Paldino [.NET/C# MVP]
- windows service
- Prev by Date: Re: wasn't there a way to access a datatable with [][]
- Next by Date: Re: C#/2.0: Tricky issue with generics.
- Previous by thread: Re: windows service
- Next by thread: Re: windows service
- Index(es):
Relevant Pages
|