Click here to Skip to main content
15,905,420 members
Home / Discussions / C#
   

C#

 
QuestionGet Mouse Message [modified] Pin
İsmail Durmaz7-Jul-06 14:43
İsmail Durmaz7-Jul-06 14:43 
AnswerRe: Get Mouse Message Pin
Stefan Troschuetz7-Jul-06 22:03
Stefan Troschuetz7-Jul-06 22:03 
QuestionRead data from datagrid Pin
ujupanmester7-Jul-06 13:37
ujupanmester7-Jul-06 13:37 
Questioncode Form within a code Form Pin
Glen Harvy7-Jul-06 12:55
Glen Harvy7-Jul-06 12:55 
AnswerRe: code Form within a code Form Pin
Not Active7-Jul-06 13:31
mentorNot Active7-Jul-06 13:31 
AnswerRe: code Form within a code Form Pin
Robert Rohde8-Jul-06 12:27
Robert Rohde8-Jul-06 12:27 
GeneralRe: code Form within a code Form Pin
Glen Harvy8-Jul-06 16:30
Glen Harvy8-Jul-06 16:30 
QuestionHow to catch a security exception within Remoting.Config(...) Pin
2bee 7-Jul-06 11:17
2bee 7-Jul-06 11:17 
Hello,

well, i have been checking this over and over again, but i am still unable to catch this exception:

System.Security.Principal.IdentityNotMappedException.

This exception is thrown when i use an incorrect authorizedGroup attribute
within my application config. Surely it's right that i get an exception when i specify a group that
doesn't exist but at least i should be able to catch it, shouldnt i?

try
{

  RemotingConfiguration.Configure(".\\MyApp.exe.config", false);

}
catch (Exception)
{}
 
 
app.config
 
<channels>
  <channel ref="ipc" portName="MyAppPort" authorizedGroup="IIS_WPG">
    <serverProviders>
      <<formatter ref="binary" typeFilterLevel="Full" />
    </serverProviders>
  </channel>
</channels>


However i assume that i can't catch this excpetion because RemotingConfiguration is running
in another (application?)context. Furthermore my application is doing fine. The only thing that bothers me is that
cannot catch this exception when a nonexistent group is specified.

If someone has an idea how to catch this exception, then please let me know.
I would really really appreciate it.

best regards Tobias Big Grin | :-D
AnswerLook at the stack trace in the exception? Pin
Ennis Ray Lynch, Jr.7-Jul-06 11:24
Ennis Ray Lynch, Jr.7-Jul-06 11:24 
GeneralRe: Look at the stack trace in the exception? [modified] Pin
2bee 7-Jul-06 11:36
2bee 7-Jul-06 11:36 
GeneralThe app config file you posted isn't valid Pin
Ennis Ray Lynch, Jr.7-Jul-06 11:58
Ennis Ray Lynch, Jr.7-Jul-06 11:58 
GeneralRe: The app config file you posted isn't valid Pin
2bee 7-Jul-06 13:04
2bee 7-Jul-06 13:04 
QuestionHow to change the toolbar background color? Pin
Rogenator7-Jul-06 9:17
Rogenator7-Jul-06 9:17 
QuestionPassing variable Pin
Chris McGlothen7-Jul-06 8:23
Chris McGlothen7-Jul-06 8:23 
AnswerRe: Passing variable Pin
Ennis Ray Lynch, Jr.7-Jul-06 8:52
Ennis Ray Lynch, Jr.7-Jul-06 8:52 
GeneralRe: Passing variable Pin
Chris McGlothen7-Jul-06 11:16
Chris McGlothen7-Jul-06 11:16 
AnswerRe: Passing variable Pin
Guffa7-Jul-06 10:59
Guffa7-Jul-06 10:59 
GeneralRe: Passing variable Pin
Chris McGlothen7-Jul-06 11:19
Chris McGlothen7-Jul-06 11:19 
QuestionSent SMTP message via Resent-To headers Pin
mube.co.uk7-Jul-06 7:39
mube.co.uk7-Jul-06 7:39 
QuestionNo update of ListBox after DataSourceChanged Pin
Csharper20067-Jul-06 7:14
Csharper20067-Jul-06 7:14 
AnswerI think it is a VS bug Pin
Ennis Ray Lynch, Jr.7-Jul-06 8:15
Ennis Ray Lynch, Jr.7-Jul-06 8:15 
GeneralRe: I think it is a VS bug Pin
Josh Smith7-Jul-06 8:27
Josh Smith7-Jul-06 8:27 
GeneralThat makes sense Pin
Ennis Ray Lynch, Jr.7-Jul-06 8:35
Ennis Ray Lynch, Jr.7-Jul-06 8:35 
QuestionText Won't Show in MessageBox Pin
MartyExodus7-Jul-06 5:46
MartyExodus7-Jul-06 5:46 
AnswerRe: Text Won't Show in MessageBox Pin
Jun Du7-Jul-06 6:17
Jun Du7-Jul-06 6:17 

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.