Re: Problems accessing the ASPNETDB.MDF file



Do you know which account your application pool is running under? Have you tried granting modify permissions on the directory to that account?


"Fritjolf" <Morten.Jacobsen@xxxxxxx> wrote in message news:1154797613.196502.291770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanx for your reply.

I've tested this for an hours in all possible ways. Still readonly,
still the same error messages and still no closer to my goal.

Any other tips?

Thanx in advance,
Fritjolf


Nicole Calinoiu wrote:
Have you tried the workaround described at
http://www.tjitjing.com/blog/2006/05/failed-to-update-database-xxxmdf.html?



"Fritjolf" <Morten.Jacobsen@xxxxxxx> wrote in message
news:1154599520.556515.169320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi.
>
> I have serious problems trying to authenticate users with the build in
> functionality in asp.net 2.0. In the process of trying to debug this
> problem I've made a very simple webtest application.
>
> Hardware and software info:
> - I'm using VS2005 and I'm developing on XP
> - I'm using a local DB file for some data (placed in the app_data
> folder)
> - After running asp.net configuration and adding a few users the
> ASPNETDB.MDF file is generated.
> - The form contains a grid view, just viewing a table named Person.
> This data is viewed without any problems.
> - I added a logon control. I can login when I run it at my XP
> development machine, but after deployment I can't log in anymore. I
> just get the default message that my login attempt was not successful.
> I deploy it to a Windows 2003 server standard edition.
> - I added a signup wizard. When I try and run this I get the error:
>
> "Failed to update database
> "E:\WEBROOT\DBDEPLOYTEST1\APP_DATA\ASPNETDB.MDF" because the database
> is read-only. " and
> "Source Error:
>
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of
> the exception can be identified using the exception stack trace below.
> "
>
> I see no reason for pasting in the stack trace.
>
> - To debug even more I added a grid view based on the table:
> aspnet_Users located in the problem file: ASPNETDB.MDF. This actually
> shows me that the users I created on my development machine exists, but
> I can NOT log in with these users.
>
> I've tried adding all rights to aspnet and the iusr_ user on the
> app_data folder. Did nothing...
>
> I can't figure out where the problem is. I would REALLY appreciate some
> help.
>
> Thanx,
>
> Fritjolf
>


.



Relevant Pages

  • Re: Problems accessing the ASPNETDB.MDF file
    ... development machine, but after deployment I can't log in anymore. ... "Source Error: ... the exception can be identified using the exception stack trace below. ... I see no reason for pasting in the stack trace. ...
    (microsoft.public.dotnet.security)
  • Re: Problems accessing the ASPNETDB.MDF file
    ... still the same error messages and still no closer to my goal. ... development machine, but after deployment I can't log in anymore. ... the exception can be identified using the exception stack trace below. ... I see no reason for pasting in the stack trace. ...
    (microsoft.public.dotnet.security)
  • Problems accessing the ASPNETDB.MDF file
    ... development machine, but after deployment I can't log in anymore. ... the exception can be identified using the exception stack trace below. ... I see no reason for pasting in the stack trace. ... To debug even more I added a grid view based on the table: ...
    (microsoft.public.dotnet.security)
  • Re: How do I fix this error: "The current identity (NT AUTHORITYNETWORK SERVICE) does not have
    ... I have set the ACL's to give write access for the account, ... it deletes the ACL I had previously set. ... >> Exception Details: System.Web.HttpException: The current identity (NT ... >> the exception can be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Problems accessing the ASPNETDB.MDF file
    ... I've never even seen the application pool. ... If you can't use IIS Manager on the server, you can access the account name ... development machine, but after deployment I can't log in anymore. ... An unhandled exception was generated during the execution of the ...
    (microsoft.public.dotnet.security)