Chapter 26 + Chapter 27
Hello,
In chapters 26 and 27 from this book, there's a complete asp.net application, with login page, user DataBase manipulation, web.config files, ...
In Visual Studio 2005 it all works fine: the pages load and when we try to reach a forbidden folder, the server sends the login.aspx page and we have to put the user name and password, if these are right then we can go on, ...
But there's a time when we must go to the real world.
And this is my problem: when i publish the site (with 'Build', 'Publish Web Site') at first all seem ok: all the files were copied, and when i call the site with 'http://localhost' there comes my 'default.aspx' page. When i follow the link to 'Themes' there comes the 'login.aspx' page. It all seems good.
But when i enter the user name i created with respective password i receive the following error: 'Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only.'.
I'm using Windows Vista Business. There's something i did wrong?
Thank you,
Joaquim
|