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

.NET (Core and Framework)

 
AnswerRe: Send SMS From Within My PC Pin
mikailcetinkaya2-Jan-06 21:24
mikailcetinkaya2-Jan-06 21:24 
QuestionURL parsing Pin
Ravi Bhavnani31-Dec-05 12:50
professionalRavi Bhavnani31-Dec-05 12:50 
AnswerRe: URL parsing Pin
leppie31-Dec-05 13:33
leppie31-Dec-05 13:33 
GeneralRe: URL parsing Pin
Ravi Bhavnani31-Dec-05 13:35
professionalRavi Bhavnani31-Dec-05 13:35 
QuestionAssembly.Load() Pin
HakunaMatada31-Dec-05 1:05
HakunaMatada31-Dec-05 1:05 
AnswerRe: Assembly.Load() Pin
Gerben Jongerius31-Dec-05 1:21
Gerben Jongerius31-Dec-05 1:21 
GeneralRe: Assembly.Load() Pin
HakunaMatada31-Dec-05 1:39
HakunaMatada31-Dec-05 1:39 
QuestionGiving UIPermissions to the .Net applet Pin
TheDen30-Dec-05 5:29
TheDen30-Dec-05 5:29 
Hi everyone. i've written Photo editor. Currently it is WindowsApp.
I need to put it on the site. It's done by putting original APP to the WinControl.
And that dll can be used on the site, like:

<object id="ImageEditor" classid="ImageEditor.dll#ImageEditor.ImageEditor">


The problem first big problem - is that i can't use unmanaged code, i needed to put some UnmanagedCode permissions.
I've made big changes to the logic of it - and it doesn't use unmanaged code no more.

Onve i've finished convertion app to Control, i found that new permissions should be given:

Request of the Permission of type
System.Security.Permissions.UIPermissions (details in the end)

This is done when i use mouse (clicking on the workspace), when i'm changing the font - it appears after the standard dialog is closed.

From this point i need to solve this problem somehow.

I've tried to put the AssemblyKeyFile - but when i do that, applet isn't loaded at all.
Somewhere i've read that client that will use this editor needs to put PublicKeyToken to his trusted keys - but i can't find where do i put that.

Have anybody got some ideas of how to handle that?

Thanks for help.



Details of exception

System.Security.SecurityException: Request for the permission of type System.Security.Permissions.UIPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.Windows.Forms.Control.Focus()
at ImageEditor.ImageEditor.pFore_MouseDown(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
AnswerRe: Giving UIPermissions to the .Net applet Pin
mikailcetinkaya2-Jan-06 21:36
mikailcetinkaya2-Jan-06 21:36 
GeneralRe: Giving UIPermissions to the .Net applet Pin
TheDen2-Jan-06 23:02
TheDen2-Jan-06 23:02 
Questionhow to override the button draw event? Pin
Sasuko29-Dec-05 23:37
Sasuko29-Dec-05 23:37 
QuestionProtecting Controls Pin
ProffK29-Dec-05 23:30
ProffK29-Dec-05 23:30 
QuestionInvalid DNS records Pin
fegf29-Dec-05 22:45
fegf29-Dec-05 22:45 
QuestionDon't need to appear Installer dialog window while installing/uninstalling windows application Pin
harikrishna_mit29-Dec-05 19:36
harikrishna_mit29-Dec-05 19:36 
AnswerRe: Don't need to appear Installer dialog window while installing/uninstalling windows application Pin
S. Akif Kamal30-Dec-05 21:30
S. Akif Kamal30-Dec-05 21:30 
QuestionOLEDB connection pooling Pin
faviochilo29-Dec-05 12:04
faviochilo29-Dec-05 12:04 
QuestionThreadStart Wrappers vs. State Pin
ProffK29-Dec-05 3:31
ProffK29-Dec-05 3:31 
AnswerRe: ThreadStart Wrappers vs. State Pin
S. Senthil Kumar2-Jan-06 5:13
S. Senthil Kumar2-Jan-06 5:13 
QuestionAborting thread in ThreadPool Class Pin
munshisoft29-Dec-05 0:46
munshisoft29-Dec-05 0:46 
AnswerRe: Aborting thread in ThreadPool Class Pin
mikailcetinkaya3-Jan-06 20:35
mikailcetinkaya3-Jan-06 20:35 
Questionwriting windows service Pin
pankaj b28-Dec-05 21:40
pankaj b28-Dec-05 21:40 
AnswerRe: writing windows service Pin
Colin Angus Mackay29-Dec-05 0:26
Colin Angus Mackay29-Dec-05 0:26 
QuestionFundamentals Pin
HakunaMatada28-Dec-05 19:38
HakunaMatada28-Dec-05 19:38 
AnswerRe: Fundamentals Pin
MF28-Dec-05 19:47
MF28-Dec-05 19:47 
AnswerRe: Fundamentals Pin
Colin Angus Mackay29-Dec-05 0:20
Colin Angus Mackay29-Dec-05 0:20 

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.