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

.NET (Core and Framework)

 
GeneralRe: Excellent .NET Resource Pin
Ray Cassick5-Dec-05 8:04
Ray Cassick5-Dec-05 8:04 
GeneralRe: Excellent .NET Resource Pin
Faraz Ahmed5-Dec-05 23:58
Faraz Ahmed5-Dec-05 23:58 
GeneralRe: Excellent .NET Resource Pin
Ray Cassick6-Dec-05 5:44
Ray Cassick6-Dec-05 5:44 
QuestionRADIUS authentication Pin
JKroschel5-Dec-05 4:16
JKroschel5-Dec-05 4:16 
QuestionDeployment Problem Pin
fasttaxi4-Dec-05 23:08
fasttaxi4-Dec-05 23:08 
QuestionHaving trouble with pInvoke, weird behavior. Pin
dxben3-Dec-05 16:11
dxben3-Dec-05 16:11 
AnswerRe: Having trouble with pInvoke, weird behavior. Pin
dnewmon5-Dec-05 7:42
dnewmon5-Dec-05 7:42 
QuestionSecurity permisions for unmanaged code in .Net Applet Pin
TheDen3-Dec-05 4:43
TheDen3-Dec-05 4:43 
I'm developing - simple graphics editor, that should be placed on the web-site.
It downloads the picture from the MSSQL server (i do this via WebService),
edits this picture (putting some lines, dots, whatever), and than uploads changes to server.
Since 2 part are ready, i have a terrible headache about the lastthing.

The problem is:
I draw primitives using Graphics, since this class don't know how to save the image drawn -
I have to use unmanaged code to save it (BitBlt and stuff).

Everything works ok, if it's standalone application - but i MUST use it as Applet,so there is a SecurityPermision
Exception is raised when i'm trying to do unmanaged code.
I tried to add the signature to the dll (sn -k), but somewhy IE doesn't want to load this applet.
As far as i know, if user adds my DLL's public key to the trusted list - i can do unmanaged code (where he should put it).

So the questions are:
a) How i can save the image with drawn primitives
(actually i need a stream to it, to upload to the server) using managed code
b) How should add sign a dll, to let IE show it
c) How should user add this to his trusted Assemblies list


Here are the source codes:
index.html

<object id="upload1" classid="IEControlv2.dll#IEControlv2.UserControl1" width="800" height="300" style="font-size:12;">
<param name="UserName" value="MyName" />



IEControlv2.cs (windows control)
new SecurityPermission(SecurityPermissionFlag.AllFlags).Assert();
CreateBitmapFromGraphics(gr,1,1,100,100); <---unmanaged code, where exception is raised.
CodeAccessPermission.RevertAssert();



P.s. the .Net is 1.1 version
AnswerRe: Security permisions for unmanaged code in .Net Applet Pin
dnewmon3-Dec-05 8:58
dnewmon3-Dec-05 8:58 
GeneralRe: Security permisions for unmanaged code in .Net Applet Pin
TheDen3-Dec-05 9:36
TheDen3-Dec-05 9:36 
GeneralRe: Security permisions for unmanaged code in .Net Applet Pin
dnewmon3-Dec-05 10:02
dnewmon3-Dec-05 10:02 
GeneralRe: Security permisions for unmanaged code in .Net Applet Pin
TheDen3-Dec-05 10:17
TheDen3-Dec-05 10:17 
QuestionInstalling J# Redistrubutable Silently Pin
Farm Developer3-Dec-05 1:36
Farm Developer3-Dec-05 1:36 
Question.NET SDK Question Pin
akyriako782-Dec-05 21:55
akyriako782-Dec-05 21:55 
AnswerRe: .NET SDK Question Pin
Dave Kreskowiak3-Dec-05 4:03
mveDave Kreskowiak3-Dec-05 4:03 
AnswerRe: .NET SDK Question Pin
André Ziegler3-Dec-05 8:29
André Ziegler3-Dec-05 8:29 
QuestionVSTO excel locking Pin
Drew McGhie2-Dec-05 7:13
Drew McGhie2-Dec-05 7:13 
Questioni need a coding for converting text to speech Pin
dotnetkoders1-Dec-05 23:34
dotnetkoders1-Dec-05 23:34 
AnswerRe: i need a coding for converting text to speech Pin
jonathan152-Dec-05 2:36
jonathan152-Dec-05 2:36 
GeneralRe: i need a coding for converting text to speech Pin
Colin Angus Mackay3-Dec-05 10:04
Colin Angus Mackay3-Dec-05 10:04 
GeneralRe: i need a coding for converting text to speech Pin
Yuvi Panda9-Dec-05 16:18
Yuvi Panda9-Dec-05 16:18 
QuestionVSTO (Save as Version Word 2000) Pin
krisp1-Dec-05 14:56
krisp1-Dec-05 14:56 
QuestionNested classes and dialogs Pin
LHBalloti1-Dec-05 11:11
LHBalloti1-Dec-05 11:11 
AnswerRe: Nested classes and dialogs Pin
S. Senthil Kumar2-Dec-05 21:32
S. Senthil Kumar2-Dec-05 21:32 
QuestionATL Server Web Service Pin
linuxfreak1-Dec-05 7:31
linuxfreak1-Dec-05 7:31 

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.