IIS Settings

SaNTa
Дата: 02.06.2008 23:42:00
Доброго времени суток.

У меня небольшая загвоздка с настройкой IIS. При попытке залогиниться к БД извне вываливается исключение:

User does not have permission to perform this action.
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: User does not have permission to perform this action.

Стоки подключения:
- <connectionStrings>
<add name="DBConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DB.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="DBConnectionString2" connectionString="Data Source=localhost;Initial Catalog=DB;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="ASPNETDB" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\aspnetdb.mdf; Integrated Security=True; User Instance=True" providerName="System.Data.SqlClient" />
</connectionStrings>

В чем проблема?

Куда ткнуть, что прописать?javascript:writeTag(' :\'(');
Плач

nKognito
Дата: 03.06.2008 08:57:25
Ну учитывая что вы юзаете Integrated security при подключении к БД то может у сервера БД не заведена учетка для приложения?
МСильвер
Дата: 03.06.2008 09:40:27
SaNTa

У меня небольшая загвоздка с настройкой IIS. При попытке залогиниться к БД извне вываливается исключение:

User does not have permission to perform this action.
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.

эээ, а причем тут БД и ИИС ? Integrated security, насколько я понимаю, означает наличие домена. Вы можете под своим windows логином подключитсья на сервер?