Cannot open database asp.net

Posted by Faiyaz, 09-22-2008, 03:02 PM
Cannot open database "DATABASENAME" requested by the login. The login failed. Login failed for user 'SERVERNAME\IWAM_plesk(default)'. 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 "DATABASENAME" requested by the login. The login failed. Login failed for user SERVERNAME\IWAM_plesk(default)'. 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): Cannot open database "DATABASENAME" requested by the login. The login failed.Login failed for user SERVERNAME\IWAM_plesk(default)'.] _Default.FindDuplicateUserName(String UName) +154 _Default.btnOk_Click(Object sender, EventArgs e) +31 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

Posted by Faiyaz, 09-22-2008, 03:05 PM
Sorry, I just forgot to describe the problem. I have a plesk ( Parallels ) server, I am able to connect to database locally from plesk but when I try to connect using connection string on my site I am getting above given error. I already added user IWAM_plesk to " SQLEXPRESS " mssql server. Is this permission issue or whatever please help

هل استفدت من هذا الجواب؟

 أطبع هذا المقال

اقرأ أيضا

CNAME or A record in DNS Zone?

Posted by olddocks, 01-14-2008, 08:14 AMi have just created a dns ZONE for my domain, but i dont...

Newbie setting up LAMP (Fedora 7)

Posted by r557, 09-16-2007, 02:54 PMLooking for some good information that would help me get my...

Any PHP library to create .ico? Or just to convert a PNG to ICO?

Posted by yangyang2036, 09-21-2008, 09:17 PMSearched google with nothing relevant. Posted by...

changing register_globals from .htaccess will cause 500 Error when php run as CGI

Posted by mshannaq, 05-07-2007, 01:44 PMHello, Today I have a customer want to swich the...

FTP Question - Limiting types of Access

Posted by webtender, 03-29-2008, 11:17 PMHello, Is it possible to setup ftp accounts that have...