Usuário com melhor resposta
SharePoint + Asp.net Security Exception

Pergunta
-
Bom dia,
Tenho duas máquinas, uma com instalada o Sharepoint onde estou inserindo uma nova aplication, e uma outra com o banco de dados.
Consegui criar a aplication normalmente, porém quando vou fazer o login, ele dá a seguinte mensagem de erro:
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Tentei colocar no Web.Config da aplicação as seguintes linhas e também não funcionou:
<
SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Security" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
<
SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Security.Permissions" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
<
SafeControl Assembly="System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Security" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
<
SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" SafeAgainstScript="False" />
Alguém pode me ajudar?
Michel Costa- Movido Seilor Bonancio Junior sábado, 4 de dezembro de 2010 15:55 (De:ASP.NET)
Respostas
-
Michel, eu resolvi o problema colocando a tag trust level com o parametro full.
<system.web>
<trust level="Full"/>
</system.web>
abs.
- Marcado como Resposta Michel Costa segunda-feira, 6 de dezembro de 2010 16:57
Todas as Respostas
-
-
-
Michel, eu resolvi o problema colocando a tag trust level com o parametro full.
<system.web>
<trust level="Full"/>
</system.web>
abs.
- Marcado como Resposta Michel Costa segunda-feira, 6 de dezembro de 2010 16:57
-