Click here to Skip to main content
16,007,814 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
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 
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 
First,
thanks for your interest so far.

Here are some information from the thrown System.Security.SecurityException...

InnerException: null (!)
Zone: System.Security.SecurityZone.Intranet
Action: System.Security.Permissions.SecurityAction.Demand
Source: mscorlib
StackTrace:
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)<br />
at System.Security.CodeAccessPermission.Demand()<br />
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)<br />
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)<br />
at Bluap.Preloader.myRequestState_CompletedEvent(Object sender, EventArgs e)<br />
at Bluap.RequestState.Completed()<br />
at Bluap.Preloader.ReadCallBack(IAsyncResult asyncResult)<br />
at System.Net.LazyAsyncResult..ctor(Object myObject, Object myState, AsyncCallback myCallBack, Object result)<br />
at System.Net.ConnectStream.BeginReadWithoutValidation(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)<br />
at System.Net.ConnectStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)


The thread starts with a call to Stream.BeginRead().
Inside myRequestState_CompletedEvent is where i check for InvokeRequired and i call Invoke (save result with BeginInvoke).
The main thread never recieve a message to call my Invoked method. Everything stop inside System.Security.CodeAccessPermission.Demand().

I am totally clueless in .Net security!
Can i bypass this by calling a SecurityPermision.Assert() before calling invoke? Should i start threads in special ways?
I find it odd if Invoke() is really forbited inside Intranet zone. There might be a secury issue with Invoke or MarshaledInvoke, but also there should be a way to allow Invoke inside the same assembly.


Regards.
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 
GeneralRe: Convert region to path Pin
Tomas(cz)29-Nov-06 10:57
Tomas(cz)29-Nov-06 10:57 
GeneralRe: Convert region to path Pin
Dave Kreskowiak29-Nov-06 12:14
mveDave Kreskowiak29-Nov-06 12:14 

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.