Last post Aug 22, 2009 02:39 PM by vnaveenv
Jul 06, 2005 01:28 AM|ryan369|LINK
After i've finished the website using VWD 2005 Express Edition, i copied the entired folder include .cs file and then browse it in IIS. But during browsing error occured when i try to access the login....
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Failed to update database "C:\NEW FOLDER\APP_DATA\ASPNETDB.MDF" because the database is read-only.
Did I miss configure something... or is cause by other reason.... some one pls help me 4this
Beside that, I heard from my friend that it is able to deploy website with dll and without the .cs file. But I cant found any dll file in my website folder. Can anyone please teach me how to generate those dll files.
Jul 06, 2005 08:09 AM|DarrellNorton|LINK
Jul 06, 2005 10:07 AM|ryan369|LINK
first i wanna thanks for your helping but.... can i know what is sseutil.exe and where can i found it.... sorry for asking that coz i'm new in asp.net
beside that can you please teach me what is the best method i can used for deploying a website in VWD 2005 express edition..... coz some information that i found on web can be apply on VWD 2005 express edition....
Jul 06, 2005 02:37 PM|khaled_akm|LINK
Jul 07, 2005 03:30 AM|ryan369|LINK
Jul 07, 2005 12:29 PM|khaled_akm|LINK
1. Delete the MDF/LDF files from the App_Data directory of the website under inetpub\wwwroot.
2. Download and install the SSEUTIL command line tool from:
3. Using sseutil, issue a command that looks something like: sseutil -child "NT AUTHORITY\NETWORK SERVICE" -detach D:\ . You will need to change the account name and the detach path to match your machine settings. If on IIS5/5.1,
then ASPNET will be the correct user account. Also, you can determine the detach path pretty easily by issuing sseutil -list to see where the problematic MDFs are currently attached. The "D:\" in the sample command line is just the first few characters that
sseutil uses to auto-detach all databases that begin with "D:\". Change the path as neeeded for your machine.
4. Set the ACLs on App_Data directory under inetpub\wwwroot to grant R/W to the appropriate process account - NETWORK SERVICE on
Windows Server 2003 or ASPNET on IIS5/5.1 (Windows XP).
5. Re-copy the MDF/LDF files from the directory where the file-based website exists back into App_Data under inetpub\wwwroot. After the copy occurs, check that the MDF/LDF files have now inherited the new ACLs.
6. Re-run the application (ignore any connection errors that might occur - just hit refresh in the browser).
This steps are very easy to follow. Which step is not working for you ?
Jul 07, 2005 09:53 PM|ryan369|LINK
Dec 07, 2005 03:17 PM|Forestmax|LINK
I do need your help, many thanks. I downloaded SSEUtil,exe, but failed to load the command prompt. The error message I got is : SSEUtil.exe - Net Framework initializtion error. Unable to find the version of runtime to run the application. Any thoughts about
Aug 22, 2009 02:39 PM|vnaveenv|LINK
Just wanted to let you know that there is an alternative to using SSEUtil.exe, you can just go the services.msc (in run command) and stop the SQLEXPRESS service, remove the files, grant the access, put the files back and start the service.
It worked for me.