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

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

На днях столкнулся с проблеймой при связки .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
13.08.2013, 11:02
    #38364324
Нахлобуч
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Server Error in '/test' Application
Удалить "Integrated Security=SSPI;"
...
Рейтинг: 0 / 0
13.08.2013, 11:13
    #38364341
NikolayT
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Server Error in '/test' Application
Нахлобуч, Спасибо!
...
Рейтинг: 0 / 0
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Server Error in '/test' Application / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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