powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Server Error in '/test' Application
3 сообщений из 3, страница 1 из 1
Server Error in '/test' Application
    #38364205
NikolayT
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Добрый день!

Не нашел похожей ситуации, поэтому создал тему.

На днях столкнулся с проблеймой при связки .NET и MSSQL. На локальном сервере все работает нормально, но как только переношу на IIS выдает ошибку:

This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.
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: Microsoft.SharePoint.WebPartPages.DataSourceControlDisabledException: This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[DataSourceControlDisabledException: This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.]
Microsoft.SharePoint.WebControls.SPSqlDataSource.CheckConnectionString(String ConnectionString) +16809617
Microsoft.SharePoint.WebControls.SPSqlDataSource.GetView(String viewName) +61
System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +193
System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +28
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

Содержание Web.config

Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
<configuration>  
  <appSettings/>
  <connectionStrings>
    <add name="RPConnectionString" connectionString="Data Source=s-it03;Initial Catalog=RequestPayment;Integrated Security=SSPI;User ID=SPAppUser;Password=SPAppPassword;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>    
    <compilation debug="true"/>
    <authentication mode="Windows"/>
    <customErrors mode="Off"/>
    <trust level="Full"/>
  </system.web>
</configuration>
...
Рейтинг: 0 / 0
Server Error in '/test' Application
    #38364324
Фотография Нахлобуч
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Удалить "Integrated Security=SSPI;"
...
Рейтинг: 0 / 0
Server Error in '/test' Application
    #38364341
NikolayT
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Нахлобуч, Спасибо!
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Server Error in '/test' Application
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]