Groups | Blog | Home


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 > march 2006

Filter by week: 1 2 3 4 5

Gracefully stopping a .NET 2 app on .NET 1.1 fcl system
Posted by Mitch Gallant at 3/31/2006 7:41:52 AM
*Without* using a deployment/setup project, is there a graceful way of stopping a .NET 2 app. at start of execution on a .NET 1.1 fcl system? (or is it best just ot let the CLR (or PE .. CLR invoker) inform you ? - Mitch ...more >>

Encrypting connection strings across dev environment
Posted by Becky VanBruggen at 3/31/2006 6:35:02 AM
I'm in the process of trying to create a template ASP.NET 2.0 web site for all the developers in my group. I'd like to encrypt the connection strings for commonly used databases and put them in every developer's machine.config file. However, I'm not sure the best encryption to use. 1.) Do I...more >>

file permission on Windows 2003
Posted by beachboy at 3/31/2006 12:00:00 AM
i am writing a code for export data to excel, it is working smooth on windows 2000 platform. After I upload to windows 2003 server, FileInfo object always has problem: the FileInfo object can't access and always return "Access is denied" but i grant ASP.NET has write and modify permission an...more >>

Best practice SecureString and pswd collection
Posted by Mitch Gallant at 3/30/2006 8:49:48 AM
Using .NET 2 managed code only, what is the best that can be done security-wise in collecting a password from the user (as console or some pswd control dialog) and passing to a function (like X509Certificate.Import) which can accept a SecureString? What about pinvoking to access a secure pass...more >>

VB.NET Role-Based Access
Posted by Sauny at 3/30/2006 3:19:38 AM
Hi all, Am trying to implement some security on my program. This program will be run on a number of machines across the globe. I have created a number of user groups which contain the access priveleges of the windows users but as they are not builtin groups I cannot do as below! <Principa...more >>

Can I tell if a user came thru a secure site?
Posted by Sega at 3/29/2006 7:25:02 PM
My web app is not on a secure server. However, before getting to my app, a user is supposed to logon thru a secure server. Is there any way to tell that the user has been approved and is coming from the secure site rather than just typing the url in their browser? Is there any way to pa...more >>

Windows Service reg key access fails
Posted by John A Grandy at 3/29/2006 2:27:40 PM
I've built a .net 2.0 Windows Service that accesses a Registry key shortly after startup. On one XP Pro SP2 I build the service and referenced libs, deploys the servie, starts it up, and it runs fine. I transfer the service and libs to another XP Pro SP2 box , deploys it , starts it up ,...more >>

RSACryptoServiceProvider functioning differently in 2005 (vs.2003)
Posted by mfroman at 3/29/2006 12:48:03 PM
The following code works fine in VS2003 (.Net 1.1). However, in VS2005 (.Net 2.0) it throws a "Bad Data" exception on the decrypt line! (Although this example may seem pointless, it is just the pertinant lines from larger source code. It was consolidated to highlight the error). Is there...more >>



