Click here to Skip to main content
15,917,176 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: hi Pin
Tarik Guney24-Jun-07 7:32
Tarik Guney24-Jun-07 7:32 
GeneralASP Starter Kits - Personal - Adding Page Comments... Pin
code-frog23-Jun-07 4:52
professionalcode-frog23-Jun-07 4:52 
GeneralRe: ASP Starter Kits - Personal - Adding Page Comments... Pin
Christian Graus23-Jun-07 13:34
protectorChristian Graus23-Jun-07 13:34 
GeneralRe: ASP Starter Kits - Personal - Adding Page Comments... Pin
WillemM23-Jun-07 23:26
WillemM23-Jun-07 23:26 
Questionproblem in javascript in mozila browser Pin
Imran Khan Pathan23-Jun-07 4:24
Imran Khan Pathan23-Jun-07 4:24 
AnswerRe: problem in javascript in mozila browser Pin
Vipin.d23-Jun-07 4:32
Vipin.d23-Jun-07 4:32 
AnswerRe: problem in javascript in mozila browser Pin
Fred_Smith23-Jun-07 4:38
Fred_Smith23-Jun-07 4:38 
Questionasp.net 2.0 project (Failed to update database ) Pin
sync_austin23-Jun-07 2:06
sync_austin23-Jun-07 2:06 
I have been developing an ASP.net 2.0 web application that basically has login security. I have been struggling to get this thing to work. On my local machine it works fine, but when I copy the code (including the ASPNETDB.mdf that is in the APP_Data directory) over to a web server, I get to the login screen but when I attempt to login I get an error. Can someone please help me??? The error is listed below:


“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only.
Description: 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:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only.

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.

Stack Trace:


[SqlException (0x80131904): Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857434
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735046
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +149
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +415
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135
System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +3612
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +305
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.210
AnswerRe: asp.net 2.0 project (Failed to update database ) Pin
Peter Mead23-Jun-07 2:46
Peter Mead23-Jun-07 2:46 
GeneralRe: asp.net 2.0 project (Failed to update database ) Pin
sync_austin23-Jun-07 3:05
sync_austin23-Jun-07 3:05 
GeneralRe: asp.net 2.0 project (Failed to update database ) Pin
Peter Mead23-Jun-07 3:36
Peter Mead23-Jun-07 3:36 
GeneralRe: asp.net 2.0 project (Failed to update database ) Pin
sync_austin24-Jun-07 0:21
sync_austin24-Jun-07 0:21 
QuestionError in Deleting File... FileInfo Pin
dhulipudi23-Jun-07 1:55
dhulipudi23-Jun-07 1:55 
AnswerRe: Error in Deleting File... FileInfo Pin
Fred_Smith23-Jun-07 4:42
Fred_Smith23-Jun-07 4:42 
QuestionHow to avoid the Excel prompt window when exporting data to Excel 2007 [modified] Pin
Mohamed Arif23-Jun-07 1:50
Mohamed Arif23-Jun-07 1:50 
AnswerRe: How to avoid the Excel prompt window when exporting data to Excel 2007 Pin
sidbaruah25-Jun-07 0:57
sidbaruah25-Jun-07 0:57 
Questionfetching records from excel on the basis of date given by user. Pin
MissionSuccess23-Jun-07 1:35
MissionSuccess23-Jun-07 1:35 
Questionsimple,short question Pin
Amr M. K.23-Jun-07 0:42
Amr M. K.23-Jun-07 0:42 
AnswerRe: simple,short question Pin
kubben23-Jun-07 1:40
kubben23-Jun-07 1:40 
AnswerRe: simple,short question Pin
badgrs23-Jun-07 12:25
badgrs23-Jun-07 12:25 
AnswerRe: simple,short question Pin
Christian Graus23-Jun-07 13:37
protectorChristian Graus23-Jun-07 13:37 
Questionmulti usercontrol! Pin
synbad23-Jun-07 0:29
synbad23-Jun-07 0:29 
AnswerRe: multi usercontrol! Pin
honeyss29-Jun-07 3:08
honeyss29-Jun-07 3:08 
QuestionDynamic controles Pin
hadad22-Jun-07 23:06
hadad22-Jun-07 23:06 
AnswerRe: Dynamic controles Pin
Abolfazl Sheikhloo22-Jun-07 23:38
Abolfazl Sheikhloo22-Jun-07 23:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.