My SharePoint Blog

Blogs On SharePoint Technologies


Search Site


My SharePoint Blog recommends any of the following books...


Recent comments

Tags

Don't show

    Categories


    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2009

    SharePoint WSS SqlClientPermission Errors

    Errors related to your .NET apps that use SQL clients:

     

    Request for the permission of type
    System.Data.SqlClient.SqlClientPermission,
    System.Data, Version=1.0.5000.0, Culture=neutral,
    ublicKeyToken=b77a5c561934e089 failed.

     

    Reason:  This is due to SharePoint Portal Server and Windows SharePoint Services implementation of .NET Code Access Security (CAS). A solution that addresses the aforementioned error is cited below. 

     

    Fix: Locate and open the wss_minimaltrust.config file (NOTE: If you've gone with the default SharePoint or WSS install, this file is located at <INSTALL_DRIVE>:\Program Files\Common Files\Microsoft Shared\Server Extensions\60\Config)

     

    Add the following element to the SecurityClasses section of this config file: 

     

    <SecurityClass Name="SqlClientPermission"
      Description="System.Data.SqlClient.SqlClientPermission, System.Data,
      Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

    />

     

    In the PermissionSet section of this configuration file, add the following:

     

    <IPermission class="SqlClientPermission" version="1"  Unrestricted="true" />

     

    References: http://blogs.msdn.com/lamonth/archive/2005/02/13/372075.aspx

    Categories: SharePoint
    Posted by Kevin on Tuesday, March 20, 2007 1:03 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    SharePoint WSS and Session Errors

    Put this block in the web.config file...

    <httpModules>
       <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
    </httpModules>

     


    Categories: SharePoint
    Posted by Kevin on Tuesday, March 20, 2007 1:03 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    SharePoint WSS Error: Operation aborted (Exception from HRESULT: 0×80004004 (E_ABORT))

    You may get this error if the drive your database log is located on is full.

    Categories: SharePoint
    Posted by kevin on Wednesday, March 07, 2007 12:03 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    General SharePoint Notes - Part 1

    Never use SharePoint Designer to edit the filesystem pages (for the purpose of making global changes to ghosted sites). Catastrophic failure may (will) occur. Not sure why but it is mentioned in several articles and books. Use any other text/source editor instead (Visual Studio).

    After a page (default.master, xxx.aspx) is unghosted using the SharePoint designer, all changes to the respective file sytem files will not propegate into that particular site.


    To backup a single site with stsadm when the SharePoint backup/restore process fails, use ( It will create several files. )...

    stsadm -o export -url "http://localhost/site/subsite" -filename "c:\subsite_files\"

    To restore...

    stsadm -o import -url "http:///site/subsite_b" -filename "c:\subsite_files\site.cmp"

     

    Replace, if necessary, to your domain or machine and port name.


    Categories: SharePoint
    Posted by Kevin on Thursday, March 01, 2007 3:03 PM
    Permalink | Comments (0) | Post RSSRSS comment feed