locked
I'm new hand to ASP.NET with C# and entity framework,I have a problem :( RRS feed

  • Question

  • when i create new project with C# Web application, the wizard create a sample project, the APP_DATA is empty.when register new ID in this application ,it create database files XXX.mdf and ldf.

    but it's my fault,i delete the database files ,when i run this application again in my IIS,it's print error message means can not create/attach the database files XXX.mdf and XXX.ldf .

    so how can i do it ,let it create database files again?

    i have no way to do it .

    thanks very much.

    • Moved by Caillen Thursday, April 2, 2015 3:17 AM
    Wednesday, April 1, 2015 5:00 AM

Answers

  • this is a c# section, you can post in forums.asp.net

    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

    • Proposed as answer by Caillen Thursday, April 2, 2015 3:17 AM
    • Marked as answer by Just Karl Wednesday, April 8, 2015 9:37 PM
    Wednesday, April 1, 2015 9:09 AM
  • Please post your question in ASP.net forum for a better assistance:

    http://forums.asp.net/


    Fouad Roumieh


    • Edited by Fouad Roumieh Wednesday, April 1, 2015 5:40 AM
    • Proposed as answer by Caillen Thursday, April 2, 2015 3:17 AM
    • Marked as answer by Just Karl Wednesday, April 8, 2015 9:37 PM
    Wednesday, April 1, 2015 5:40 AM

All replies

  • Please post your question in ASP.net forum for a better assistance:

    http://forums.asp.net/


    Fouad Roumieh


    • Edited by Fouad Roumieh Wednesday, April 1, 2015 5:40 AM
    • Proposed as answer by Caillen Thursday, April 2, 2015 3:17 AM
    • Marked as answer by Just Karl Wednesday, April 8, 2015 9:37 PM
    Wednesday, April 1, 2015 5:40 AM
  • this is a c# section, you can post in forums.asp.net

    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

    • Proposed as answer by Caillen Thursday, April 2, 2015 3:17 AM
    • Marked as answer by Just Karl Wednesday, April 8, 2015 9:37 PM
    Wednesday, April 1, 2015 9:09 AM