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

Error...

P: n/a
I i am calling a window apllcation by making that window application
Control Dll.

i have used list box in side that control when i tried to populated
that listbox i got this error....

/////
The application attempted to perform an operation not allowed by the
security policy. the operation requirecd the securityExecption. to
grant this application the required permission please contact your
system administrator or use the .net security policy administration
tool
Request failed
/////////////

give me right help please

Sonu

Nov 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I i am calling a window apllcation by making that window application
Control Dll.

i have used list box in side that control when i tried to populated
that listbox i got this error....

/////
The application attempted to perform an operation not allowed by the
security policy. the operation requirecd the securityExecption. to
grant this application the required permission please contact your
system administrator or use the .net security policy administration
tool
Request failed
/////////////

give me right help please

Sonu


Are you loading the conotrol DLL from a network share or HTTP location?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Nov 17 '05 #2

P: n/a
Richard

Yes i am loading the Control dll like as
<OBJECT id="MyWinControl1" style="Z-INDEX: 104; LEFT: -8px; WIDTH:
100%; POSITION: absolute; TOP: 0px; HEIGHT: 117.33%"
height="117.33%" width="100%"
classid="test3\bin\Debug\test3.dll#test3.UserContr ol1" VIEWASTEXT>

Regards
Sonu

Nov 17 '05 #3

P: n/a
"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Richard

Yes i am loading the Control dll like as
<OBJECT id="MyWinControl1" style="Z-INDEX: 104; LEFT: -8px; WIDTH:
100%; POSITION: absolute; TOP: 0px; HEIGHT: 117.33%"
height="117.33%" width="100%"
classid="test3\bin\Debug\test3.dll#test3.UserContr ol1" VIEWASTEXT>

Regards
Sonu


ok then the control is being loaded with Partial Trust which means the CAS
subsystem is preventing it doing something. You either need to stop doing
that something or give the assembly the permissions it needs by changing CAS
policy

Are you loading this from the Intranet or Internet?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Nov 17 '05 #4

P: n/a
i am loading this from intranet

actually i have make a window application and add that window
application with window control

this Dll is in same folder where tha aspx page is.

and i have called this Dll like above.
Regards
Sonu

Nov 17 '05 #5

P: n/a
Richard ,

Thank u very much, for giving the usefull tips,I have solved that
problem.

Problem was related to the Cas.
Regards
Sonu

Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.