Когда я его запускаю, я получаю следующее:
Снимок экрана ошибки
Я включил проверку подлинности Windows в IIS, SQL Server, а также добавил метод проверки подлинности в Интернете.config:
<system.web>
<authentication mode="Windows"/>
<system.web>
У меня буквально нет идей ...
Как видите, DataConnection работает
Снимок экрана DataConnection
Строка подключения от web.config
:
<connectionStrings>
<clear/>
<add name="cafeaconnection"
connectionString="Data source=LENOVO-PC\SQLEXPRESS; Initial catalog=tipuridecafeaDB; user id=user; password=password; persist security info=True;"
providerName="System.Data.SqlClient" />
<add name="ConnectionString"
connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\tipuridecafeaDB.mdf;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
Ошибка:
[SqlException (0x80131904): Ошибка входа для пользователя 'Shade'.]
System.Data.SqlClient.SqlInternalConnectionTds..ctor (DbConnectionPoolIdentity идентичность, SqlConnectionString connectionOptions, SqlCredential учетных данных, объект providerInfo, Струнный новый_пароль, SecureString newSecurePassword, логическое redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool бассейн, Строка, Boolean маркер доступа applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) + 907
System.Data.SqlClient.SqlConnectionFactory.CreateConnection (опции DbConnectionOptions, DbConnectionPoolKey poolKey, объект poolGroupProviderInfo, DbConnectionPool бассейн, DbConnection owningConnection, DbConnectionOptions userOptions) + 334
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection (DbConnectionPool бассейн, DbConnection owningObject, DbConnectionOptionsoptions, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) + 38
System.Data.ProviderBase.DbConnectionPool.CreateObject (DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnectionOgnationConnection.ObDateObDateObDirect_Direct_Direct_Rate_Ob_Date_Ob_D_Ob_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_C_P_P_P_P_P_P_P_P_P_EDbConnectionOptions userOptions, DbConnectionInternal oldConnection) + 89
System.Data.ProviderBase.DbConnectionPool.TryGetConnection (DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, логическое значение allowCreate, BooleckConnectionOne только для пользователяOneptionsOnectionOnectionOction только для объектов, DbConnectionInternal & connection) + 426
System.Data.ProviderBase.DbConnectionPool.TryGetConnection (DbConnection owningObject, TaskCompletionSource 1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78<br>
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource
1 попытка повторения, DbConnectionOptions userOptions, DbConnectionInternal oldConnection.baseNateBatConnect_Nb_NateBateConnection_Connect_Connect_Connect_Connect_Connect.Connect_ND_NB *..TryOpenConnectionInternal (DbConnection externalConnection, DbConnectionFactory connectionFactory, TaskCompletionSource 1 retry, DbConnectionOptions userOptions) +154<br>
System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource
1 повтор, DbConnectionOptions userOptions) + 21
System.Data.SqlClient.SqlConnection.Try *penInner (10 * System * 443) .3.33S3SqlClient.SqlConnection.Open () + 96
YourCoffeeShop.App_Code.ConnectionClass.() в D: \ YCS \ YourCoffeeShop \ YourCoffeeShop \ Pages \ Cafea.aspx.cs: 26
YourCoffeeShop.Pages.Cafea.Page_Load (отправитель объекта, EventArgs e) в D: \ YCS \ YourCoffeeShop \ YourCoffeeShop \ Pages \ Cafea.aspx.cs: 17
System.Web.Util.CalliEventHandlerDelegateProxy.Callback (отправитель объекта, EventArgs e) + 51
System.Web.UI.Control.OnLoad (EventArgs e) +95
System.Web.UI.Control.LoadRecursive () + 59
System.Web.UI.Page.ProcessRequestMain (логическое значение includeStagesBeforeAsyncPoint, логическое значение includeStagesAfterAsyncPoint) +678