ERROR when creating User on an ASP.NET MVC2 Project on a server
I have uploaded the ASP.NET MVC2 created from MS Template to Remote server. It works except when I want to register a new user; after validation I got this error message:
Sorry, an e开发者_JAVA百科rror occurred while processing your request.
What should I do ?
I would suspect that the database location is not writeable but as Remus said to know for sure you'll need to get the error/exception back from the server somehow.
You need to allow write access to the ~/App_Data
directory to the account your application is configured to run under IIS. When you try to register a user for the first time the application need to create the .mdb
database file. Also if you are not using SQL Express and have a SQL Server installed don't forget to modify the connection string in your web.config to match the properties of your real server.
精彩评论