SecurityExceptions in .NET CF?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

Just curious as to whether someone can explain to me what conditions can
cause a SecurityException to be raised in the Compact Framework.

I'm getting one sporadically in my app and I'm having a hard time tracking
it down.

Thanks in advance if anyone can de-mystify this a bit for me. :-)

Jake
 
No takers?

How about if I mention that it seems to be happening during ContextMenu_Popup?

Jake
 
Yes, you can see SecurityException in a few cases.
For example, on attempt to open file which is already opened or R/O (for
write access).

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Hi Ilya,

How about when modifying the Registry or using ADOCE? ;-)

Thanks,

Jake


"Ilya Tumanov [MS]" said:
Yes, you can see SecurityException in a few cases.
For example, on attempt to open file which is already opened or R/O (for
write access).

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: SecurityExceptions in .NET CF?
thread-index: AcUQdJJAs618AFOJTJ+KoMCs+ugKHw==
X-WBNR-Posting-Host: 141.149.203.210
From: "=?Utf-8?B?SmFrZQ==?=" <[email protected]>
References: <[email protected]>
Subject: RE: SecurityExceptions in .NET CF?
Date: Fri, 11 Feb 2005 12:02:10 -0800
Lines: 19
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22395
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

No takers?

How about if I mention that it seems to be happening during ContextMenu_Popup?

Jake
 
There is neither registry support nor ADOCE support in CF V1.
Third party implementation of these functions is up to third party.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: SecurityExceptions in .NET CF?
thread-index: AcUQh2i0F8/DQwiITGerNMM8a8P8Ig==
X-WBNR-Posting-Host: 141.149.203.210
From: "=?Utf-8?B?SmFrZQ==?=" <[email protected]>
References: <[email protected]>
Subject: RE: SecurityExceptions in .NET CF?
Date: Fri, 11 Feb 2005 14:17:01 -0800
Lines: 71
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22401
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Hi Ilya,

How about when modifying the Registry or using ADOCE? ;-)

Thanks,

Jake


"Ilya Tumanov [MS]" said:
Yes, you can see SecurityException in a few cases.
For example, on attempt to open file which is already opened or R/O (for
write access).

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: SecurityExceptions in .NET CF?
thread-index: AcUQdJJAs618AFOJTJ+KoMCs+ugKHw==
X-WBNR-Posting-Host: 141.149.203.210
From: "=?Utf-8?B?SmFrZQ==?=" <[email protected]>
References: <[email protected]>
Subject: RE: SecurityExceptions in .NET CF?
Date: Fri, 11 Feb 2005 12:02:10 -0800
Lines: 19
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22395
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

No takers?

How about if I mention that it seems to be happening during ContextMenu_Popup?

Jake

:

Hi All,

Just curious as to whether someone can explain to me what
conditions
can
cause a SecurityException to be raised in the Compact Framework.

I'm getting one sporadically in my app and I'm having a hard time tracking
it down.

Thanks in advance if anyone can de-mystify this a bit for me. :-)

Jake
 
Ilya,

Thank you for your reply. I ended up tracking down the SecurityException,
it was happening within the ADOCE component we're using. Overall relatively
easy to trap and handle, and my app works great now!

Jake

"Ilya Tumanov [MS]" said:
There is neither registry support nor ADOCE support in CF V1.
Third party implementation of these functions is up to third party.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: SecurityExceptions in .NET CF?
thread-index: AcUQh2i0F8/DQwiITGerNMM8a8P8Ig==
X-WBNR-Posting-Host: 141.149.203.210
From: "=?Utf-8?B?SmFrZQ==?=" <[email protected]>
References: <[email protected]>
Subject: RE: SecurityExceptions in .NET CF?
Date: Fri, 11 Feb 2005 14:17:01 -0800
Lines: 71
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22401
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Hi Ilya,

How about when modifying the Registry or using ADOCE? ;-)

Thanks,

Jake


"Ilya Tumanov [MS]" said:
Yes, you can see SecurityException in a few cases.
For example, on attempt to open file which is already opened or R/O (for
write access).

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: SecurityExceptions in .NET CF?
thread-index: AcUQdJJAs618AFOJTJ+KoMCs+ugKHw==
X-WBNR-Posting-Host: 141.149.203.210
From: "=?Utf-8?B?SmFrZQ==?=" <[email protected]>
References: <[email protected]>
Subject: RE: SecurityExceptions in .NET CF?
Date: Fri, 11 Feb 2005 12:02:10 -0800
Lines: 19
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.compactframework:22395
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

No takers?

How about if I mention that it seems to be happening during
ContextMenu_Popup?

Jake

:

Hi All,

Just curious as to whether someone can explain to me what conditions
can
cause a SecurityException to be raised in the Compact Framework.

I'm getting one sporadically in my app and I'm having a hard time
tracking
it down.

Thanks in advance if anyone can de-mystify this a bit for me. :-)

Jake
 
Back
Top