RE: UserControl inside IE can't connect to MSSQL
From: Shawn Farkas (shawnfa_at_online.microsoft.com)
Date: 08/21/04
- Previous message: Shawn Farkas: "RE: UserControl in IE Security higher then Java?"
- In reply to: mifko: "UserControl inside IE can't connect to MSSQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 20 Aug 2004 23:03:14 GMT
Hi Anders,
You can certainly change any of the code groups to have different permission sets. Check out my two blog entries here on how to do this:
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx
And more relevant to you:
http://blogs.msdn.com/shawnfa/archive/2003/06/26/57026.aspx
-Shawn
http://blogs.msdn.com/shawnfa
-- This posting is provided "AS IS" with no warranties, and confers no rights. Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated. -------------------- >Thread-Topic: UserControl inside IE can't connect to MSSQL >thread-index: AcSEarxBIj8L/QyIQFGBtHcM0Nn6jw== >X-WBNR-Posting-Host: 62.168.97.166 >From: "=?Utf-8?B?bWlma28=?=" <mifko@discussions.microsoft.com> >Subject: UserControl inside IE can't connect to MSSQL >Date: Tue, 17 Aug 2004 07:59:03 -0700 >Lines: 23 >Message-ID: <533F0905-2426-4747-BD17-F3F3490F3880@microsoft.com> >MIME-Version: 1.0 >Content-Type: text/plain; > charset="Utf-8" >Content-Transfer-Encoding: 7bit >X-Newsreader: Microsoft CDO for Windows 2000 >Content-Class: urn:content-classes:message >Importance: normal >Priority: normal >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 >Newsgroups: microsoft.public.dotnet.security >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29 >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.security:7160 >X-Tomcat-NG: microsoft.public.dotnet.security > >Hi there, >I have a problem and don't know what to do. > >I created UserControl in VS.Net 2003 and I tried to open it in Internet >explorer with object tag. Because this UserControl tries to connect to MSSQL >server and select some data, I got an error saying: > >The application attempted to perform an operation... Request for the >permission of type System.Data.SqlClient.SqlClientPermission, System.Data. > >Well, this was really surprise for me so I started to search with google and >found a lot of posts saying that I have to change settings in .Net >Configuration. > >I did. But it seems, that I could only change settings for My_Computer_Zone. >For LocalIntranet_Zone there are two predefined setting and even though I >added a new group of settings which allows my assembly Everything, problem >still remains. > >So, is there any possibility to change LocalIntranet settings? Have anyone >idea how? Or for security reasons this is not allowed and will never be? > >Thanks in advance. >
- Previous message: Shawn Farkas: "RE: UserControl in IE Security higher then Java?"
- In reply to: mifko: "UserControl inside IE can't connect to MSSQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|