Database is read-only.<p>Hi </p> <p>I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when&nbsp;I run the app from the Browser tells me that he Database&nbsp;It's&nbsp;set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open the&nbsp;App. on hte VS and it runs find.</p> <p>This is the error:<br /></p> <p>&nbsp;<strong>Exception Details: </strong><font face="Arial">System.Data.SqlClient.SqlException: Failed to update database "C:\INETPUB\WWWROOT\ESPM\APP_DATA\ASPNETDB.MDF" because the database is read-only.</font><br /><br />If anyone have any ideas I would really aprecciate.<br /></p>© 2009 Microsoft Corporation. All rights reserved.Fri, 12 Dec 2008 04:43:27 Z2e776fb4-6df9-4a11-96f1-948b8a2f839ahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#2e776fb4-6df9-4a11-96f1-948b8a2f839ahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#2e776fb4-6df9-4a11-96f1-948b8a2f839aRaferhttp://social.msdn.microsoft.com/Profile/en-US/?user=RaferDatabase is read-only.<p>Hi </p> <p>I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when&nbsp;I run the app from the Browser tells me that he Database&nbsp;It's&nbsp;set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open the&nbsp;App. on hte VS and it runs find.</p> <p>This is the error:<br /></p> <p>&nbsp;<strong>Exception Details: </strong><font face="Arial">System.Data.SqlClient.SqlException: Failed to update database "C:\INETPUB\WWWROOT\ESPM\APP_DATA\ASPNETDB.MDF" because the database is read-only.</font><br /><br />If anyone have any ideas I would really aprecciate.<br /></p>Fri, 05 Aug 2005 20:42:03 Z2006-06-01T02:00:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#b7111d36-527f-4369-80ff-08544985e430http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#b7111d36-527f-4369-80ff-08544985e430ianhochttp://social.msdn.microsoft.com/Profile/en-US/?user=ianhocDatabase is read-only.I got the same error - no doubt you have solved it by now - can you share....?<br /><br />Thanks<br />ianWed, 10 Aug 2005 23:07:45 Z2005-08-10T23:07:45Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#07c6d469-644a-4e47-8695-93fd715f05abhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#07c6d469-644a-4e47-8695-93fd715f05abRaferhttp://social.msdn.microsoft.com/Profile/en-US/?user=RaferDatabase is read-only.Actually I haven't but I thikn i know where it is going. I thikn it has to be with the IIS, and something has to do with the permissions of write on the user that is use to access de app. Other than that I am out of ideas.<br /><br />how about you ?? <br /><br />Thu, 11 Aug 2005 02:11:52 Z2005-08-11T02:11:52Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#a6506fe9-6c48-4e7c-95b2-9200f8831702http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#a6506fe9-6c48-4e7c-95b2-9200f8831702ianhochttp://social.msdn.microsoft.com/Profile/en-US/?user=ianhocDatabase is read-only.I went through&nbsp;deleting the files, using SSEUTIL to detach database, reset permissions on the folders and then copy back. Still no good - and I can't find any other ideas on the Internet.......<br />Thanks anyway<br />IanThu, 11 Aug 2005 13:13:13 Z2005-08-11T13:13:13Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#0ab63d10-8a29-46e5-9e92-7923af5e6db9http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#0ab63d10-8a29-46e5-9e92-7923af5e6db9BostonZZZhttp://social.msdn.microsoft.com/Profile/en-US/?user=BostonZZZDatabase is read-only.I went through deleting the files and using the SSEUTIL program as well. I still have not been able to resolve this issue. Has anyone else figured it out?<br /><br />Thanks<br />ZaneWed, 17 Aug 2005 19:15:31 Z2005-08-17T19:15:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#199009c1-d13c-427e-8c23-9a68fa5fa090http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#199009c1-d13c-427e-8c23-9a68fa5fa090trenskow01http://social.msdn.microsoft.com/Profile/en-US/?user=trenskow01Database is read-only.I am having the exact same problem, and would really like to know if anyone has found the answer to this.<br /> Fri, 19 Aug 2005 09:18:04 Z2005-08-19T09:18:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#462a493a-4312-43cb-8932-c0230be15d53http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#462a493a-4312-43cb-8932-c0230be15d53CSharpnerhttp://social.msdn.microsoft.com/Profile/en-US/?user=CSharpnerDatabase is read-only.Ditto!&nbsp; Nothing I can do will make it work.&nbsp; I would MUCH prefer to run it on SQL Server 2000, but there are tons of tables, views, stored procedures, and even a few functions in the express databases.&nbsp; Not worth manually copying each one.<br /> <br /> If anyone figures this out, please let us know.&nbsp; I googled:<br /> <br /> "ASPNETDB.MDF" read only<br /> <br /> and found only THREE links on google groups, this being one of them.<br /> <br /> <ul> <li>I created a new personal web site (using Visual Studio .NET 2005 Beta 2, not VWD)</li> <li>Setup security via the notes in welcome.html<br /> </li> <li>ran it successfully locally on my dev machine straight from VS.NET<br /> </li> <li>Copied the web to my server.</li> <li>Tried to run it from the server and got the same read only errors everyone else is getting.</li> </ul> <br /> I haven't tried this yet, but I'm wondering if running it locally, or administering it locally on the dev machine, then copying those modified database files up, somehow screws with it.&nbsp; I'm going to try creating a totally fresh personal web site, do NO config and NO running locally, copy that up to the server, then see what happens.<br /> Sat, 27 Aug 2005 04:40:00 Z2005-08-27T04:40:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#1e946b84-b5a6-4de1-b8df-f920fda71898http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#1e946b84-b5a6-4de1-b8df-f920fda71898rvaneijkhttp://social.msdn.microsoft.com/Profile/en-US/?user=rvaneijkDatabase is read-only.<p>With a bit of searching on Google I found out that this is a bug from an older release. Microsoft claimed to have fixed it in the latest release but the problem still excists&nbsp;:(<br /><br /><a target="_blank" title="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=dd6d161b-df08-40bc-b9ed-fbca71949ddc" href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=dd6d161b-df08-40bc-b9ed-fbca71949ddc">http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=dd6d161b-df08-40bc-b9ed-fbca71949ddc</a><br /><br />Guess we have to wait..and wait..and wait<br /><br /></p>Sat, 27 Aug 2005 14:05:42 Z2005-08-27T14:05:42Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#5ba97ffc-95af-4bce-a4f9-563527ee487ehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#5ba97ffc-95af-4bce-a4f9-563527ee487eEuan Gardenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Euan%20GardenDatabase is read-only.Can you try the following steps.<br /><br />1. Check the file attributes on the MDF to make sure its writable.<br />2. Make sure the user has permissions to the file.<br />3. Run the following query;<br />use master<br />select name, status from sysdatabases<br /><br />If you are using AttachDBFilename in the connection string you will need to insert some debug code that does a debug print/console.writeline or something to get the output once the conneciton has been made and before any sql has been executed.<br /><br />If you are using regular connections then just run the above from sqlcmd or express managerWed, 31 Aug 2005 03:29:24 Z2005-08-31T03:29:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#63eb4305-7dff-4802-91c5-c6d47394bbb0http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#63eb4305-7dff-4802-91c5-c6d47394bbb0ianhochttp://social.msdn.microsoft.com/Profile/en-US/?user=ianhocDatabase is read-only.I spent so long on this (and other bugs/problems with VS .Net 2005) that I gave up. Went back to using VS 2003 and regular SQL Server for the security database. It boggles my mind that something so simple can cause so many problems - I have read 20 different solutions to get this ever-so-simple-idea working - WTF are people doing?Wed, 31 Aug 2005 12:28:50 Z2005-08-31T12:28:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#136de418-3797-47b4-a394-aadc3392c564http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#136de418-3797-47b4-a394-aadc3392c564ScottMFGhttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottMFGDatabase is read-only.<p>I have been struggling with this for the past week or so.&nbsp; Just as I was ready to give up and go back to VS2003 I decided to try one last thing.&nbsp; Now it works!&nbsp; </p> <p>Here is the process I went through:<br />I first deleted my site files from c:\inetpup\wwwroot.&nbsp; Then using the sseutil, I detatched every database I was using for the site including the aspnetdb.mdf.&nbsp; I then changed the permissions on the wwwroot folder to allow full control for user aspnet (using IIS 5.1).&nbsp; Then from inside VS2005, I copied the site again to the root of the IIS server.</p> <p>As I mentioned earlier, this finally worked for me.&nbsp; I hope it works for you as well.<br /></p>Thu, 15 Sep 2005 17:55:16 Z2007-07-19T16:53:10Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#6d53266b-d48b-4966-82cf-2a75fe2dc29ehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#6d53266b-d48b-4966-82cf-2a75fe2dc29eOliver Bertramhttp://social.msdn.microsoft.com/Profile/en-US/?user=Oliver%20BertramDatabase is read-only.<img src="/msdn//emoticons/emotion-2.gif" alt="Big Smile" /> This worked for me!<br /> <br /> Thanks a lot!<br /> Mon, 10 Oct 2005 23:33:38 Z2005-10-10T23:33:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#b614f751-0863-426f-8796-5df03d4f8beehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#b614f751-0863-426f-8796-5df03d4f8beeSuperboyhttp://social.msdn.microsoft.com/Profile/en-US/?user=SuperboyDatabase is read-only.You got it right my friend ! And you don't even have to remove your application before and to put it back after .. juste add the permissions to aspnet. Thank a lot !Wed, 23 Nov 2005 02:38:35 Z2005-11-23T02:38:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#326b52e3-c4d7-4841-9c63-54868d965ca8http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#326b52e3-c4d7-4841-9c63-54868d965ca8Justin Chasehttp://social.msdn.microsoft.com/Profile/en-US/?user=Justin%20ChaseDatabase is read-only.Actually all you have to do is give write permissions to ASPNET&nbsp;for the App_Data directory instead of all of wwwroot (you probably don't want to do that). <br /><br />Its probably advisable to use a real sql database anyway but for testing purposes these files aren't too bad.<br /><br />Fri, 02 Dec 2005 17:20:01 Z2005-12-02T17:20:01Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#fc56a55e-eead-4ec1-9565-1eac8f77ae14http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#fc56a55e-eead-4ec1-9565-1eac8f77ae14Justin Chasehttp://social.msdn.microsoft.com/Profile/en-US/?user=Justin%20ChaseDatabase is read-only.So to be clear to resolve the issue where you have a .mdf database file generated by VS2005 and it gives you read-only errors you must do these things:<br /><br />1.) Make sure your virtual directory is running ASP.NET v2.*<br />2.) Give the user ASPNET full control over the App_Data directory found within your website.<br />3.) Restart IIS to refresh its permissions.<br />Fri, 02 Dec 2005 17:35:53 Z2006-06-01T02:00:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#d4340c40-8bdd-461f-a41d-50a5730a2353http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#d4340c40-8bdd-461f-a41d-50a5730a2353Jamokayhttp://social.msdn.microsoft.com/Profile/en-US/?user=JamokayDatabase is read-only.<p>I do hope you found a solution to your problem, I had the same problem and I managed to solve it.</p> <p>1st I read somewhere that you have to give Network Service full permissions over the wwwroot and app_data, but, after doing this myself it din't help much.   Then I noticed that the cookie disabled &quot;eye sort of icon that appeares at the bottom of the browser when a cookie has been rejected&quot; was coming on whenever this error came about, so I set my browser to accept all cookies from my site and BRAVO!!!, things seem to work fine now, hope this helps anyone looking for a solution to this.</p> <p>Saying that, am not sure myself whether it was a combination of the two things as mentioned above or just one.</p> <p>Good luck.</p>Fri, 03 Feb 2006 22:03:06 Z2006-02-03T22:03:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#ba1b2f57-dda0-4946-8cca-14de28363a29http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#ba1b2f57-dda0-4946-8cca-14de28363a29fadi_1plhttp://social.msdn.microsoft.com/Profile/en-US/?user=fadi_1plDatabase is read-only.<P>How are you all</P> <P>I faced the same problem as you faced and i tried to apply your solutions. Unfortenatlly&nbsp;I couldn't. But i was trying to find a way to add the permession to the asp as you said and i found a way to do that without giving permissions for a specifice folder whish is:</P> <P>1) right click on my computer</P> <P>2) point to manag and click</P> <P>3) go to the directory local users and groups/ users</P> <P>4) right click on ASPNET and choose properties</P> <P>5) select the Member OF tab</P> <P>6) final add addministrators permission</P> <P>I hope that is the right solution</P> <P>Best wishes</P> <P>&nbsp;</P>Fri, 10 Feb 2006 13:17:45 Z2006-02-10T13:17:45Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#7a9e2b20-3338-4c54-8796-0a2f44b93570http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#7a9e2b20-3338-4c54-8796-0a2f44b93570mt3chhttp://social.msdn.microsoft.com/Profile/en-US/?user=mt3chDatabase is read-only.Are these solutions are directed at Windows Server users rather than Windows XP users? The features described for giving a user account (be it &quot;NT Authority/Network Service&quot; on IIS 6 or &quot;ASPNET&quot; on IIS 5.1) do not seem to be available to me. <br><br>A previous poster said &quot;<span id="_ctl0_MainContent_PostFlatView"><span>give write permissions to ASPNET for the App_Data directory</span></span>&quot; but with my Windows XP and IIS 5.1 setup, I right-click on the App_Data directory, select &quot;Properties&quot; and I can select general read only/write permissions but there is no means to do so for a particular user. <br><br>If I have missed the method please show me the steps, thanks.<br>Wed, 15 Feb 2006 13:42:41 Z2006-02-15T13:42:41Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#46f5e0f8-36b1-468d-92b8-72053a83072dhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#46f5e0f8-36b1-468d-92b8-72053a83072dJamokayhttp://social.msdn.microsoft.com/Profile/en-US/?user=JamokayDatabase is read-only.<p>Mark, am using the same setup as you are i.e. Windows XP and IIS 5.1, after selecting &quot;properties on the &quot;App_Data&quot; directory, </p> <p>1.  Select the security tab</p> <p>2. CLick on Add... under &quot;Group or User names:&quot; table</p> <p>3. On the next window, select Advanced, another window appears and on this, select or rather click on &quot;find now&quot; and a list of Groups and Users should appear on the bottom table.</p> <p>4.  Click on ASPNET followed by OK, and the same on the next 2 windows.</p> <p>Hope that does the trick for you.</p>Fri, 17 Feb 2006 22:48:21 Z2006-02-17T22:48:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f1a361d3-ae2b-4931-9797-64d86cd26083http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f1a361d3-ae2b-4931-9797-64d86cd26083Manechhttp://social.msdn.microsoft.com/Profile/en-US/?user=ManechDatabase is read-only.<p><font size=2>from the suggestion of the people from </font><a title="http://www.asp.net" href="http://www.asp.net/"><font size=2>www.asp.net</font></a><font size=2> ( </font><a title="http://forums.asp.net/1/904462/ShowPost.aspx#904462" href="http://forums.asp.net/1/904462/ShowPost.aspx#904462"><font size=2>http://forums.asp.net/1/904462/ShowPost.aspx#904462</font></a><font size=2> ) here is what i got now:</font></p><b> <p><font size=2>error after disabling &quot;Write&quot; capability from ACL:<br></font></b><font color="#808000"><font size=2>System.Data.SqlClient.SqlException: Failed to update database &quot;C:\INETPUB\WWWROOT\TECHPAD\APP_DATA\ASPNETDB.MDF&quot; because the database is read-only. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) </font></p></font><b> <p><font size=2>error after <u>ENABLING</u> &quot;Write&quot; capability from ACL:<br></font></b><font color="#808000"><font size=2>System.Data.SqlClient.SqlException: Cannot open user default database. Login failed. Login failed for user 'MANEC\ASPNET'. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)</font></p></font> <p><font size=2>this makes me think its so hard to study VWD and SQLExpress for a newbie like me. when I run the webpages from the built-in webserver of VWD it may work fine but when on IIS it will not work (or vice-versa). so confusing. maybe bcoz im very new to this. </font></p> <p><font size=2>i find it hard to do all of these setups. i wanna learn this though. </font><font size=3><strong>PLS HELP.</strong></font></p>Sat, 18 Feb 2006 14:16:52 Z2006-02-18T14:16:52Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#9f8aff54-9ec7-4f97-b5a4-4dfaf26fe270http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#9f8aff54-9ec7-4f97-b5a4-4dfaf26fe270Manechhttp://social.msdn.microsoft.com/Profile/en-US/?user=ManechDatabase is read-only.<font style="font-family:geneva,arial,sans-serif" size=2>i created another website project in VWD but got the same issue. this is my observation:<br> <br> in SQL Server Management. it really says the database is readonly<br> figure1 --&gt; <span style="color:rgb(255, 0, 255)">http://geocities.com/fbi_file01/fig1.jpg</span><br> <br> you can try to change the read-only status to false but...<br> figure2 --&gt; <span style="color:rgb(255, 0, 255)">http://geocities.com/fbi_file01/fig2.jpg</span><br style="color:rgb(255, 0, 255)"> <br> ..you will only get this error message<br> figure3 --&gt;<span style="color:rgb(255, 0, 255)"> http://geocities.com/fbi_file01/fig3.jpg</span><br> <br> <span style="font-weight:bold">PLS HELP ME</span> to figure this out. </font><font style="font-family:geneva,arial,sans-serif" size=2>i tried all the suggestion here but didnt work. </font>Sun, 19 Feb 2006 03:35:02 Z2006-02-19T03:35:02Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#05690766-3970-4fbb-acdd-657afbd31a31http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#05690766-3970-4fbb-acdd-657afbd31a31Manechhttp://social.msdn.microsoft.com/Profile/en-US/?user=ManechDatabase is read-only.<font size=3><span style="font-family:geneva,arial,sans-serif">i noticed that this problem occurs as soon as i created a manual connection (that uses a sql server authentication and not integrated authentication). right after i tested the manual connection and run the page  that  uses membership class, i will get this problem. i cant understand why these are all happening. </span><br style="font-family:geneva,arial,sans-serif"> <br style="font-family:geneva,arial,sans-serif"> <span style="font-family:geneva,arial,sans-serif;font-weight:bold">pls help. </span></font><font size=3><span style="font-family:geneva,arial,sans-serif">its been a week im thinking abt this.<br> </span></font>Sun, 19 Feb 2006 10:50:44 Z2006-02-19T10:50:44Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#3448909f-063d-437e-be43-1832e6991165http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#3448909f-063d-437e-be43-1832e6991165BostonZZZhttp://social.msdn.microsoft.com/Profile/en-US/?user=BostonZZZDatabase is read-only.<p>Hi,</p> <p>I've had this problem too. I'm running IIS 6.0 on a Windows 2003 Server. I changed the permissions on the directory containing ASPNETDB.MDF to allow the Network Service write permission and ASP.NET write permission. ASPNETDB.MDF also needs the same permissions on it. I think you may have to reboot or restart IIS to see the changes take.</p>Sun, 19 Feb 2006 13:13:06 Z2006-02-19T13:13:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f96bc633-722a-47fb-a971-a05f2cb77f40http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f96bc633-722a-47fb-a971-a05f2cb77f40Manechhttp://social.msdn.microsoft.com/Profile/en-US/?user=ManechDatabase is read-only.<font size=2><span style="font-family:geneva,arial,sans-serif">which folder am i going to change the permission? the folder on the IIS? </span><br style="font-family:geneva,arial,sans-serif"> <br style="font-family:geneva,arial,sans-serif"> <span style="font-family:geneva,arial,sans-serif">from other forum they suggested to disable the app_data folder right before u publish the website on IIS but when u try that, my winXP (sp2) wont allow me. when u uncheck the read-only it goes back when u check it again the properties.<br> <br> ill try ur suggestion.<span style="font-weight:bold"> thanks boston. <img src="images/emoticons/smile_teeth.gif"></span><br> </span></font>Mon, 20 Feb 2006 02:01:07 Z2006-02-20T02:01:07Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#6ead8c4a-8f44-45c5-a98f-c1a75aa1c261http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#6ead8c4a-8f44-45c5-a98f-c1a75aa1c261mt3chhttp://social.msdn.microsoft.com/Profile/en-US/?user=mt3chDatabase is read-only.<div class=quote><table width="85%"><tr><td class="txt4">&nbsp;<strong>Jamokay wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4"> <P>Mark, am using the same setup as you are i.e. Windows XP and IIS 5.1, after selecting "properties on the "App_Data"&nbsp;directory, </P> <P>1.&nbsp; Select the security tab</P> <P>2. CLick on Add... under "Group&nbsp;or User names:" table</P> <P>3. On the next window, select Advanced, another window appears and on this, select&nbsp;or&nbsp;rather click on "find now" and a list of Groups and Users should appear on the bottom table.</P> <P>4.&nbsp; Click on ASPNET followed by OK, and the same on the next 2 windows.</P> <P>Hope that does the trick for you.</P> <P></td></tr></table></td></tr></table></div></P> <P>Thanks, Jamokay</P> <P><SPAN class=inlineLink>The problem I discovered was that it was necessary to uncheck the setting for "Use simple file sharing (recommended)" under the View tab in the Folder Options control panel applet to enable the Security tab to be displayed.</SPAN></P> <P><SPAN class=inlineLink>After following the next steps the problem was resolved.</SPAN><SPAN class=txt2><BR></P></SPAN>Mon, 20 Feb 2006 16:32:43 Z2006-02-20T16:32:43Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#60d3ea56-c3e1-45fe-b787-ba5813121490http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#60d3ea56-c3e1-45fe-b787-ba5813121490mt3chhttp://social.msdn.microsoft.com/Profile/en-US/?user=mt3chDatabase is read-only.<p><span class=inlineLink>Manech, have you tried the solution presented by Jamokay in his post above? It worked for both of us. Here it is again:</span></p> <p><span class=inlineLink><font color="#000000"><div class=quote><table width="85%"><tr><td class=txt4> <strong>Jamokay wrote:</strong></td></tr><tr><td class=quoteTable><table width="100%"><tr><td width="100%" valign=top class=txt4> </font></p> <p>Mark, am using the same setup as you are i.e. Windows XP and IIS 5.1, after selecting &quot;properties on the &quot;App_Data&quot; directory, </p> <p>1.  Select the security tab</p> <p>2. CLick on Add... under &quot;Group or User names:&quot; table</p> <p>3. On the next window, select Advanced, another window appears and on this, select or rather click on &quot;find now&quot; and a list of Groups and Users should appear on the bottom table.</p> <p>4.  Click on ASPNET followed by OK, and the same on the next 2 windows.</p> <p>Hope that does the trick for you.</p> <p></td></tr></table></td></tr></table></div></p> <p>This solution is for IIS 5.1. If you are using IIS 6 you will need to choose the user &quot;Network Service&quot; rather than &quot;ASPNET&quot;.</p> <p>Changing the ACL read only/write settings as you described doesn't solve the problem. The App_Data folder is in your website virtual directory in IIS. </p> <p>If you can't see the Security tab see my reply to Jamokay's post.</p> <p>Don't forget after doing this to restart the IIS Admin service using the Services administrative tool at Control Panel &gt; Administrative Tools &gt; Services.</p> <p> Hope that solves it for you too.</p></span>Mon, 20 Feb 2006 16:48:07 Z2006-02-20T16:48:07Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#1242eca4-8b7d-427b-bef7-f4349de61211http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#1242eca4-8b7d-427b-bef7-f4349de61211Manechhttp://social.msdn.microsoft.com/Profile/en-US/?user=ManechDatabase is read-only.<font size=2><span style="font-family:geneva,arial,sans-serif">i believe i have tried Jamokay's suggestion but let me try one more time. <br> <br style="font-family:geneva,arial,sans-serif"> </span><span style="font-family:geneva,arial,sans-serif">i cant move on with the logic of my project just because of this technicality. this consumed so much of my time. i just wish there's an alternate way of doing all of this. <br> <br> <span style="font-weight:bold">thanks Mark J. </span><br style="font-family:geneva,arial,sans-serif"> </span></font>Tue, 21 Feb 2006 02:58:00 Z2006-02-21T02:58:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#bbd72e2f-dc40-4616-aa1a-2fa7fc69f3e2http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#bbd72e2f-dc40-4616-aa1a-2fa7fc69f3e2thongtaphttp://social.msdn.microsoft.com/Profile/en-US/?user=thongtapDatabase is read-only.<p>Add on to Justin's solution:</p> <p><font size=2>1.) Make sure your virtual directory is running ASP.NET v2.*<br>2.) Give the user ASPNET and <strong>NETWORK SERVICE modify</strong> control over the App_Data directory found within your website.<br>3.) Restart IIS to refresh its permissions.</font><br></p>Mon, 27 Mar 2006 07:54:57 Z2006-03-27T07:54:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f3304be6-0ee3-4d40-8163-902359c7b1e4http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f3304be6-0ee3-4d40-8163-902359c7b1e4Bjorn Sigurd Johansenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bjorn%20Sigurd%20JohansenDatabase is read-only.<p>How do I give the user 'ASPNET' full control over the App_Data directory?</p> <p>Best regards Bjorn Sigurd</p>Sun, 09 Apr 2006 16:23:27 Z2006-04-09T16:23:27Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#819adfdb-fbcf-4aa4-b476-682263ee5b7ehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#819adfdb-fbcf-4aa4-b476-682263ee5b7eDavidJamesAllenhttp://social.msdn.microsoft.com/Profile/en-US/?user=DavidJamesAllenDatabase is read-only.<p>I was having this problem, and wanted to add a few things to how I resolved this.  First off I see a lot of people saying to give &quot;full access&quot; to that folder (App_Data directory) - I found that it only needs modify permissions.  Personally I don't like giving full access to anything so I tried from the bottom up with permissions until one worked - and it worked perfect with modify instead of full.</p> <p>The &quot;account&quot; we ended up giving access to was IISWPG.</p> <p>I was having this problem with both SQL databases and Access Databases (different project, simliar issues) - both were resolved by doing this on the folder where the databse resides.</p> <p>G'luck all.</p> <p>Dave Allen</p> <p> </p>Wed, 31 May 2006 15:27:40 Z2006-05-31T15:27:40Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#993face8-3e38-4b9c-91bb-070ce623841ehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#993face8-3e38-4b9c-91bb-070ce623841eYSIMSNhttp://social.msdn.microsoft.com/Profile/en-US/?user=YSIMSNDatabase is read-only.<p>Add read/write permission to ASPNETUSER to App_Data and it will work.</p>Fri, 21 Jul 2006 16:51:30 Z2006-07-21T16:51:30Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#e3a288ba-742f-49a2-ab4e-0012dbacb806http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#e3a288ba-742f-49a2-ab4e-0012dbacb806Saiful Nizamhttp://social.msdn.microsoft.com/Profile/en-US/?user=Saiful%20NizamDatabase is read-only.<p>Hi,</p><p><br></p><p>I had tested it, the easy way is give ASP.NET Machine Account full control to both .mdf  and .LDF files. Also do the same for App_Data.</p><br><p>Right click to the folder/file and select properties -&gt; Go to security Tab and click Add. Type ASPNET. Then give it full control. I should work now. Good luck</p><br><p>------------</p><p>- saifulnizam<br></p>Wed, 02 Aug 2006 04:15:40 Z2006-08-02T04:15:40Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#e9cdd617-7615-4bf4-bbb8-2f9c51044e5ahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#e9cdd617-7615-4bf4-bbb8-2f9c51044e5aJerome Vernonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jerome%20VernonDatabase is read-only.<p>When an unknown  user browses to an iis application asp file (not asp.net 2.0 ...aspx) and attempts to update an access db (or any other file) the actual user is the 'Everyone' user so Everyone must have r/w capacity. This is not the case when an iis virtural directory is first set up. </p> <p>This can be simulated by creating a dummy application and then loading some of the database sample files that come with iis (iissample) into the dymmy applications virtural directory. You will find that the Authors.mdb will not update (an error occurs) when browsing to the  the AddDelete_VBScript.asp or the Update_VBScript.asp sample asp files.</p> <p>To enable r/w for everyone select the directory (actual virtural directory) and go to properities. The select the security tab. Pick 'Group or user names: 'Everyone' then check the 'Allow full control' checkbox.</p> <p>After setting full control for the 'Group or user name: Everyone' then the database will have write capacity. </p> <p>Hope this helps - Jerome</p>Thu, 14 Sep 2006 17:38:20 Z2006-09-14T17:38:20Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#d3e2110e-1aa5-4f08-b789-b453b90c6941http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#d3e2110e-1aa5-4f08-b789-b453b90c6941Ryan Shripathttp://social.msdn.microsoft.com/Profile/en-US/?user=Ryan%20ShripatDatabase is read-only.<div>This just happened to me - in my case the project was under source control and wasn't checked out, which caused the mdf to be marked as Read-Only.</div> <div> </div> <div>Ryan Shripat</div> <div>Mindbase Consulting</div> <div>www.mindbaseconsulting.com</div>Fri, 15 Sep 2006 13:13:47 Z2006-09-15T13:13:47Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#dcbba219-31ec-461a-802e-a8f1956ad0fehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#dcbba219-31ec-461a-802e-a8f1956ad0feiceb0yshttp://social.msdn.microsoft.com/Profile/en-US/?user=iceb0ysDatabase is read-only.&quot;failed to update database&quot; becuase it is &quot;read only&quot;.<br> i also have the same problem, and i have done with it.<br> microsoft explanation was using &quot;sseutil.exe&quot;, which is not help at all.<br> actually it just a matter of security.<br> try this steps, to solving that message.<br> <br> Step 1:<br> Open My Computer from the desktop, and from the Tools menu select Folder Options. <br> Click on the View tab, and scroll to the end of the Advanced Settings box. <br> Near the bottom, you will find an entry named &quot;Use simple file sharing (recommended)&quot;. <br> Uncheck this box, and click the OK button. <br> Now when you right-click on a file or folder and select Properties, you will see the Security tab.<br> <br> step 2:<br> On a computer running Windows XP Professional, you just need to grant the ASPNET account permissions. <br> Use Windows Explorer to browse to the root folder of your Personal Website. <br> Right click on the folder and choose properties. Then click on the Security Tab. <br> Click the Add button, the Advanced button, and then the Find Now button. <br> Then click on the ASPNET item in the list and click Ok, and Ok again. <br> Then click the Allow Modify checkbox and click Ok.<br> <br> You can follow the same steps for the Network Service account.<br> <br> i hope this can answer everyone problem about this message.<br> <br> Best regards,<br> <br> <span style="font-weight:bold">ice</span><br style="font-weight:bold"> <span style="font-weight:bold">(looking for H1B Visa to work in USA)</span><br> <span style="font-weight:bold">kiong_hari at hotmail dot com</span><br style="font-weight:bold"> <br>Wed, 04 Oct 2006 04:48:07 Z2008-09-25T15:22:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#663f27b3-ffd3-4aeb-b9df-fd29ce301148http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#663f27b3-ffd3-4aeb-b9df-fd29ce301148tcrossmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=tcrossmanDatabase is read-only.I've been wrestling with this issue for a few days now, and have looked all over the 'net trying to find a solution.  I'm using Windows 2000 Server with IIS5.  None of the fixes worked for me, most notably the whole entire SSEUTIL.EXE stuff.  <br><br>Here's what works for me, and it's one simple thing:<br><br>At the time of placing the .MDF files into the App_Data folder (whether manually or through VS's &quot;copy website&quot; tool) the app_data folder MUST have both ASPNET and IWAM_ read/write privileges.  The IWAM_ account can be removed from the folder after the database files are copied.  Without IWAM_ when the files are first placed into the folder I get the read-only issue every time.<br><br>If you forget to place IWAM_ privileges onto the folder ahead of time and the &quot;read-only&quot; issue rears its head, this is how I resolve it:<br><br>1.  Stop the SQL Server instance using SQL Server Management Express (right-click the server and click Stop).<br><br>2.  Use the task list to kill the &quot;sqlserv.exe&quot; process, since it remains running and prevents the database files from being deleted and/or updated.<br><br>3.  Right-click the App_Data folder in question, select Security, and add the IWAM_ account with write/modify privileges.<br><br>4.  Place the .MDF/LDF files into the app_data folder either manually or by using VS to copy or publish the files.<br><br>5.  Re-start the SQL Server instance using SQL Server Management Express (right-click the server and click Start)<br><br>I hope this works for others, as I myself was becoming sufficiently frustrated to the point of *almost* giving up on SQL Express.<br><br>t. crossman<br>Fri, 06 Oct 2006 01:59:35 Z2006-10-06T01:59:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#62bf36a7-b5f7-441c-8833-baf5fd5fa8a4http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#62bf36a7-b5f7-441c-8833-baf5fd5fa8a4captainsinahttp://social.msdn.microsoft.com/Profile/en-US/?user=captainsinaDatabase is read-only.<p>Thats cool,</p> <p>But does anyone know how we can set appropriate permissions thorough installation process? I need to install my site on many servers, so I am using a visual studio web setup project and it authomatically copies my database files too which is good. But then when i wanna update something i receive databas read only error. Is there a way that installer set the permissions authomatically?</p> <p>Cheers</p>Tue, 10 Oct 2006 15:01:42 Z2006-10-10T15:01:42Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#64a6f2f6-b9b1-43e0-91f2-b2b7b13db38ehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#64a6f2f6-b9b1-43e0-91f2-b2b7b13db38ezachninmehttp://social.msdn.microsoft.com/Profile/en-US/?user=zachninmeDatabase is read-only.I'm having a similar problem.<br>I am running WinXP x64 edition, and using IIS 6.0<br>I use the Visual Web Developer 2005 Express Edition to develop my sites.<br>For some curious reason however, whenever I run my site using the program, it works fine!<br><br>I've done everything mentioned here, and nothing works!<br>Fri, 22 Dec 2006 21:17:41 Z2006-12-22T21:17:41Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#200c270c-9c06-48fb-9c37-cdf03f3164c5http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#200c270c-9c06-48fb-9c37-cdf03f3164c5GM-Joehttp://social.msdn.microsoft.com/Profile/en-US/?user=GM-JoeDatabase is read-only.<P>Yep, this works, thanks <SPAN class=inlineLink onclick="window.open('/MSDN/User/Profile.aspx?UserID=312430&amp;SiteID=1', target='_self')"><STRONG>iceb0ys</STRONG></SPAN>!!!</P> <P>Microsoft waste another afternoon of mine, thanks Bill.</P>Thu, 11 Jan 2007 12:26:10 Z2007-01-11T12:26:10Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#e703e9bc-1f98-439d-a2c4-7fb4a4194614http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#e703e9bc-1f98-439d-a2c4-7fb4a4194614meetprashanthttp://social.msdn.microsoft.com/Profile/en-US/?user=meetprashantDatabase is read-only.<p>I resolved this problem by adding Network service in the user.</p> <p>Right click on your folder or .MDF file, click properties, click Security and add NETWORK SERVICE. Give right and modify rights. This resolved problem for me.</p>Wed, 31 Jan 2007 18:58:06 Z2007-01-31T18:58:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#9c97f88c-710f-4b10-a8b1-7a21c2ba7670http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#9c97f88c-710f-4b10-a8b1-7a21c2ba7670MicroCraftershttp://social.msdn.microsoft.com/Profile/en-US/?user=MicroCraftersDatabase is read-only.<p>Hello,</p> <p>I hope you got this problem fixed by now but just incase you haven't here's the solution.</p> <p>-goto [C:\Inetpub\wwwroot\] using windows explorer</p> <p>-right-click on [wwwroot] folder</p> <p>-select properties then click the [security] tab at the top</p> <p>-click the [ADD] button then the [Advanced] button then the [Find Now] button on the right</p> <p>-highlight the ASPNET user and click the [OK] button</p> <p>-click the [advanced] button again then the [Find Now] button again</p> <p>-this time highlight the Network Service user and click [OK]</p> <p>-click [ok] in the [select users and groups window]</p> <p>-now that you are back in the [Security tab] highlight ASP.NET Machine Account (username/ASPNET) and put a check in the write box under the allow column</p> <p>-now highlight  NETWORK SERVICE and put a check in the write box under the allow column</p> <p>-click [ok]</p> <p>-try your site.</p> <p>I hope this helps. </p> <p>MicroCrafters.tripod.com</p>Fri, 16 Feb 2007 00:30:32 Z2007-02-16T00:30:32Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#c56020e4-7066-43e0-a060-2c6fec010f45http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#c56020e4-7066-43e0-a060-2c6fec010f45GWScheppinkhttp://social.msdn.microsoft.com/Profile/en-US/?user=GWScheppinkDatabase is read-only.<p>Adding the NETWORK Service did the trick</p> <p> </p> <p>Thanks!</p> <p> </p>Sat, 03 Mar 2007 00:20:08 Z2007-03-03T00:20:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#567c57e8-1461-4c8c-b810-10d214827e8bhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#567c57e8-1461-4c8c-b810-10d214827e8bWdhayes.57http://social.msdn.microsoft.com/Profile/en-US/?user=Wdhayes.57Database is read-only.Thanks from me too, iceb0ys.  Wish I had an H1B to give you.  This works great on XP Pro.<br><br>  Step 1 is the key step that makes Step 2 possible.  The only thing I would add is that the &quot;ASPNET account&quot; shows up as &quot;Internet Guest Account&quot; on my system, and I only applied Modify permissions to the App_Data folder that actually contained the mdfs, etc.  That seemed to be enough, and maybe a little safer.<br><br>&quot;<span><span id="_ctl0_MainContent__ctl0_PostForm_ReplyBody" class=txt4> Step 1:<br> Open My Computer from the desktop, and from the Tools menu select Folder Options. <br> Click on the View tab, and scroll to the end of the Advanced Settings box. <br> Near the bottom, you will find an entry named &quot;Use simple file sharing (recommended)&quot;. <br> Uncheck this box, and click the OK button. <br> Now when you right-click on a file or folder and select Properties, you will see the Security tab.<br> <br> step 2:<br> On a computer running Windows XP Professional, you just need to grant the ASPNET account permissions. <br> Use Windows Explorer to browse to the root folder of your Personal Website. <br> Right click on the folder and choose properties. Then click on the Security Tab. <br> Click the Add button, the Advanced button, and then the Find Now button. Then click on the ASPNET item in the list and click Ok, and Ok again. <br> Then click the Allow Modify checkbox and click Ok.</span></span>&quot;<br>Mon, 05 Mar 2007 01:28:54 Z2007-03-05T01:28:54Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#16c39ec8-accc-4ca0-ab56-9f64ca3334e2http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#16c39ec8-accc-4ca0-ab56-9f64ca3334e2Ben Shttp://social.msdn.microsoft.com/Profile/en-US/?user=Ben%20SDatabase is read-only.I simply gave the ASPNET account full control of the root folder of my website (which isn't in c:\inetpub\wwwroot).Tue, 20 Mar 2007 09:07:21 Z2007-03-20T09:07:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#7a91a9bb-2385-4e04-a811-049c8bf01d48http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#7a91a9bb-2385-4e04-a811-049c8bf01d48kennyprhttp://social.msdn.microsoft.com/Profile/en-US/?user=kennyprDatabase is read-only.<p>A small question: Can you detail the steps invloved in giving the user ASPNET full control please</p> <p>Really need help with this. Thanks</p>Wed, 25 Apr 2007 20:26:01 Z2007-04-25T20:26:01Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#cdf15d03-5326-4eef-b23c-76799a186936http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#cdf15d03-5326-4eef-b23c-76799a186936Cervan01http://social.msdn.microsoft.com/Profile/en-US/?user=Cervan01Database is read-only.<p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style=""><font face="Times New Roman">Hello. I have the same issue but I am new on this and I don’t understand it properly. Could you explain more detailed what did you made to solve the issue? I mean Did you change the properties just on “App-Data” folder? Or directly on <span style=""> </span>“ASPNETDB.MDF file, it was using the file explorer or IIS. I made changes on both and is working on my local server and also all the machines in the local net. But I install it on a production server out of m</font></span><span lang=EN-US style=""><font face="Times New Roman">y office. But still no working. Of course, I don’t have access to the outside server. Do you have any additional suggestion?.</font></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style=""><font face="Times New Roman"></font></span> </p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style=""><font face="Times New Roman"><span> </p> <h1>Server Error in '/' Application. <hr width="100%" color=silver size=1> </h1> <h2><i>Runtime Error</i> </h2> <p class=MsoNormal style="margin:0cm 0cm 0pt"></span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. <br><br><b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br><br> <table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td><code><pre>&lt;!-- Web.Config Configuration File --&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;customErrors mode=&quot;Off&quot;/&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre></code></td></tr></tbody></table><br><b><font face=Verdana>Notes:</font></b> The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; attribute of the application's &lt;customErrors&gt; configuration tag to point to a custom error page URL.<br><br> <table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td><code><pre>&lt;!-- Web.Config Configuration File --&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre></code></td></tr></tbody></table></font></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style=""><font face="Times New Roman">Same error appeared on me local network. before appeared the below but no more. just still appearing the first error on the external server and I think is related to the same issue  </font></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style=""><font face="Times New Roman"></font></span> </p><span lang=EN-US style=""> <h1><font face=Verdana color=red size=5><span style="font-size:18pt">Error de servidor en la aplicación '/'. </span></font></h1> <h1 style="text-align:center" align=center><font face=Verdana color=red size=5><span style="font-size:18pt"> <hr align=center width="100%" color=silver noshade size=1> </span></font></h1> <h2><i><font face=Verdana color=maroon size=4><span lang=EN-US style="font-size:14pt;font-style:italic">Failed to update database &quot;F:\VIRTUAL WEB\APP_DATA\ASPNETDB.MDF&quot; because the database is read-only.</span></font></i><span lang=EN-US> </span></h2> <p class=MsoNormal style="margin-bottom:12pt"><b><font face=Verdana color=black size=1><span style="font-weight:bold;font-size:8.5pt;color:black;font-family:Verdana">Descripción: </span></font></b><font face=Arial color=black size=1><span style="font-size:8.5pt;color:black;font-family:Arial">Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código. <br><br></span></font><b><font face=Verdana color=black size=1><span lang=EN-US style="font-weight:bold;font-size:8.5pt;color:black;font-family:Verdana">Detalles de la excepción: </span></font></b><font face=Arial color=black size=1><span lang=EN-US style="font-size:8.5pt;color:black;font-family:Arial">System.Data.SqlClient.SqlException: Failed to update database &quot;F:\VIRTUAL WEB\APP_DATA\ASPNETDB.MDF&quot; because the database is read-only.<br><br></span></font><b><font face=Verdana color=black size=1><span style="font-weight:bold;font-size:8.5pt;color:black;font-family:Verdana">Error de código fuente:</span></font></b><font face=Arial color=black size=1><span style="font-size:8.5pt;color:black;font-family:Arial"> </span></font></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"> <table class=MsoNormalTable style="background:#ffffcc;width:100%" cellpadding=0 width="100%" bgcolor="#ffffcc" border=0> <tbody> <tr> <td style="padding-right:0.75pt;padding-left:0.75pt;padding-bottom:0.75pt;padding-top:0.75pt"> <p class=MsoNormal><code><font face="Courier New" color=black size=2><span style="font-size:10pt;color:black">Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.</span></font></code><font face=Verdana color=black size=1><span style="font-size:8.5pt;color:black;font-family:Verdana"> </span></font></p></td></tr></tbody></table></p> <p class=MsoNormal style="margin-bottom:12pt"><font face=Arial color=black size=1><span style="font-size:8.5pt;color:black;font-family:Arial"><br></span></font><b><font face=Verdana color=black size=1><span style="font-weight:bold;font-size:8.5pt;color:black;font-family:Verdana">Seguimiento de la pila:</span></font></b><font face=Arial color=black size=1><span style="font-size:8.5pt;color:black;font-family:Arial"> </span></font></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"> <table class=MsoNormalTable style="background:#ffffcc;width:100%" cellpadding=0 width="100%" bgcolor="#ffffcc" border=0> <tbody> <tr> <td style="padding-right:0.75pt;padding-left:0.75pt;padding-bottom:0.75pt;padding-top:0.75pt"><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black"> </span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">[SqlException (0x80131904): Failed to update database &quot;F:\VIRTUAL WEB\APP_DATA\ASPNETDB.MDF&quot; because the database is read-only.]</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857530</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735142</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +149</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +415</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus&amp; status) +3612</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +305</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33</span></font></pre><pre><font face="Lucida Console" color=black size=1><span lang=EN-US style="font-size:9pt;color:black">   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102</span></font></pre></td></tr></tbody></table></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style=""><font face="Times New Roman"></font></span> </p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style=""><font face="Times New Roman"></font></span> </p></font></span> <p><span lang=EN-US style="font-size:12pt;font-family:'Times New Roman'">Thanks in advance and best regards</span></p> <p><span lang=EN-US style="font-size:12pt;font-family:'Times New Roman'"></span> </p> <p><span lang=EN-US style="font-size:12pt;font-family:'Times New Roman'"></span> </p>Wed, 30 May 2007 05:16:20 Z2007-05-30T05:16:20Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#43ccfd40-248f-4b46-8e13-321ec77012eahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#43ccfd40-248f-4b46-8e13-321ec77012eaEdin.Shttp://social.msdn.microsoft.com/Profile/en-US/?user=Edin.SDatabase is read-only.Turn Off the Firewall.<br>Tue, 05 Jun 2007 12:01:42 Z2007-06-05T12:01:42Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#83a1b390-6b29-4db0-85d4-2334c6f2576fhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#83a1b390-6b29-4db0-85d4-2334c6f2576fScottGuerrierihttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottGuerrieriDatabase is read-only.Your answer to this was quite helpful.  My process was similar but I didn't have to detach the DB or delete the site.  Following some of the other posts concerning this issue, I changed the security of wwwroot to allow ASPNET user full control and added the ASPNET user to my application directory under the wwwroot.  Then I restarted IIS and everything worked.  I'm using XP SP2, IIS 5.1, SQLExpress 2005, and VWD 2005.  Hope this helps someone else as well.<br>Thu, 19 Jul 2007 16:57:05 Z2007-07-19T16:57:05Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#621bc6e7-9750-4e40-a389-b2183220a20chttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#621bc6e7-9750-4e40-a389-b2183220a20ckoolacidhttp://social.msdn.microsoft.com/Profile/en-US/?user=koolacidDatabase is read-only.<p align=left><font face=Arial size=2>I had been fighting this problem for ages, this worked perfectly.</font></p> <p align=left> </p> <p align=left>I now face the default setting do not allow remote connections error but i think i can manage to change that.</p> <p align=left> </p> <p align=left>The ASP.NET read only erro on publishing a sql database seems a common problem, with this being one of the only correct answers i have found</p> <p align=left> </p> <p align=left>Thank you.</p>Wed, 05 Dec 2007 05:04:30 Z2007-12-05T05:04:30Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#305dba19-ff7e-4971-84bd-d594f5711d0bhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#305dba19-ff7e-4971-84bd-d594f5711d0bbrpagehttp://social.msdn.microsoft.com/Profile/en-US/?user=brpageDatabase is read-only.<p align=left><font face=Arial size=2>This worked 1st time,</font></p> <p align=left>Im learning expression web and the db was an assignment</p> <p align=left>the beginning expression web book has problems,</p> <p align=left>I think i will take an sql class next.</p> <p align=left>thanks</p> <p align=left>brp</p>Sun, 09 Dec 2007 23:57:44 Z2007-12-09T23:57:44Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#a36b1257-b82b-4c34-a056-5ff6ad15350ahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#a36b1257-b82b-4c34-a056-5ff6ad15350aAli-Babahttp://social.msdn.microsoft.com/Profile/en-US/?user=Ali-BabaDatabase is read-only.<p align=left><font face=Arial size=2>I got the same error but because I detached the DB then overwritten the data files with new files.  The solution is to give the users below full right on the datafile and log file</font></p> <p align=left><font face=Arial size=2></font> </p> <p align=left><font face=Arial size=2> NETWORK SERVICE  </font></p> <p align=left><font face=Arial size=2>SQLServer2005MSSQLUser$&lt;server name&gt;$&lt;instance name&gt;</font><font face=Arial size=2></p></font>Mon, 14 Jan 2008 10:11:52 Z2008-01-14T10:11:52Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#c1e50c45-38b2-474f-859e-0eee0156e81chttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#c1e50c45-38b2-474f-859e-0eee0156e81cGerixJRhttp://social.msdn.microsoft.com/Profile/en-US/?user=GerixJRDatabase is read-only.It's permission problem !!! Add asp.net user( ASPNETDB.MDF-&gt;Properties&gt;Security-&gt;Add.... and add ASP.NET user client)<br>Thu, 17 Jan 2008 15:19:37 Z2008-01-17T15:19:37Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#3f18aa61-5b44-4cd1-96d5-c12e18ba8a97http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#3f18aa61-5b44-4cd1-96d5-c12e18ba8a97marequihttp://social.msdn.microsoft.com/Profile/en-US/?user=marequiDatabase is read-only.<p align=left><font face=Arial size=2>thank you so much.  I followed your 3 steps and it worked. <img src="http://forums.microsoft.com/MSDN/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMOEKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxFCLVvZNcnIJT9x2uZNvyuIGWah9F3g0vyQYx7NayjHus1&amp;t=633337194230757564"></font></p>Fri, 04 Jul 2008 18:01:59 Z2008-07-04T18:01:59Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#8cfbabf7-bfbb-4026-8231-d822e56eda62http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#8cfbabf7-bfbb-4026-8231-d822e56eda62cesiushttp://social.msdn.microsoft.com/Profile/en-US/?user=cesiusDatabase is read-only.<font size=2><span style="font-family:Arial">Hello, I'm lost.<br><br>I'm using Windows Vista with Visual Studio 2008 and I haven't got the user ASPNET.<br><br>How can I do it?<br><br>Thanks<br></span></font>Tue, 14 Oct 2008 08:43:50 Z2008-10-14T08:43:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f70fef13-9c7a-43a8-b783-37460a649f8ahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a#f70fef13-9c7a-43a8-b783-37460a649f8aJamokayhttp://social.msdn.microsoft.com/Profile/en-US/?user=JamokayDatabase is read-only.<p align=left><font face=Arial size=2>Hi Cecius,</font></p>Guve Network Service permissions to your webfolder, that should work.Mon, 08 Dec 2008 13:22:26 Z2008-12-08T13:22:26Z