By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,846 Members | 2,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,846 IT Pros & Developers. It's quick & easy.

security issue with windows control in aspx

P: n/a
Hi

I have a windows control I embed onto an aspx page which is grabbing a
dataset from the client and sending it to the server through a
webservice.

This works fine in a windows app. However when i put the aspx on a
webpage there is a security issues that pops when user tries to use the
windows ctrl.

The message is: The application attempted to perform an operation not
allowed by the security policy. The operation required the security
exception. to grant this application the required permission use the
..net security policy admin tool.

So some questions..
How can i get the client to trust the windows ctrl ?
Why does the operation require a security exception?
Where do i and my users find the .net security policy admin tool and
can these settings be set automatically ?

Please help thanks so much

Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
2nd paragraph i meant to say:
This works fine in a windows app. However when i put the control on a
webpage there is a security issues that pops when user tries to use the

windows ctrl.

Nov 19 '05 #2

P: n/a
when a .net windows control is hosted by the browser it runs in a security
sandbox. it not allowed to access local resources (the local disk or shares,
call unmanaged code, etc).

caspol.exe is the security tool used to change the permissions.

there is no automatic setup, you could write an installer, and have your
users run it.
-- bruce (sqlwork.com)
"androoo" <an***********@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi

I have a windows control I embed onto an aspx page which is grabbing a
dataset from the client and sending it to the server through a
webservice.

This works fine in a windows app. However when i put the aspx on a
webpage there is a security issues that pops when user tries to use the
windows ctrl.

The message is: The application attempted to perform an operation not
allowed by the security policy. The operation required the security
exception. to grant this application the required permission use the
.net security policy admin tool.

So some questions..
How can i get the client to trust the windows ctrl ?
Why does the operation require a security exception?
Where do i and my users find the .net security policy admin tool and
can these settings be set automatically ?

Please help thanks so much

Nov 19 '05 #3

P: n/a
Where is this web service ?

AFAIK this is allowed wihtout chanhing anything if the web service is at the
same location...

Patrice

--

"androoo" <an***********@hotmail.com> a écrit dans le message de
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi

I have a windows control I embed onto an aspx page which is grabbing a
dataset from the client and sending it to the server through a
webservice.

This works fine in a windows app. However when i put the aspx on a
webpage there is a security issues that pops when user tries to use the
windows ctrl.

The message is: The application attempted to perform an operation not
allowed by the security policy. The operation required the security
exception. to grant this application the required permission use the
.net security policy admin tool.

So some questions..
How can i get the client to trust the windows ctrl ?
Why does the operation require a security exception?
Where do i and my users find the .net security policy admin tool and
can these settings be set automatically ?

Please help thanks so much

Nov 19 '05 #4

P: n/a
Sorry for long time no response. thansk for all replies
The way i dealt with this was to make a permission group and add that
as a link to my site for those who needed to use it.
http://www.code-magazine.com/article...0405031&page=3 gives
a good example of permission groups in .net

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.