Archived Months
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007


all groups > dotnet security > june 2006

Filter by week: 1 2 3 4 5

ConnectionStrings encryption
Posted by paulo at 6/30/2006 5:13:10 PM
Hello, I just found the following article on how to encrypt connection strings in .config files with .NET 2.0: http://msdn2.microsoft.com/en-us/library/dtkwfdky.aspx However it focus on ASP.NET applications, and I also want to do it in Windows Forms applications. Is this possible? Could...more >>

Re: How to - PKCS#7 in c#
Posted by kplkumar at 6/30/2006 9:54:44 AM
Thanks for the reply. But can you tell me if PKCS #7 is used only for signing the message or is it also used to encrypt the message before signing it? Can you point me to some examples where the above is done? Thanks in adavance. ...more >>

How to - PKCS#7 in c#
Posted by kplkumar at 6/30/2006 8:03:25 AM
Hi I am new to cryptography. Our application is supposed to send out an XML message to an external system. The requirement is to encrypt it with PKCS#7? How do I do this in c# code. I could not find any examples. Thanks in advance. ...more >>

HTTPS and authentication credentials
Posted by alanw via DotNetMonster.com at 6/30/2006 2:37:15 AM
My Windows forms client application (written in C#.NET) needs to be able to connect to a web service regardless of the configuration of the proxy server it goes through. I am using the following code to achieve this: IWebProxy iwp20 = WebRequest.DefaultWebProxy; iwp20.Credentials =...more >>

CheckSignature & Revocation Server
Posted by Sadeq at 6/29/2006 11:44:07 AM
I want to use CheckSignature function of SignedCms class to verify the signature of a CMS. I also want the function to verify the certificate chain to see if the signer is trusted. So I call the function with 'false' as parameter: SignedCms signedCms = new SignedCms(); .... signedCms.CheckSi...more >>

How to: check for firewall blocking?
Posted by Rob R. Ainscough at 6/29/2006 10:16:42 AM
Is there a way to check to see if a firewall is going to block my apps communication? .NET 2.0 I've seen some more recent Microsoft games that were able to test for blocking and then prompt the user if they would like to add the application to the "unblock list". This functionality is wha...more >>

Deploying Framework 2.0 application to a network location
Posted by James at 6/27/2006 7:05:58 PM
Well lucky old me has managed to write the first dotnet Windows Form application for our company. (VB.Net Framework 2.0) After a month of coding I attempt to deploy the project to a Windows2003 server and execute it from my local machine. Of course it doesn't work :-) The error: "Reque...more >>

AzMan connection problems
Posted by bigbrorpi NO[at]SPAM gmail.com at 6/27/2006 6:56:33 AM
Hi I have an ASP .NET 2.0 app connecting to an ADAM AzMan Store on a DC. I tested this from my machine and it worked fine. When I moved the app to a server, I get an error when it tries to initialize the AzManStore: The system cannot open the device or file specified (Exception from HRESULT: ...more >>



Certification Authority, code signing, code access
Posted by Eugene at 6/27/2006 2:59:02 AM
Hi, can I configure/program my vb.net exe/dll to trust on only a particular Certification Authority (CA)? For example, I would create a new CA, it would certainly those dlls that I created. Then, my exe would trust only this CA, thus only those dlls that I created. What I want to do is to p...more >>

Loading permission sets
Posted by John Wood at 6/26/2006 9:12:03 PM
Hi all, Is there any way to load a System.Security.PermissionSet with all the permissions that are defined in the runtime security policy for a specific zone? For example I want to set up an application to simulate running in a browser, so I want it to be set up with all the permissions def...more >>

Kerberos and forms authentication
Posted by paal.andreassen NO[at]SPAM gmail.com at 6/26/2006 1:32:48 PM
We have a multi tier application spread over multiple servers. As pr today the clients (IE 6) have used Integrated (NTLM) autentication against IIS running the presentation layer. Each layer is communicating with the next layer using WSE3 web services. We are using kerberos for delegated authent...more >>

Proxy server authentication
Posted by alanw at 6/25/2006 11:55:41 PM
I am developing a C#.NET Windows forms client-server application. The client software needs to be able to access the server software regardless of the proxy server configuration of the machine on which the client runs. Using the following code, the client can access the server via any proxy serve...more >>

Programmatically Install Certificate into Windows Certificate Store
Posted by Brad at 6/23/2006 12:59:40 PM
I have a Personal Information Exchange PCKS #12 certificate file that requires a password when manually installing. This certificate was issued by a 3rd party company I need to communicate with via https. Initially I exported the PCKS #12 certificate to DER encoded binary X.509 certificate and ...more >>

At What Point Does the Security Begin?
Posted by salty at 6/23/2006 7:29:02 AM
If an ASP.NET page with the usual username and password fields is not secure (it's called at http, not https) but posts to a page through https that does the username/password lookups, is this process secure? Or do both pages need to be going through https? In other words: http://mydoma...more >>

IDentifiy user acl on a folder ????
Posted by serge calderara at 6/22/2006 5:53:01 AM
Dear all, How can I identify if the current logged in user have WRITE access on aprticular folder ? then if it not the case force it to have it thanks for your answer regards serge...more >>

Help : Access denied ???
Posted by serge calderara at 6/22/2006 2:45:02 AM
Dear all, I have a windows application that can be use by any user. In order to check my applciation least priviledge i nee to be sure that my applciation runs correctly with minimum rights. One phase of my appliction is that it store some log information in a file whatever the user logg...more >>

permission for socket access
Posted by Rain at 6/21/2006 9:09:02 PM
Hi, i only need to make the scoket access unrestricted and nothing else. How do i do this in an xml which i will be using in adding a permission set using caspol? <PermissionSet class="System.Security.NamedPermissionSet" version="1"> <Permission class="System.Net.SocketPermissionAttribute, m...more >>

Active Directory and ASP.NET 2.0
Posted by NancyA at 6/21/2006 11:30:01 AM
Hi - I am successfully able to retrieve tokenGroups data for a given sAmAccountName from a .NET 2.0 web page. However, I'm still in test mode on my own machine. What will I need to do to access AD from the web page when it goes out on a corporate IIS server? Do I need to use a specific ac...more >>

Where to store log file ?
Posted by serge calderara at 6/20/2006 5:02:01 AM
Dear all, I have build a WIndows application that is deployed under 2000 or XP workstation. If I set to 1 the entry in <Diagnostics> elements of App.config file, then it generates log file entry under a LOG folder located below the Installation Folder in Program File. Now problem comes ...more >>

Need advise...
Posted by serge calderara at 6/20/2006 2:01:02 AM
Dear all, I have a windows application with a Windows login dialog which is used to handle different specific users different that Windows login users. When I start my application I get a security exception when I am loged in as a Restricted Windows user. The generated exception is normal be...more >>

Security settings for Folder
Posted by Tinu at 6/19/2006 4:55:33 PM
Hi, I am using below code to give access to a user but when I check in explorer only "Special Permission' is checked instead of "FullControl"? DirectoryInfo di = Directory.CreateDirectory("C:\\zDeleteMe"); DirectorySecurity dSecurity = di.GetAccessControl(); // Add the FileSystem...more >>

Check if a key exists in a CSP with a specific containerName
Posted by Vincent RICHOMME at 6/19/2006 4:26:33 PM
Hi, I am trying to developp an admin application permitting me to rerieve passwords from users. (their password is encrypted by a public key and they send me the file) First time the application starts, I have to generate a key pair. So my question is how can I know if a key already exists...more >>

Bad Data with DES Decryption
Posted by Steve Telford at 6/18/2006 9:03:02 PM
Hello everyone, I am using the following class to encrypt/decrypt a string using C# in .NET Framework 2.0. When I call decrypt (in testing, straight after calling encrypt) I get a 'Bad Data' Cryptographic Exception. Can anyone offer any advice as to where I may be going wrong? Thanks in ...more >>

reinstalling Norton Internet Security
Posted by Karen Nelson at 6/17/2006 10:12:01 AM
Had to do a system recovery, now I cannot reinstall my security, any suggestions...more >>

[assembly: SecurityPermission] question
Posted by Lloyd Dupont at 6/17/2006 12:00:00 AM
FxCop advise me to assign some security to my library, with this warning: http://www.gotdotnet.com/team/fxcop/docs/rules.aspx?version=1.35&url=/Usage/AssembliesShouldDeclareMinimumSecurity.html I should confess that I have little knowledge about this, never done it before. And I face the fo...more >>

https and httplistener
Posted by Rok at 6/16/2006 8:15:29 PM
Hi, I have written a small web server using the HttpListener from .NET framework 2.0. What I cannot get him to do is communicate over ssl. Apparently I don't have to do anything in my code besides setting the HttpListener to listen to https://localhost/ instead of http:/localhost/. I have cr...more >>

Microsoft CryptoAPI CSP Availability
Posted by Kristen Benjamin at 6/16/2006 2:14:29 PM
I recently bought a laptop that has Windows XP Professional SP2. I was surprised to discover that algorithms under Outlook didn't include SHA1 or 3DES, which seem to be the minimum 'lingua franca' for strong crypto. I looked up the suported algorithms in the CryptoAPI, and found reference to add...more >>

Import SIMPLEBLOB session key into .NET?
Posted by VictorG at 6/15/2006 10:24:34 PM
Hello, Having trouble importing a SIMPLEBLOB AES 128 bit session key that was exported from CryptExportKey(...) in CAPI. Using a machine wide key container. CAPI Code snippet: // Determine size of the key BLOB, and allocate memory. if(!CryptExportKey(hKey, hPubKey, SIMPLEBLOB, CRYPT_OAEP,...more >>

windows authentication with custom role
Posted by zino at 6/15/2006 2:03:02 PM
how can set the asp.net 2 application to authenticate user using windows integrated authetication with a single signon, with a custom role independant from the user domain role. (role might be stored in SQL server) any artcile would be greatly helpfull. ...more >>

Trust relationship exception
Posted by Edo at 6/15/2006 12:07:01 PM
Hi All, This code has been working all right for a couple of days, but suddenly I'm getting the error detailed later (C#): System.Security.Principal.WindowsIdentity ui; System.Security.Principal.WindowsPrincipal up; ui = System.Security.Principal.WindowsIdentity.GetCurrent(); up = new Sy...more >>

how to protect my codes
Posted by zeeway at 6/15/2006 12:00:00 AM
hi,every one! I have an urgent question. My codes need to be published now,but I learn programs produced with .net are very easy to be reverse-engineered. Could anyone give me some sugguestions to protect my c# codes? Crespo 2006-06-15 ...more >>

Strange behavior or where is SecurityException?
Posted by Sneil at 6/13/2006 11:56:06 PM
Just simple code: using System; using System.Reflection; using System.Security.Permissions; [assembly : ReflectionPermission(SecurityAction.RequestRefuse, Flags=ReflectionPermissionFlag.AllFlags)] namespace UseReflect { public class Program { public static void Main(s...more >>

Mapping AZMAN to our existing security Design, Scenario?
Posted by Vijay Varma at 6/12/2006 8:14:02 AM
Hi, Our applications are running under visual basic 6 and SQL Server.Security for these applications like user,roles,groups and object permissions are been stored in sqlserver and checked through the application.We have our dynamic menu which is been stored in SQL Server and displayed dynamic...more >>

SecurityAction.Demand Fails in Asp.Net 2.0 N-Tier Environment
Posted by Lee at 6/9/2006 6:12:45 AM
After a great deal of research and investigation I must concede defeat and ask the help of the experts. In ASP.Net 1.1 I used to attach roles to the current context in the AuthenticateRequest event as such: protected void Application_AuthenticateRequest(Object sender, EventArgs e) { // p...more >>

Reading - Parsing Records From An LDAP LDIF File In .Net?
Posted by Jean-Marie Vaneskahian at 6/8/2006 10:18:39 PM
Reading - Parsing Records From An LDAP LDIF File In .Net? I am in need of a .Net class that will allow for the parsing of a LDAP LDIF file. An LDIF file is the standard format for representing LDAP objects. I need to be able to read the records from an LDIF file into ..Net. There exists a...more >>

Framework 2.0 vs Framework 2.0 SDK problem
Posted by Dikbill at 6/8/2006 3:09:54 PM
Hi there, I have an application with exists out of 1 exe with lots of referenced dll's. The application is on a shared network drive, and then started from the client. It'is made an compiled in VS 2005 and running on Windows XP machines with SP2 and the latest updates. The executable work...more >>

Issue implementing CAS/Strong Naming in n-TierApplication
Posted by msnews.microsoft.com at 6/6/2006 6:23:30 PM
Platform: VB.Net/1.1/Winforms My application consists of standard layers: WindowsUI, BLL, OdbcDAL, Data Model and Interface for DAL I am trying to invoke the application from a network drive. I have given strong name to all the assemblies (Same .snk file). I have provided the required attr...more >>

What encryption algorithm is used by NegotiateStream?
Posted by Gary Feldman at 6/5/2006 1:37:01 PM
Does anyone know which encryption algorithm is used by NegotiateStream for encrypting the content? I can't find this anywhere in the documentation. And how long is the key, if that's not implied by the algorithm? Thanks, ...more >>

Urgent help required
Posted by Swati at 6/5/2006 12:00:00 AM
Hi All, I am new bie to RSA. I am trying to use the RSA for my requirement of handling the license management. My requirement is as below: I want to issue a license to the client. The license will be generated by a desktop application using .Net 2.0 and client will have another desktop a...more >>

Custom CAS permission...
Posted by Pieter Philippaerts at 6/3/2006 9:05:06 PM
Hi there, I've created a custom CAS permission in my .NET 2.0 application, but I'm having some problems to get it to work properly. I've based the design of my code on the article at http://msdn2.microsoft.com/en-us/library/yctbsyf4(VS.80).aspx Everything seems to be in order and pretty mu...more >>

3des bad data in web farm environment
Posted by molchair NO[at]SPAM gmail.com at 6/3/2006 9:31:32 AM
I am currently using 3des in a web farm environment to generate a token that is sent to and from our partner application. The IV and key are stored in the web.config file and are deployed to 6 servers along with the encryption / decryption code. When our partner application sends back the toke...more >>

How to start a application from Network-Folder?
Posted by nieurig at 6/2/2006 2:09:01 PM
Hi Folks, we write a lot of small intern applications using VS 2005 (2.0 Framework). Each application works if we copy the needed .exe and .dll to the client computer drives. If we start them from a folder located a the server we get an error massage. Now we try to find a simple way to se...more >>

can't load CSP under asp.net
Posted by Eric Pearson at 6/2/2006 12:15:13 PM
(please read this before posting the regular kb, I AM using the UseMachineKeyStore flag) I've tried the workaround in http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322371 I have the following code that runs on a client and in a webservice, 1.1 CLR. CspParameters parms = new CspPa...more >>

Triple DES Bad Data Error Please Help!!!!
Posted by cmureithi NO[at]SPAM procuri.com at 6/2/2006 11:39:28 AM
I'm working on decypting Java encrypted text using TripleDES. Below is the algorithm submitted by the producer of the ciher text: Things needed for the consumer (vendor) 1) String used to generate the key and also the algorithm used to generate the key Algorithm for generating the key --...more >>

How to make SSL work for .NET 2.0 web apps
Posted by Rob R. Ainscough at 6/1/2006 7:29:00 PM
I've successfully installed my Verising SSL pro certification on my web server, but I'm not sure how to force IIS to use SSL on my deployed web app residing on that server? Any hints? what I currently have is www.myDomain.com works but issues a security warning from IE but my site still ...more >>

Adult Verrifaction
Posted by Jeffrey Bond at 6/1/2006 1:30:01 PM
I had already put my debit card number to let my child use Microsoft messenger but it wont let him in....more >>

SecurityException when creating OleDbConnection
Posted by Achim Domma at 6/1/2006 10:04:32 AM
Hi, I develop a sharepoint web part which access a database via OleDbConnection. In my IIS trust file I have defined the permissions like this: <SecurityClasses> .... <SecurityClass Name="OleDbPermission" Description="System.Data.OleDb.OleDbPermission, System.Data,Version=1.0.5...more >>


DevelopmentNow Blog