SecurityPermission problem
Posted by Itay Sandbank at 3/29/2006 6:26:02 AM
Hi. I'm trying to understand how to use CAS, and found something strange. I'm trying to deny my program of a few permissions to see what happens. I created a small program that creates the file c:\hello.txt and exits: [assembly: FileIOPermission(SecurityAction.RequestRefuse, ViewAndM...more >>

Strange problem with X509Certificate2 on Windows 2003
Posted by mira NO[at]SPAM utia.cas.cz at 3/29/2006 5:37:57 AM
Hi, I am loading a private .pfx key using the X509Certificate2 class by the following line X509Certificate2 x509 = new X509Certificate2(PrivateKeyFile, PrivateKeyPassword); where PrivateKeyFile and PrivateKeyPassword are strings. This perfectly works on my computer with windows XP home and...more >>

Security issue running unmanaged code in a win form ctrl hosted in
Posted by Filippo Bettinaglio at 3/29/2006 2:49:02 AM
Security problem running unmanaged code (.ocx control) in a windows from control hosted in IE6 Hi, I have design a windows from control which contain a .OCX in one of its forms. Component developed in C#2005 -------- .NET2 Now, the control is loaded successful via IIS in my web ...more >>

Problem using ASP.NET 2.0 Membership and Roles
Posted by Mark Riley at 3/29/2006 2:41:09 AM
Hi, I have set-up my web app to use ASP.NET 2.0 membership and roles. It works OK on my local Windows XP Professional PC but when I upload the site to our Windows 2003 development server it doesn't. The local and development server web sites both point to the same SQL Server 2005 database (loca...more >>

.NET app on a shared directory.
Posted by Lloyd Dupont at 3/29/2006 12:00:00 AM
I have written a .NET application which does heavy use of interop (through ManagedC++). It works allright. Now someone askedme if it works when installed in a shared directory. So I'm testing, installed the application on a remote computer, in a shared folder and trying to run it from this re...more >>

Trying to grant full trust..... (.NET 2.0)
Posted by Lloyd Dupont at 3/29/2006 12:00:00 AM
I have written an application which I have "installed" (copied) in a shared directory on some remote computer. Now I'm trying to run this application but I get plenty of SecurityException all over the places. I'm trying to use mscorcfg to grant full trust to the application, but that doesn't...more >>

Using SSPI with Custom Authentication
Posted by anonymous at 3/28/2006 3:46:02 PM
I'm currently working on a system that is made up of multiple Databases. The first database contains all of the user information; such as UerName, password (stored as a hash) etc... The other databases are used to provide different services, for example one of the databases may be used to s...more >>

Custom Security
Posted by source at 3/28/2006 1:33:34 PM
Is there a tutorial to create custom permissions and deploy/import it in Visual Studio IDE source ...more >>

Passwords and SecureString
Posted by dsellers at 3/28/2006 11:39:01 AM
I am building a generic Password object for my application and I am thinking of using an instance of SecureString as the backing value for the Password Instance. However, in order to compare it I have to serialize it to a string. So I feel like my password object should just auto hash the pass...more >>

if I encrypt key data why do I want or need SSL?
Posted by Rob R. Ainscough at 3/28/2006 8:46:24 AM
Just curious why people freak out about not having SSL and/or having a SQL Server port 1433 open. If I do the following why do I care about SSL or port 1433? 1. 40 character passwords for all SQL accounts 2. any sensitive data written to the SQL server is encrypted (via one of numerous ...more >>

Alternative to APTCA AllowPartiallyTrustedCallersAttribute?
Posted by Gary F. at 3/27/2006 7:12:02 PM
So I have the following situation: 0. I have a web app in an intranet setting. 1. I have a .Net 2.0 user control that i want to embed/host in IE. 2. It relies on a 3rd-party COM dll. 3. I've created an interop assembly around the DLL and gave it a strong name. 4. I've given my user control a...more >>

How to encrypt a string with ProtectedData (.NET 2.0)
Posted by Zemp Dominik at 3/27/2006 5:01:01 AM
Hi How can I encrypt a string with the new ProtectedData class in the .NET Framework 2.0? I have an example, but I receive always a 㣊 as output?!? Here's my code: Dim plainBytes As Byte() Dim encryptedBytes As Byte() Dim cipherText As String ' Conver...more >>

JavaScience CD versus book
Posted by Mitch Gallant at 3/26/2006 7:08:56 PM
As some of you may have noticed, the JavaScience web site is now offline (except for a basic home page). It has been suggested to me that I should author (or co-author) a book on the material therein (probably an "Interop Cookbook" type of publication). My initial thought was to simply sell th...more >>

Rights to get Data for Crystal reports
Posted by den 2005 at 3/26/2006 6:37:02 PM
Hi everybody, When I place data field into crystal report and then run the web application, it causes error with a message: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error...more >>

ClickOnce and remembering permissions granted
Posted by Mitch Gallant at 3/24/2006 6:19:18 PM
Are there any public examples of applications deployed by ClickOnce on the web? (preferably ones that have the deployoment manifest Authenticode-signed). Before deploying a few of my .NET 2 apps that way, I want to see what the GUI user experience looks like. Also, for elevated permissions ...more >>

Win Server 2003 permission denied
Posted by Jim Brandley at 3/24/2006 3:43:21 PM
Particulars: Wn Server 2003, DotNet 1.1 IIS 6 I have a web application that needs to determine a UNC of a file on the web server to send to another application server. I have developed two solutions, one using WNetGetUniversalName, and the other using NetShareEnum. Both work fine on an XP P...more >>

How do I deistinguis between a user and a group/role
Posted by AdrianDams at 3/24/2006 12:26:53 PM
I have an application in which I would like to add user accounts into an object. The user gets to type in the user they want added. I only want to do this for user accounts and not roles/groups. I am looking in security.Principal but cannot find a way of doing this. Is it possible? Adrian ...more >>

Newby question on digital signature
Posted by Ruben at 3/24/2006 11:00:02 AM
Hi, I need to digitally sign an XML document. I already hashed the string to be signed, but my problem is the private key is provided to my user in a "*.key" file (PKCS8), so my question is: how should I extract the private key from the file, in order to create the instance of the system.sec...more >>

Tightening the default CAS policy
Posted by Kurt at 3/24/2006 10:47:01 AM
One thing I noticed in first release of .NET is that programs stored on My Computer were granted fulltrust regardless its location effectivly equivelant to an unmanaged application. My thought is that assemblies in temp directories, my documents, etc, can in general be assumed to have come fr...more >>

SqlClientPermission
Posted by Peter Ramsebner at 3/23/2006 5:20:39 PM
Hi, i want to run my application from a network share. With the .Net Configuration Tool i changed the permissions of the localIntranet_zone to FullTrust. Without success: "The application attempted to perform an operation not allowed by the security policy.The operation required the Securit...more >>

Identifying group memberships for users authenticated with AD Trus
Posted by Yvan B. at 3/23/2006 11:46:36 AM
I have three Active Directory domains across two forests, Dom1 and Dom2 are in one forest, while Dom3 is in another. There are bidirectional trusts between Dom1 and Dom2, and there is a one way trust from Dom2 to Dom3. We have a users stored in Dom1, and Dom3, and those users are assigned to...more >>

Assembly Trust
Posted by Elio Gonzalez at 3/23/2006 10:00:00 AM
Hi, I'm currently deploying a 1.1 .net dll assembly which is installed on a shared folder on a file server along with a legacy application. The clients run the .exe from the server. The .exe calls the .net .dll via interop. In our environment we had to increase the trust for the as...more >>

bad encryption
Posted by Erez Mor at 3/22/2006 6:34:12 PM
hello experts i'm new to encryption so please... i think i've tried every piece of code out there that claims to encrypt/decrypt files the common thing about them all(and that is strange...) is that the proccess changes the file (in fact it adds 16 bytes to it, no matter if i encrypt or decr...more >>

How do I configure the CA in win 2003 server?
Posted by Parvez at 3/22/2006 1:34:20 AM
I need to configure a web server with CA and produce the public key .I have got no idea on doing it .Later i will have to send files from asp.net with digitaly signatured. I need help on this particular topic. Please Hep...more >>

are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient.SqlConnection instance without any synchronization
Posted by Daniel at 3/21/2006 9:59:05 PM
are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient.SqlConnection instance without any synchronization? ...more >>

GSSAPI bindings for C#/.NET
Posted by Ian at 3/21/2006 12:55:37 PM
All, I was able to find an IETF document proposing some specifications for GSSAPI C# bindings (http://www.ietf.org/internet-drafts/draft-ietf-kitten-gssapi-csharp-bindings-00.txt), but I was unable to find any suitable implementation. The goal is to use MIT Kerberos to authenticate to remote...more >>

Windows Security Roles
Posted by Henrik Skak Pedersen at 3/20/2006 5:30:24 PM
Hi, We are creating a application where we until now has been using AzMan for authentication. We are now looking at alternatives, because we have some problems with AzMan, eg ClickOnce, Windows 2003 AD Domain level. We think that we are able to shift to only be using AD Security groups, ...more >>

Online Only Digital Signature
Posted by James Pemberton at 3/20/2006 1:27:52 PM
I am trying to deploy an application to our application server using Clickonce. I was hoping not to have to install the application on every Citrix server that our users access, but utilize the Online Only function to actually run the application from the application server. I have created a...more >>

Least Privilege User Accounts
Posted by doug at 3/20/2006 1:04:17 PM
I need to modify my application so that my users don't have to always login as an Administrator on the machine. Currently we store data for the application where the application was installed on the machine (c:\program files\[product name]\xxx). This works fine except that in order to run the ...more >>

Role based security flaw?
Posted by Andy at 3/20/2006 8:19:55 AM
Hi all, I'm implementing role based security, but I keep having this nagging feeling that it may not be as secure. Using role based security to classes / methods, whats to stop a malicious client from creating their own prinicpal that answers yes to ever IsInRole call? What should I watch ...more >>

Best option for file encryption?
Posted by Jen Espana at 3/20/2006 8:11:30 AM
Hi All, This is my first time dealing with data and file encryption over the web and was hoping someone could lend a helping hand. My client has the following requirements. They wish to allow their users to upload files (xls, xml, and pdf formats) that contain sensitive information. I am tr...more >>

Digital Signaturing
Posted by Parvez at 3/20/2006 6:55:02 AM
I need help for making an asp.net app where a USER uploads his file to a Location.While uploading it should be digitaly signed........... At the server the signature has to be verified....... I need some light into this issue... What is MCS and how can i use this on this application Parv...more >>

internet explorer 6 sp2
Posted by bunnyrabbitt at 3/18/2006 9:36:27 PM
I can not get into a credit card site because it says I do not have 128-bit encryption on my browser. I updated to internet explorer 6 sp2 from the internet. What could be my problem?...more >>

Encrypted Data Storage ? HowTo ?
Posted by Microsoft at 3/18/2006 2:28:57 AM
Im trying to do a new app where i can store most of my passwords, basically another "Password Keeper" style tool.... Question about this is what is the best way to store the data, as a plain XML or MDB is totally insecure im wondering what other choices i do have and how do i can implement th...more >>

WebService Windows Authentication ASP.NET 2.0
Posted by Henrik Skak Pedersen at 3/17/2006 11:02:25 PM
Hi, I have created a web service which I am calling from InfoPath, a WinForms application and an ASP.NET Web Application. I would now like to implement some security. The web service is only being used inside a corporate network, so I can use Windows-based security. How secure is it if ...more >>

Impersonate
Posted by William Stacey [MVP] at 3/17/2006 4:04:37 PM
If your a service as say Admin or Local System, can you impersonate other users without their password (i.e. run a thread with their WindowsIdentity)? TIA. -- William Stacey [MVP] ...more >>

Problems with AzMan interop and CLR 2
Posted by John at 3/17/2006 11:03:40 AM
I am moving an application over to 2005 and CLR 2 which so far has had minimum trouble. Now I have hit a real road block. I use Authorization Manager with the enterprise lib security block. Part of that requires that the AzMan managed wrapper "Microsoft.Interop.Security.AzRoles.dll" which I...more >>

users and roles
Posted by Francis Reed at 3/17/2006 10:40:38 AM
Hi I haven a question concerning roles and membership in asp.net 2.0. I work for an online university, and we would like to implement role based security for our portal. Currently our university has 11 courses, which fall in 5 semesters, and each course has is then subdivived into approx 5 or ...more >>

Ent. Library w/DB 2 registry access problem
Posted by slpg5250 at 3/16/2006 8:47:40 AM
Hi, We are using Enteprise library in our application to manage database connectivity to a DB2 server. When the application is delpoyed we receive an error when opening a connection to the database. The problem is that the db2app.dll is not allowed the registry access. I have read the securit...more >>

ASP.NET writing to EventLog in Server 2003
Posted by mwieder NO[at]SPAM gmail.com at 3/16/2006 7:20:42 AM
Hi - we've got an ASP.NET 2.0 application that needs to write to the event log (an already created source). The code works fine on XP but on 2003 throws an access denied exception on EventLog.WriteEntry. I've played around with the CustomSD string as suggested by several other posts, but I can...more >>

SslStream AuthenticateAsServer help
Posted by Andre Azevedo at 3/15/2006 10:46:03 AM
Hi all, The SslStream class has a method named AuthenticateAsServer which uses a boolean parameter named clientCertificateRequired to authenticate the client. What's the behavior differences for true/false values? Does the client needs to install the certificate? Thanks, -- Andre Az...more >>

Help please, security problem with NET
Posted by qualitychecker NO[at]SPAM free.fr at 3/15/2006 6:54:01 AM
Sur un TS en W2003, nous rencontrons des probl=E8mes avec des exe C# ..NET qui accepte de se lancer sous un compte administrateur mais qui refuse de s'ex=E9cuter sous un compte plus limit=E9 (de niveau de droits utilisateur). En recherchant d'un peu plus pr=E8s, l'erreur vient de la m=E9thode ...more >>


DevelopmentNow Blog