SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to connect a web-part running in SharePoint 2007 site to an external Sql Server 2005 database. I get a System.Secutity.SecurityException with "Request Failed" message when I attach debugger to debug my web part.

Here's my present situation

  1. Webpart dll is deployed in bin of web application
  2. I have set Trust Level to Full in web.config
  3. The application pool under which the sharepoint site is running is administrator on the server
  4. Here's the connection string @"Data Source=VISHAL_vm\sqlexpress;Initial Catalog=LicensingDB;Integrated Security=True"

This exception is thrown on Connection.Open() method

share|improve this question
If this answer helped you, could you please mark it as the answer? Thanks – Kolten Nov 25 '15 at 17:38

I believe you need to have Kerberos configured for your SharePoint Farm and utilize SPN's on ActiveDirectory to enable that pass-through authentication.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.