Quét Mã Qr Trên Wechat

Server Error in '/' Application.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

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: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Source Error:
Line 25: y77.InnerHtml = new NetshellCoreDLL.DateManagement.NetshellDate().UTCNowtoIST().ToLongDateString(); Line 26: List<News> MyNews = new List<News>(); Line 27: MyNews = new GetEditionDataBL().GetEditionNews(); Line 28: // Response.Write(MyNews.Count()); Line 29: if (Page.Page.ToString() == "ASP.default_aspx")
Source File: c:\inetpub\vhosts\knskashmir.com\httpdocs\main.master.cs Line: 27 Stack Trace:
[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)] System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +353 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +118 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +268 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +128 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +265 System.Data.SqlClient.SqlConnection.Open() +133 System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch(TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) +98 System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) +494 System.Data.Entity.SqlServer.<>c__DisplayClass2_0.<Execute>b__0() +18 System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +234 System.Data.Entity.Core.EntityClient.EntityConnection.Open() +324 [EntityException: The underlying provider failed on Open.] System.Data.Entity.Core.EntityClient.EntityConnection.Open() +741 System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) +166 System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) +63 System.Data.Entity.Core.Objects.<>c__DisplayClass41_0.<GetResults>b__0() +227 System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +234 System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +357 System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() +30 System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() +39 System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source) +209 System.Data.Entity.Internal.Linq.InternalSet`1.FindInStore(WrappedEntityKey key, String keyValuesParamName) +128 System.Data.Entity.Internal.Linq.InternalSet`1.Find(Object[] keyValues) +208 NetshellNewsPortalSubscriptionBasedLibrary.NetshellGeneralTask.GetCurrentPublicationdate() +193 SuperNewsBusinessLayer.GetEditionDataBL.GetEditionNews() +165 main.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\knskashmir.com\httpdocs\main.master.cs:27 System.Web.UI.Control.OnLoad(EventArgs e) +108 System.Web.UI.Control.LoadRecursive() +90 System.Web.UI.Control.LoadRecursive() +185 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0

Từ khóa » Cộng đồng Wechat