Error...

  • Thread starter Thread starter sonu
  • Start date Start date
S

sonu

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
 
sonu said:
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
 
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.UserControl1" VIEWASTEXT>

Regards
Sonu
 
sonu said:
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.UserControl1" 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
 
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
 
Richard ,

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

Problem was related to the Cas.


Regards
Sonu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top