Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
after uploading when i try to browse my website I get this error

Server Error in '/lolo2013' Application.
Cannot open database "lolo2013_db1.mdf" requested by the login. The login failed.
Login failed for user 'DOTNETSPIDER1\lolo2013'.
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: Cannot open database "lolo2013_db1.mdf" requested by the login. The login failed.
Login failed for user 'DOTNETSPIDER1\lolo2013'.

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.

how can I solve it?
Posted
Updated 24-Mar-14 11:51am
v2
Comments
[no name] 24-Mar-14 17:52pm    
The error message is perfectly clear. So, what is your question?
Christian Amado 24-Mar-14 17:55pm    
Agree.
Dena2013 24-Mar-14 18:00pm    
I am bigenner, so I don't know how to solve it !!!
I didn't use any passwords with database.

Hi, your user/password are wrong or you haven't got permissions there. Error is very clear here.

EDIT: See this[^] forum thread.

Regards
 
Share this answer
 
v2
Comments
Dena2013 24-Mar-14 18:02pm    
I didn't use password when I create the database. How can I give permission to the user?
Christian Amado 24-Mar-14 18:14pm    
Hope my edit in answer helps you.
I found the solution
Initial Catalog requires the name of a database without extension .mdf
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 30-May-14 21:53pm    
How can you possibly post is as "solution"? This is a fake solution. This is considered as abuse. Please use comments or "Improve question" instead.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900