ตอนนี้ผมใช้ Visual Studio 2008 อยู่ครับ อยากทราบว่าต้องลง plugin อะไรเพิ่มอีกหรือเปล่าครับ
Error ที่พบ copy จาก VS2008 มาครับ
System.TypeInitializationException was unhandled by user code
Message="The type initializer for 'MIS_PHARE_BACKEND.Component.Resource.NHibernateSessionInstance' threw an exception."
Source="MIS_PHARE_BACKEND"
TypeName="MIS_PHARE_BACKEND.Component.Resource.NHibernateSessionInstance"
StackTrace:
at MIS_PHARE_BACKEND.Component.Resource.NHibernateSessionInstance.get_Instance()
at MIS_PHARE_BACKEND.Component.BusinessAccess.UMS.Implemented.UserBAImpl.OpenSession() in D:\MIS_PHARE\MIS_PHARE\Component\BusinessAccess\UMS\Implemented\UserBAImpl.cs:line 22
at MIS_PHARE_BACKEND.Component.BusinessAccess.UMS.Implemented.UserBAImpl.FindUserByPrimaryKey(String USERNAME) in D:\MIS_PHARE\MIS_PHARE\Component\BusinessAccess\UMS\Implemented\UserBAImpl.cs:line 98
at MIS_PHARE_UI.login.btnLogin_Click(Object sender, EventArgs e) in D:\MIS_PHARE\MIS_PHARE_WEB\Login.aspx.cs:line 47
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.Data.SqlClient.SqlException
Message="Cannot open database \"MIS_PHARE_DB\" requested by the login. The login failed.\r\nLogin failed for user 'sa'."
Source=".Net SqlClient Data Provider"
ErrorCode=-2146232060
Class=11
LineNumber=65536
Number=4060
Procedure=""
Server="SYMASTER03-PC\\SQLEXPRESS"
State=1
StackTrace:
at MIS_PHARE_BACKEND.Component.Resource.NHibernateSessionFactory..ctor() in D:\MIS_PHARE\MIS_PHARE\Component\Resource\NHibernateSessionFactory.cs:line 31
at MIS_PHARE_BACKEND.Component.Resource.NHibernateSessionInstance..cctor() in D:\MIS_PHARE\MIS_PHARE\Component\Resource\NHibernateSessionInstance.cs:line 10
InnerException:
Tag : .NET, Ms SQL Server 2008, Web (ASP.NET), C#, VS 2008 (.NET 3.x)