Click here to Skip to main content
15,914,608 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: CD Burning using IMAPI Pin
Christian Graus30-Nov-06 0:35
protectorChristian Graus30-Nov-06 0:35 
Questionadding year navigation to calendar Pin
sumit_k29-Nov-06 18:16
sumit_k29-Nov-06 18:16 
AnswerRe: adding year navigation to calendar Pin
Robert Rohde30-Nov-06 11:26
Robert Rohde30-Nov-06 11:26 
Questionadvanced validation ....urgent .net Pin
snuffnit29-Nov-06 15:50
snuffnit29-Nov-06 15:50 
GeneralRe: advanced validation ....urgent .net Pin
George L. Jackson29-Nov-06 17:10
George L. Jackson29-Nov-06 17:10 
GeneralRe: advanced validation ....urgent .net Pin
Guffa29-Nov-06 19:00
Guffa29-Nov-06 19:00 
GeneralRe: advanced validation ....urgent .net Pin
Not Active29-Nov-06 21:59
mentorNot Active29-Nov-06 21:59 
QuestionSecurityException on Invoke Pin
Kastellanos Nikos29-Nov-06 1:23
Kastellanos Nikos29-Nov-06 1:23 
I have a UserControl which i load in IE using the following html code:
<object classid="Bluap.dll#Bluap.Preloader" width="300" height="120">

The control starts an async download of a file by using HttpWebRequest.
Once the file completes, it fires an event. The event handler can't directly present the contents of the file in the UI, cause the event comes from another thread.
So, i have to do check for 'InvokeRequired' and perform an Invoke(). But once i do so, i get the following error:

An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll<br />
<br />
Additional information: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


What's going on, where? Is there a workaround?
Please note that tweiking security in the .Net Configuration is not an option. I want to know what is possible with the default setting.
If Invoke is indeed restricted, this also makes events from other threads usesless in the majority of situations.
Do I have to build my won messagequeue/Invoke/Event functionality? Please tell me that there is a workaround! I don't want to leave 'Web'-UserControls as totally useless compared to applets and swfs.
AnswerRe: SecurityException on Invoke Pin
Robert Rohde30-Nov-06 11:31
Robert Rohde30-Nov-06 11:31 
GeneralRe: SecurityException on Invoke Pin
Kastellanos Nikos30-Nov-06 22:32
Kastellanos Nikos30-Nov-06 22:32 
GeneralRe: SecurityException on Invoke Pin
Robert Rohde1-Dec-06 9:21
Robert Rohde1-Dec-06 9:21 
GeneralRe: SecurityException on Invoke Pin
Kastellanos Nikos3-Dec-06 22:24
Kastellanos Nikos3-Dec-06 22:24 
QuestionCom port and window service Pin
Tauseef A29-Nov-06 1:15
Tauseef A29-Nov-06 1:15 
Questiongeting time from the server Pin
microuser_200028-Nov-06 22:02
microuser_200028-Nov-06 22:02 
AnswerRe: geting time from the server Pin
Tauseef A28-Nov-06 22:37
Tauseef A28-Nov-06 22:37 
QuestionUsing http modules with windows applications Pin
Kanjinghat28-Nov-06 18:41
Kanjinghat28-Nov-06 18:41 
AnswerRe: Using http modules with windows applications Pin
Pete O'Hanlon30-Nov-06 9:19
mvePete O'Hanlon30-Nov-06 9:19 
QuestionKey Board Input Pin
Tauseef A28-Nov-06 18:40
Tauseef A28-Nov-06 18:40 
AnswerRe: Key Board Input Pin
karam chandrabose29-Nov-06 0:07
karam chandrabose29-Nov-06 0:07 
QuestionWebservice Interface for HTTP Post Method Pin
Nithin Krishna28-Nov-06 18:28
Nithin Krishna28-Nov-06 18:28 
QuestionCompiling a component on the fly and invoking it Pin
emoscosocam28-Nov-06 13:41
emoscosocam28-Nov-06 13:41 
AnswerRe: Compiling a component on the fly and invoking it Pin
Not Active28-Nov-06 17:50
mentorNot Active28-Nov-06 17:50 
AnswerRe: Compiling a component on the fly and invoking it Pin
karam chandrabose29-Nov-06 0:09
karam chandrabose29-Nov-06 0:09 
QuestionConvert region to path Pin
Tomas(cz)28-Nov-06 12:40
Tomas(cz)28-Nov-06 12:40 
AnswerRe: Convert region to path Pin
Dave Kreskowiak29-Nov-06 9:04
mveDave Kreskowiak29-Nov-06 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.