My problem is still not solved, i put some details here .Net applet and WebPermission
TheDen
Posts
-
.Net applet and WebPermission -
.Net applet and WebPermissionI've found the problem - my assembly calls web-method and loads image from another host. I suppose i should write something to web.config on that very server. can you say what? Also what's the purpose of .Assert(), when i do this:new SecurityPermission(SecurityPermissionFlag.AllFlags).Assert(); before the method that loads image, i get this kind of exception: "System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission... Can the user somehow allow this activitiy for this particular app? like saying "Allow this app to do this un-secure activity? Yes\No", or i should always create the Code group for this assembly?
-
.Net applet and WebPermissionThe problem is, i'm giving permissions on the clients. I've found this link Common Issue: Security Exceptions It might help, for those guys that facing the same problem
-
.Net applet and WebPermissionHello, i've made an applet on .Net 1.1, it's uploaded here:http://arkafon.com/test.html the applet is Image editor that needs to have the ability to call the Web-Services, as well as load image from the server. During the initial start it automatically does both of this and i get: System.Security.SecurityException: Request for the permission of type System.Net.WebPermission I go to the .Net Configuration 1.1 applet, and do each of these: a) click on "Trust assembly" and put the full paht to my assembly "http://arkafon.com/ImageEditor.dll" b) add proper code groups to enterprise\machine\user levels, and tight either to strong name or url, or whatever none of these approaches doesn't help, what should i do? can it be caused by my hoster, should i add something to the web.config file? I try to Evaluate Assembly and it's written that i have unRestricted rights. THanks for help
-
Automatic comments generatorHi, i faced such a problem. I have a web site (ASP.NET C# built with code-behind approach) with a number (more than 300) web-controls. Now i have to document all of this mass. Is there any tool that will do following (just for example) In the very beginning of the file puts: ///... before every single class: // This is class CLASSNAME and it does blah-blah.... Before each mehtod /// This is method MethodName thad does blahblah //it has params ParamName Thanks for advice.
-
Giving Permissions to assemblyHI, i've explained my problem earlier - http://codeproject.com/script/comments/forums.asp?forumid=1650&fr=26&select=1320834#xx1320834xx. Here it's briefly. i have an assembly that is put there: http://195.234.68.210/Test/index.html http://195.234.68.210/Test/ImageEditor.dll I add the code group to the "Runtime security policy" node in .Net configuration 1.1 applet like it's discussed here: http://www.developer.com/security/article.php/11580\_3483866\_1 But my applet still requests for the permissions: UIPermission, WebPermission while it was already added. This page will be given to many users - and i will probably need to give them deployment package or whatever. but still i can't tune this to fun on 1 pc How should I trust this assembly? Thanks for help. I'm also ruzzled-duzzled. in the exception box it's shown PublicKeyToken=b77a5c561934e089 failed. while sn -Tp ImageEditor.dll produces: Microsoft (R) .NET Framework Strong Name Utility Version 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Public key is 0024000004800000940000000602000000240000525341310004000001000100931a11a77ea931 e6dbcc2747b1589b9c0e7076f915e3af354131e51ae6735d224d2cfcf43b67bdab7f3da769c8d4 aa6abfdb2ed78c2275167a021e6f33a59af01142404b5b98992db1dc2c3f2b93d68519c0e58af1 7cf586326c3449e93558348060b6152356c2215113940924fe2da127cbea5831657b6957b9757e 7f962bb9 Public key token is 3d6337e9d618e58d
-
Giving UIPermissions to the .Net appletthe applet is not loaded to the GAC, it's loaded to some temporary internet cache. gacutil /ldl - list all utils from downloaded chache. i'm still wondering how to do that
-
Giving UIPermissions to the .Net appletHi 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: 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)
-
Can anybody recomend books?Hello, Michael THere are too many :)). I just need some Marketing (IT) and Team-Management ones. Once i've heard about big names up there in marketing, but i can't say what are the names (not the Gates or Jobs :) )
-
Dotted line and Paint Bucket tool (Winforms)Hello, i'm doing sort of graphics editor. I'm stunned with how to implement 2 things a) draw a dotted line, or whatever not-solid b) make a paint bucket tool - where i can fill closed curve, drawn with different primitives
-
Can anybody recomend books?Hello, i just want to buy some books for our team. We do software and web-development, will start selling services and products in a month, so it would be nice to read about: Management, IT-Management, Project(team)-Management, SEO, ASP/C#/whateve books, WEB|UI Design Thanks for help
-
Security permisions for unmanaged code in .Net AppletDavid, Great thanks for help
-
Security permisions for unmanaged code in .Net Appletdnewmon, GREAT thanks - your solution killed few another rabbits :) I have only one problem - Eraser tool. So, assuming, i have the Bitmap - with the Transperent background. I draw on this Bitmap primitives - i want to be able somehow to erase their parts. Let's say i draw few lines, DrawLine(pen,1,1,100,100); DrawLine(pen,10,10,100,100); and want them to dissapear in the Rectangle(90,90,10,10); How can i do that? Is the Bitmap::LockBits method relevant? great 10x
-
Security permisions for unmanaged code in .Net AppletI'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 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
-
Making Stealth Input (hide from keyloggers)Hello, I'm writing sort of secure application for keystroke input. I want to make it hidden to existing key-logger systems. I made "anti-hook" Application - but then figured out that some of the keyLoggers, like: http://www.amplusnet.com/products/stealthkeylogger/overview.htm But this one doesn't see the Window's one VirtualKeyboard I have no clue how implement that. have any one clue how to do that?
-
Looking for scheduling control (Outlook2003 like)Good day For my application that deals with the scheduling routine i need some control like we have in Outlook 2003 in Calendar menu: The yellow one, with the horizontal line that shows the hour periods, and the rectangles put on it with some text. Have anybody done this, or know where i can find - please reply Otherwise i have to design it from scratch :( Great thanks, Denis P.S. reply to theden@yandex.ru
-
Deleting resouce problemhi, i want to delete the resouce in such a way: UpdateResource( m_hModule, "MY_RES_TYPE", MAKEINTRESOURCE( IDR_MY_RES1 ), MAKELANGID( LANG_NEUTRAL, SUBLANG_NEUTRAL ) , NULL, 0 ); MSDN: If lpData is NULL, the specified resource is deleted from the executable file. GetLastError ===87 — The parameter is incorrect. How can i handle this??? If i do this: UpdateResource( m_hModule, "MY_RES_TYPE", MAKEINTRESOURCE( IDR_MY_RES1 ), MAKELANGID( LANG_NEUTRAL, SUBLANG_NEUTRAL ) , lpData, 1 ); UpdateResource( m_hModule, "MY_RES_TYPE", MAKEINTRESOURCE( IDR_MY_RES1 ), MAKELANGID( LANG_NEUTRAL, SUBLANG_NEUTRAL ) , NULL, 0 ); everything's going OK but resouce isn't deleted.
-
Tooltips in the MenuBut look I've got the menu where different links shown for each user like Bob -> LInk 1 LInk 2 Charlie - > LInk3 Link4 All this is done by the menu And to provide a simple Tooltips on this menu I should refactor all the code done, Like conver sub-menus to list-views and display them in the proper pos is it the easiest way???
-
Tooltips in the MenuI have the menu similar to the IE Favorites and want to display Tooltips with the url when selecting the menuItem ToolTip class is not capable to do that Can anybody gimme a hand Writing on C# in the VS2003
-
MenuItems and TooltipsCurrently arranging sort of favorites menu. faced some problems with the tooltips over the MenuItem. The problem is: I've got context menu with banch of MenuItems that are generated dynamically. each is MenuItem child class with few additional fields e.g. URL. this url should be displayed when i hold the mouse over item. Tried Tooltip class but can't use MenuItem with its SetTooltip method, cause menuItem is not a control class. Q:how can i handle Tooltips over my menuItems like in IE favorites menu?