Home All Groups Group Topic Archive Search About

Windows user controls in a web page: Security

Author
25 Feb 2005 10:56 PM
John Francisco Williams
Hi all. Where can I find documentation on using windows user controls in web
pages? I've been looking for documentation, but haven't found much.
Specifically, I'm now having problems with assembly permissions:

1. I have an Aspx page that uses a windows user control
2. The control uses ADO.Net to retrieve information from an SQL server (at
least it tries)
3. In a client machine, I created a code group under Machine, AllCode,
Local_Intranet. Membership. Condition is the URL of my app. Permission set
is one I created allowing EVERYTHING
4. It doesn't work. When the control tries to retrieve the information, I
get an exception: Request for the permission SQLClientPermission failed.

Note: The control works fine on the machine I use to host the page. All I
had to do was trust the control's assembly. It doesn't work on other
machines that browse to that page.

Any suggestions, tips, info are welcome. I don't know what newsgroup to use
so, I'm trying with these two.

Thanks a lot!!!

Frank