[SqlException (0x80131904): 无法打开登录所请求的数据库 "Haotour"。登录失败。
用户 'ptotour' 登录失败。]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +686
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +85
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +270
System.Data.SqlClient.SqlConnection.Open() +299
dtn_net.Database2.ExecuteReader(String sql, SqlParameter[] Param) in E:\我的文档\Visual Studio 2005\WebSites\DEMO\ptotour\web\classes\Tootour\Database2.cs:62
dtn_net.templet.ShowNews.Page_Load(Object sender, EventArgs e) in E:\我的文档\Visual Studio 2005\WebSites\DEMO\ptotour\web\templet\ShowNews.aspx.cs:42
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.UI.Control.LoadRecursive() +116
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2750
[TypeInitializationException: “dtn_net.S”的类型初始值设定项引发异常。]
dtn_net.S..ctor() +0
ASP.s_aspx..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b7fbe8bf\af528f50\App_Web_el5rl0l0.2.cs:0
__ASP.FastObjectFactory_app_web_el5rl0l0.Create_ASP_s_aspx() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b7fbe8bf\af528f50\App_Web_el5rl0l0.14.cs:0
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +167
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +42
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +476
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371
|