The problem is this ... I run the open page directly in VS2008, I can connect to the database ... But by entering the address, you can also open the Web page, but the problem is related to the database ...
Unable to open the requested database "Takeclass" for login. Login failed.
User ' 2d2727e2578f446\aspnet ' login failed.
Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.
Exception Details: System.Data.SqlClient.SqlException: Unable to open the requested database "Takeclass" for the login. Login failed.
User ' 2d2727e2578f446\aspnet ' login failed.
have also encountered this problem before, search after the following method is resolved.
1. Open the Database Enterprise Manager, and then select the database---security---find just the error of which ' xxx\aspnet '--Right Key "property";
2. Select the user mapping option---to select the database in which we want to access
3. Make sure---then select which database we have just chosen, and select "db_owner" permission in the following "Database role membership"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.