Server Error in '/' Application.

uwin电竞官网-u赢电竞官方网站-u赢电竞竞猜app

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: uwin电竞官网-u赢电竞官方网站-u赢电竞竞猜app

Source Error:


Line 18:   
Line 19:     ViewBag.qyid = id; //这个字段是必须的
Line 20:     yixiang_corporation corporation = YixiangCorporationSvr.Instance.GetItemById(id);
Line 21:     
Line 22:     string title = string.Format("{0}_{1}", item.Title, qymc);

Source File: d:\tangjiu\zhanqun\0.0.2\Views\RecomInfo\Detail.cshtml    Line: 20

Stack Trace:


[SqlException (0x80131904): uwin电竞官网-u赢电竞官方网站-u赢电竞竞猜app]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +690
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +89
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6296622
   System.Data.SqlClient.SqlConnection.Open() +300
   IBatisNet.DataMapper.SqlMapSession.OpenConnection(String connectionString) +418

[DataMapperException: Unable to open connection to "Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0".]
   IBatisNet.DataMapper.SqlMapSession.OpenConnection(String connectionString) +912
   IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.ExecuteReader() +34
   IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject(RequestScope request, ISqlMapSession session, Object parameterObject, T resultObject) +89
   IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession session, Object parameterObject, T resultObject) +194
   IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession session, Object parameterObject) +106
   IBatisNet.DataMapper.SqlMapper.QueryForObject(String statementName, Object parameterObject) +419
   TjCom.Dao.Service.YixiangCorporationSvr.GetItemById(Int32 id) in D:\糖玖网络\公司项目\tangjiu.comWap\tangjiu.com.dao\TjCom.Dao\TjCom.Dao\Service\yixiang_corporationSvr.cs:36
   ASP._Page_Views_RecomInfo_Detail_cshtml.Execute() in d:\tangjiu\zhanqun\0.0.2\Views\RecomInfo\Detail.cshtml:20
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +181
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +230
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +20
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +20
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +20
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +453
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1