Building Office 2007 Solutions in C# 2005

Aug 2, 2007 at 6:55 PM

I'm enjoying the book Sharepoint:Building Office 2007 Solutions in C# 2005. I can't seem to get the example 10.1 to work right. On page 408, there's a note that states: Web Parts that access databases require at least the WSS_Medium security policy in the web.config file. This is not clear to me. Please help. Thanks!!

Error message:
Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Aug 9, 2007 at 7:14 PM
Hi Matt,

I think we discussed this by mail, but you'll need to change the web.config file.