Ask a Question related to ASP.NET Security, Design and Development.
-
Martin #1
DPAPI Service Start access is denied
Hi,
Following the procedures for "How To:Use DPAPI (User Store) from ASP.NET
with Enterprise Services" from Building Secure ASP NET Applciations pdf,
after installing the service, I try to start it, but get the error
"Services - Could not start the DPAPI Service server on Local Computer.
Error 5: Access is denied".
My OS is Windows XP Pro. The local account configured to run this service
has "Log on as a batch job" and "Log on locally" user rights as per the
instructions.
What's the problem?
Quick answer required, please
Thanks
Martin
Martin Guest
-
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Access Denied - Network Service vs Local Service
I have been struggling with my ASP.NET (V1.1 sp1) websites getting an 'Access Denied' message. I have track down the problem (I think) to the IIS... -
Unable to start debugging on the web server. Access is denied.
When user try to debug an Asp Web application, He got error "Unable to start debugging on the web server. Access is denied. The IIS server installed... -
Web Service Credentials - Access Denied
I am having problems passing the credentials from the current user to the Web Service. THANK YOU in advance for any help!! Web Service and Web... -
Access denied to Failed to start monitoring file changes.
"Mark" <postOnly@news.group> wrote Mark, Check out the following MS KB articles: FIX: "Failed to Start Monitoring Directory Changes" Error... -
Martin #2
Re: DPAPI Service Start access is denied
It works if I make the local dpapi account a member of local administrators,
so there's nothing wrong with the code. I guess this is another security
policy I need to set, but don't know which one.
????
Martin
"Martin" <x@y.z> wrote in message
news:%23URT4jDlEHA.1152@TK2MSFTNGP11.phx.gbl...> Hi,
>
> Following the procedures for "How To:Use DPAPI (User Store) from ASP.NET
> with Enterprise Services" from Building Secure ASP NET Applciations pdf,
> after installing the service, I try to start it, but get the error
> "Services - Could not start the DPAPI Service server on Local Computer.
> Error 5: Access is denied".
>
> My OS is Windows XP Pro. The local account configured to run this service
> has "Log on as a batch job" and "Log on locally" user rights as per the
> instructions.
>
> What's the problem?
>
> Quick answer required, please
>
> Thanks
> Martin
>
>
Martin Guest
-
Nicole Calinoiu #3
Re: DPAPI Service Start access is denied
I cannot reproduce the problem under Windows XP SP2. A few questions:
1. Have you deviated in any way from the procedure described in that
document?
2. Of what group(s) is the local account a member?
3. Is this happening on your dev machine or another machine on which you've
installed the service?
4. Prior to attempting to start the service, did you log on with the
account credentials in order to create a profile for it?
"Martin" <x@y.z> wrote in message
news:%23URT4jDlEHA.1152@TK2MSFTNGP11.phx.gbl...> Hi,
>
> Following the procedures for "How To:Use DPAPI (User Store) from ASP.NET
> with Enterprise Services" from Building Secure ASP NET Applciations pdf,
> after installing the service, I try to start it, but get the error
> "Services - Could not start the DPAPI Service server on Local Computer.
> Error 5: Access is denied".
>
> My OS is Windows XP Pro. The local account configured to run this service
> has "Log on as a batch job" and "Log on locally" user rights as per the
> instructions.
>
> What's the problem?
>
> Quick answer required, please
>
> Thanks
> Martin
>
>
Nicole Calinoiu Guest
-
Martin #4
Re: DPAPI Service Start access is denied
Hi Nicole,
Please see my answers below. I am using Windows XP Sp1. Is there a way I
can further detail on what acces is being to denied to what resource?
Thanks for your help
Martin
"Nicole Calinoiu" <ngcalinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:%237XS3yalEHA.1356@TK2MSFTNGP09.phx.gbl...I don't believe so, but how can I be sure? As I say the code works if the> I cannot reproduce the problem under Windows XP SP2. A few questions:
>
> 1. Have you deviated in any way from the procedure described in that
> document?
account is in local admins.
Users> 2. Of what group(s) is the local account a member?
you've> 3. Is this happening on your dev machine or another machine on whichMy dev machine> installed the service?
Yes, but i didn't stay logged on very long. How can I show that the profile> 4. Prior to attempting to start the service, did you log on with the
> account credentials in order to create a profile for it?
is created? C:\Documents and Settings has a local sub dir for this user.
service>
>
>
> "Martin" <x@y.z> wrote in message
> news:%23URT4jDlEHA.1152@TK2MSFTNGP11.phx.gbl...> > Hi,
> >
> > Following the procedures for "How To:Use DPAPI (User Store) from ASP.NET
> > with Enterprise Services" from Building Secure ASP NET Applciations pdf,
> > after installing the service, I try to start it, but get the error
> > "Services - Could not start the DPAPI Service server on Local Computer.
> > Error 5: Access is denied".
> >
> > My OS is Windows XP Pro. The local account configured to run this>> > has "Log on as a batch job" and "Log on locally" user rights as per the
> > instructions.
> >
> > What's the problem?
> >
> > Quick answer required, please
> >
> > Thanks
> > Martin
> >
> >
>
>
Martin Guest
-
Nicole Calinoiu #5
Re: DPAPI Service Start access is denied
Martin,
If you've really followed the steps properly, then I'm a bit stumped. Here
are a few things to try:
1. Check if the user you want to use to launch the service actually has
permissions to run the service executable and the DLLs. If not, adjust the
ACLs to allow this.
2. If #1 doesn't help, turn on audit logging of all access failures. To do
this, launch the "Local Security Settings" mmc, then ensure that failure
audit logging is enabled for every policy under Security Settings\Local
Policies\Audit Policy. Once this is done, try launching the service again,
then check the event log to see if any failures were logged due to the
attempt.
3. If #1 doesn't help, the only thing I can think of is to start over from
scratch (new VStudio projects, new user, etc.) to ensure that you are
actually following the procedure exactly.
HTH,
Nicole
"Martin" <x@y.z> wrote in message
news:uM0cNWelEHA.2140@TK2MSFTNGP15.phx.gbl...> Hi Nicole,
>
> Please see my answers below. I am using Windows XP Sp1. Is there a way I
> can further detail on what acces is being to denied to what resource?
>
> Thanks for your help
> Martin
>
> "Nicole Calinoiu" <ngcalinoiu REMOVETHIS AT gmail DOT com> wrote in
> message
> news:%237XS3yalEHA.1356@TK2MSFTNGP09.phx.gbl...> I don't believe so, but how can I be sure? As I say the code works if the>> I cannot reproduce the problem under Windows XP SP2. A few questions:
>>
>> 1. Have you deviated in any way from the procedure described in that
>> document?
> account is in local admins.
>> Users>> 2. Of what group(s) is the local account a member?
>> you've>> 3. Is this happening on your dev machine or another machine on which> My dev machine>> installed the service?
>> Yes, but i didn't stay logged on very long. How can I show that the>> 4. Prior to attempting to start the service, did you log on with the
>> account credentials in order to create a profile for it?
> profile
> is created? C:\Documents and Settings has a local sub dir for this user.
>> service>>
>>
>>
>> "Martin" <x@y.z> wrote in message
>> news:%23URT4jDlEHA.1152@TK2MSFTNGP11.phx.gbl...>> > Hi,
>> >
>> > Following the procedures for "How To:Use DPAPI (User Store) from
>> > ASP.NET
>> > with Enterprise Services" from Building Secure ASP NET Applciations
>> > pdf,
>> > after installing the service, I try to start it, but get the error
>> > "Services - Could not start the DPAPI Service server on Local Computer.
>> > Error 5: Access is denied".
>> >
>> > My OS is Windows XP Pro. The local account configured to run this>>>>> > has "Log on as a batch job" and "Log on locally" user rights as per the
>> > instructions.
>> >
>> > What's the problem?
>> >
>> > Quick answer required, please
>> >
>> > Thanks
>> > Martin
>> >
>> >
>>
>>
>
Nicole Calinoiu Guest
-
Martin #6
Re: DPAPI Service Start access is denied
Thanks Nicole,
I will try those things. Thanks for your help.
I'll let you know what happens
Martin
"Nicole Calinoiu" <ngcalinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:eToQGymlEHA.3632@TK2MSFTNGP09.phx.gbl...> Martin,
>
> If you've really followed the steps properly, then I'm a bit stumped.
> Here are a few things to try:
>
> 1. Check if the user you want to use to launch the service actually has
> permissions to run the service executable and the DLLs. If not, adjust
> the ACLs to allow this.
>
> 2. If #1 doesn't help, turn on audit logging of all access failures. To
> do this, launch the "Local Security Settings" mmc, then ensure that
> failure audit logging is enabled for every policy under Security
> Settings\Local Policies\Audit Policy. Once this is done, try launching
> the service again, then check the event log to see if any failures were
> logged due to the attempt.
>
> 3. If #1 doesn't help, the only thing I can think of is to start over
> from scratch (new VStudio projects, new user, etc.) to ensure that you are
> actually following the procedure exactly.
>
> HTH,
> Nicole
>
>
> "Martin" <x@y.z> wrote in message
> news:uM0cNWelEHA.2140@TK2MSFTNGP15.phx.gbl...>>> Hi Nicole,
>>
>> Please see my answers below. I am using Windows XP Sp1. Is there a way
>> I
>> can further detail on what acces is being to denied to what resource?
>>
>> Thanks for your help
>> Martin
>>
>> "Nicole Calinoiu" <ngcalinoiu REMOVETHIS AT gmail DOT com> wrote in
>> message
>> news:%237XS3yalEHA.1356@TK2MSFTNGP09.phx.gbl...>> I don't believe so, but how can I be sure? As I say the code works if>>> I cannot reproduce the problem under Windows XP SP2. A few questions:
>>>
>>> 1. Have you deviated in any way from the procedure described in that
>>> document?
>> the
>> account is in local admins.
>>>> Users>>> 2. Of what group(s) is the local account a member?
>>>> you've>>> 3. Is this happening on your dev machine or another machine on which>> My dev machine>>> installed the service?
>>>> Yes, but i didn't stay logged on very long. How can I show that the>>> 4. Prior to attempting to start the service, did you log on with the
>>> account credentials in order to create a profile for it?
>> profile
>> is created? C:\Documents and Settings has a local sub dir for this user.
>>>> service>>>
>>>
>>>
>>> "Martin" <x@y.z> wrote in message
>>> news:%23URT4jDlEHA.1152@TK2MSFTNGP11.phx.gbl...
>>> > Hi,
>>> >
>>> > Following the procedures for "How To:Use DPAPI (User Store) from
>>> > ASP.NET
>>> > with Enterprise Services" from Building Secure ASP NET Applciations
>>> > pdf,
>>> > after installing the service, I try to start it, but get the error
>>> > "Services - Could not start the DPAPI Service server on Local
>>> > Computer.
>>> > Error 5: Access is denied".
>>> >
>>> > My OS is Windows XP Pro. The local account configured to run this>>>>> > has "Log on as a batch job" and "Log on locally" user rights as per
>>> > the
>>> > instructions.
>>> >
>>> > What's the problem?
>>> >
>>> > Quick answer required, please
>>> >
>>> > Thanks
>>> > Martin
>>> >
>>> >
>>>
>>>
>>>
>>
>
Martin Guest
-
Martin #7
Re: DPAPI Service Start access is denied
Nicole,
My local account didn't have access to the dlls and exe. The basic service
runs now I have given the account read and execute permissions. I haven't
done any other testing or completed the last steps of the how to yet, but I
am over that hurdle.
Thanks very much for yoiur help.
Martin
"Nicole Calinoiu" <ngcalinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:eToQGymlEHA.3632@TK2MSFTNGP09.phx.gbl...Here> Martin,
>
> If you've really followed the steps properly, then I'm a bit stumped.the> are a few things to try:
>
> 1. Check if the user you want to use to launch the service actually has
> permissions to run the service executable and the DLLs. If not, adjustdo> ACLs to allow this.
>
> 2. If #1 doesn't help, turn on audit logging of all access failures. Toagain,> this, launch the "Local Security Settings" mmc, then ensure that failure
> audit logging is enabled for every policy under Security Settings\Local
> Policies\Audit Policy. Once this is done, try launching the servicefrom> then check the event log to see if any failures were logged due to the
> attempt.
>
> 3. If #1 doesn't help, the only thing I can think of is to start overI> scratch (new VStudio projects, new user, etc.) to ensure that you are
> actually following the procedure exactly.
>
> HTH,
> Nicole
>
>
> "Martin" <x@y.z> wrote in message
> news:uM0cNWelEHA.2140@TK2MSFTNGP15.phx.gbl...> > Hi Nicole,
> >
> > Please see my answers below. I am using Windows XP Sp1. Is there a waythe> > can further detail on what acces is being to denied to what resource?
> >
> > Thanks for your help
> > Martin
> >
> > "Nicole Calinoiu" <ngcalinoiu REMOVETHIS AT gmail DOT com> wrote in
> > message
> > news:%237XS3yalEHA.1356@TK2MSFTNGP09.phx.gbl...> > I don't believe so, but how can I be sure? As I say the code works if> >> I cannot reproduce the problem under Windows XP SP2. A few questions:
> >>
> >> 1. Have you deviated in any way from the procedure described in that
> >> document?Computer.> > account is in local admins.
> >> > Users> >> 2. Of what group(s) is the local account a member?
> >> > you've> >> 3. Is this happening on your dev machine or another machine on which> > My dev machine> >> installed the service?
> >> > Yes, but i didn't stay logged on very long. How can I show that the> >> 4. Prior to attempting to start the service, did you log on with the
> >> account credentials in order to create a profile for it?
> > profile
> > is created? C:\Documents and Settings has a local sub dir for this user.
> >> >>
> >>
> >>
> >> "Martin" <x@y.z> wrote in message
> >> news:%23URT4jDlEHA.1152@TK2MSFTNGP11.phx.gbl...
> >> > Hi,
> >> >
> >> > Following the procedures for "How To:Use DPAPI (User Store) from
> >> > ASP.NET
> >> > with Enterprise Services" from Building Secure ASP NET Applciations
> >> > pdf,
> >> > after installing the service, I try to start it, but get the error
> >> > "Services - Could not start the DPAPI Service server on Localthe> > service> >> > Error 5: Access is denied".
> >> >
> >> > My OS is Windows XP Pro. The local account configured to run this> >> > has "Log on as a batch job" and "Log on locally" user rights as per>> >> >> > instructions.
> >> >
> >> > What's the problem?
> >> >
> >> > Quick answer required, please
> >> >
> >> > Thanks
> >> > Martin
> >> >
> >> >
> >>
> >>
> >>
> >
>
Martin Guest



Reply With Quote

