Help and Support
 

powered byLive Search

UserControl security exception in the Microsoft Office SharePoint Server 2007

Author: Alvin Bruney MVP
Article ID:555967
Last Review:October 15, 2007
Revision:1.0

SUMMARY

A .NET usercontrol loaded in Microsoft Office SharePoint Server 2007 generates a Security exception similar to the following: This control does not allow connection strings with the following keywords: 'Integrated Security', 'Trusted_Connection'.

Back to the top

SYMPTOMS

When you load a .NET usercontrol in a SharePoint web part or web form, a security exception occurs if the code uses Windows Authentication in the connection string. The security exception does not occur if Windows Authentication is not used.

Back to the top

CAUSE

Controls or assemblies loaded from outside the GAC are not trusted by default.

Back to the top

RESOLUTION

Clear the tagMapping properties of the control by inserting the following:
<code>
<tagMapping>
   <clear/>
</tagMapping>
</code>
 
The snippet may be placed in the web.config file.

Back to the top


APPLIES TO
Microsoft Office SharePoint Server 2007

Back to the top

Keywords: 
kbpubmvp kbpubtypecca kbhowto KB555967

Back to the top

Community Solutions ContentCOMMUNITY SOLUTIONS CONTENT DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.