Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2005, 08:54 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default System.Security.SecurityException accessing MSSQL

When trying to access an MS SQL server from a Citrix Terminal Server account i get the following exception.:

(Im using Visual C#, visual studio 2003)

Code:
System.Security.SecurityException: Request for the permission of type System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.



   at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken)
   at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride)
   at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
   at System.Security.CodeAccessPermission.Demand()
   at System.Data.SqlClient.SqlConnectionString.Demand(SqlConnectionString constr)
   at System.Data.SqlClient.SqlConnection.Open()


Locally at my computer it works without a hitch.

Im sure this has something to do with permissions in citrix, but has anyone else experienced this?

thanks

Some links ive read:
http://www.vbcity.com/forums/topic.asp?tid=61130
http://www.derkeiler.com/Newsgroups/...4-01/0035.html
http://www.groupsrv.com/dotnet/viewtopic.php?t=53876



Edit:
Possible solution:
http://blogs.msdn.com/shawnfa/archiv.../20/57023.aspx





Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting System.Security.SecurityException Sunnys ASP.NET 2.0 Professional 0 March 14th, 2007 04:13 AM
System.Security.SecurityException: Security error coolcatjk Pro VB.NET 2002/2003 4 March 2nd, 2006 06:00 PM
System.Security.SecurityException pastoda BOOK: Professional C#, 2nd and 3rd Editions 7 July 31st, 2005 08:49 AM
System.Security.SecurityException davepruce ADO.NET 1 May 10th, 2005 11:20 AM
'System.Security.SecurityException' mrinal ADO.NET 3 August 11th, 2004 07:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.