Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > september 2005

Filter by week: 1 2 3 4 5

SPURIOUS "Project location not fully trusted"
Posted by Michael A. Covington at 9/30/2005 9:33:22 PM
Whenever I start Visual Studio 2003 and open a project that is on a non-local disk (i.e., on a server), I get a message box about "The project location is not fully trusted." HOWEVER, I've already set Local Intranet to FullTrust. This is in a roaming user profile situation, and the problem...more >>


Installing CA-certificate in certificate-store from .NET
Posted by Helge Jensen at 9/29/2005 6:00:12 PM
I've been looking at google for a method of adding a certificate to the cert-store from C#. I would prefer something that doesn't popup dialog-boxes -- but I'll accept just about anything. I looked at certmgr.exe, but it would be rather sad to have to start that in a seperate process -- and it...more >>

AccessDenied error on Windows 2003 Server
Posted by dmorgan75 at 9/29/2005 2:20:07 PM
We developed a COM Wrapper DLL around some code that accesses a Structured Storage file (starting with a call to StgOpenStorage). The COM Wrapper DLL is accessed from an ASP.NET application written in C#. With our ASP.NET application running on Windows 2000 Server and Windows XP, the call ...more >>

How do I check for domain group membership?
Posted by Byron at 9/29/2005 11:35:07 AM
I have a WinForm app that will run on XP boxes in a Win2003 AD domain named "GTI.int". I have several Universal security groups named "ILF_x", one of which is "ILF_Installer" and I have made myself a member of that group for development. There are arrays of security group names associated wi...more >>

How do I get array of users security groups (NOT builtin)
Posted by Byron at 9/29/2005 6:35:01 AM
I need to get an array of security groups the current user is a member of. I don't care about the builtin groups. I use an array of windows security groups the application relies on for internal security to enable menu items, allow actions, etc. within the application, so I need to get an ar...more >>

is there any way to clear the buffer of a System.IO.StreamWriter so that it does not do a flush when it is closed in the finaly block?
Posted by Daniel at 9/28/2005 2:04:38 PM
is there any way to clear the buffer of a System.IO.StreamWriter so that it does not do a flush when it is closed in the finaly block? ...more >>

linkdemand for principalpermission
Posted by Jas at 9/27/2005 7:36:01 PM
I can't seem to understand what a linkdemand for a principalpermission means? If linkdemands are satisfied at JIT phase, how can it figure out the current principal before running the code? For example, if I was going to use windowsprincipals to make RBS decisions, and I decorate a method ...more >>

Prevent access to advapi32.dll RevertToSelf()
Posted by kevin.kenny NO[at]SPAM zygonia.net at 9/27/2005 6:06:58 AM
Hi All, Sorry to crosspost but it's a security and an ASP.NET problem I have. We run each website site under it's own I_<user> account and ASP.NET is configured to impersonate so requests run under the identity of the I_<user> account. In windows 2000 server how do I prevent a user from c...more >>



Custom security permission exception error message
Posted by Marius Groenendijk at 9/27/2005 12:00:00 AM
Hello group! We're planning to use strong naming for our app and this does indeed work fine *if* the app has been registered for fulltrust (w/ caspol). Trouble is if it's not *yet* fully trusted. Then, if the app starts it bombs immediately with an *ugly* message which the average end-user ...more >>

enumerate runtime permissions
Posted by Jas at 9/25/2005 7:46:01 PM
Is there a way for an assembly to enumerate all the permissions granted to it by the runtime? For some reason I remember reading somewhere in the past that you can't do this, but I wasn't sure. ...more >>

Logon with Digital Siganture (PKI/OCES - or what else they're called)
Posted by Martin Høst Normark at 9/24/2005 10:09:18 AM
Hi everyone Has anyone got the least experience in integrating the Digital Signature with an ASP.NET[C#] Web Application? Here in Denmark, as I supose in many other countries, they're promoting the digital signature. A lot of people already has one, to do their taxes, and much more. I hav...more >>

Safe Source Code
Posted by icudret at 9/23/2005 10:37:10 AM
how can protect my source code from decompiler?...more >>

windows authentication problem
Posted by Filip De Backer at 9/23/2005 12:55:02 AM
Hi everyone, I've got the following error: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. In my webconfig file I use: <authentication mode="Windows"/> <identity impersonate="true"/> My connectionstring is: data source=SAN-SRV4; initial cat...more >>

Correctly using RSACryptoServiceProvider?
Posted by Neelay at 9/22/2005 3:04:07 PM
Hi guys, I am writing a simple client-server app and the client sends requests to the server. The client and server communicate using sockets. I want to encrypt the client request using servers public key. This is what I am currently doing...In the setup program, I created an object of...more >>

security engineering for windows forms
Posted by VISHAL at 9/22/2005 10:37:07 AM
Is there any security engineering section for windows form in .NET. There is a security engineering section for web application in msdn http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/tmwawalkthrough.asp Can the above section be used for windows form as well. Any ...more >>

aspnet users permission under SSL on windows server 2003
Posted by Minh at 9/22/2005 12:39:01 AM
my ASP .Net application works fine until I have it run under SSL. When a remote user wants to write a file or create a folder, the app will throw a permission error although permission is already given (again, it works with under regular HTTP protocol). Does anybody have an idea what the pro...more >>

TripleDESCryptoServiceProvider
Posted by Tim Wallace at 9/21/2005 12:17:53 PM
I'm experiencing something that I am not certain is normal or a problem. I have a byte array that, once run through a method that encrypts using Triple DES, the array now "appears" to be truncated. By this I mean that the final three bytes are now showing 0 (zero) in the debugger. When I de...more >>

simple way to encrypt data
Posted by z f at 9/21/2005 12:00:00 AM
Hi, i need a simple way ( no app blicks ) to encrypt and decrypt data what is the object/method i should use? TIA. ...more >>

Code Signing Certificates for individuals / open-source
Posted by Will at 9/20/2005 11:09:02 PM
Why do code signing authorities refuse to issue certificates to individuals or open-source projects? Are they seriously saying that organisations like Enron, Worldcom, etc are more trustworthy than the people who contribute to GotDotNet? Why do they cost so much? Code Signing is a great ide...more >>

LogonUser
Posted by Dick at 9/20/2005 10:05:05 AM
I'm trying to use the LogonUser function from "advapi32.dll" as described in the KB article "How to validate Windows user rights in a Visual Basic .NET application" but the function returns the error message "A required privilege is not held by the client.". Please can you explain what this me...more >>

Can i run more then one session on the computer?
Posted by Shurick at 9/20/2005 12:27:03 AM
Multiple sessions is pretty feature of XP. In domain environment its not working by default. How can i use this feature in domain environment? May be Vista can help me?...more >>

how to get the number of milliseconds between two System.DateTime objects
Posted by Daniel at 9/19/2005 5:02:35 PM
how to get the number of milliseconds between two System.DateTime objects ...more >>

data size and RSA encryption
Posted by Tim Wallace at 9/19/2005 12:34:48 PM
I am getting an error stating "...data to be encrypted exceeds the maximum for this modulus of 256 bytes". I am at a loss as to how this could be, as I'm only attempting to encrypt less than 30 characters. Does anyone have any ideas as to what could cause this error? I'm creating my keys in...more >>

Delegation across trusted domains
Posted by Paul at 9/19/2005 2:21:03 AM
Hi, I've already posted this in a different group, but I've received no reponses... ------- I have some load balanced IIS servers, which get content and .NET applications from clustered file servers using UNC shares. The content within the shares are secured using NTFS file permissions. ...more >>

Is WindowsPrincipal is Remotable ?
Posted by Karthik at 9/16/2005 8:19:02 AM
This is regarding passing WindowsPrincipal from my client to the server; I’m developing a Windows based application in c#. When ever I try to pass WindowsPrincipal object from the client to server it says “Exception ha been throw at target invocation…” I’m using call context (tha...more >>

xml based AzMan and ActiveDirectory
Posted by A at 9/15/2005 11:59:39 AM
Hello I'm using xml based AzMan (I'm on Win XP) and Active Directory users. I want to be able to know if a user belongs to a certain role from an app. If I'm doing like in the code below, I'm not capable to see in the windows principal the roles defined in the .xml AzMan file. IAzApplicat...more >>

Unable to run c++ .net executable from a network drive hooked to server
Posted by kamisettyk NO[at]SPAM gmail.com at 9/15/2005 11:59:01 AM
when i try to run a C++ .net executable from a network drive hooked to server it throws the following execption SYSTEM.SECUTRITY.POLICY.POLICYEXECPTION. i have tried copying the project in to the network drive and running it from there but it shows the same error...any suggestions!!! your hel...more >>

Problems trying to write to Custom Eventlog
Posted by moochin NO[at]SPAM gmail.com at 9/15/2005 10:39:03 AM
I might be going out of my mind but I have been looking at this for hours, and after a lot of smoking and banging my head I think I have solved the problem, and thought someone might be interested. I have an ASP.NET website which I needed to log errors to a custom log. I create the custom log ...more >>

Importance of salt
Posted by vla10d NO[at]SPAM gmail.com at 9/15/2005 5:51:28 AM
Hello, I have one question regarding the importance of salt in encryption. As I understand, the salt is used to prevent dictionary attacks. Also, it is recommended that the salt isn't always the same, and that it should be randomly generated for each message. This random salt should then be...more >>

Windows Security pops up when executing javascript in an asp.net p
Posted by Lumen at 9/15/2005 3:33:03 AM
Hello, I've got a really strange problem; this is the case. I've got a web application that uses windows authentication, other users are not welcome. In IIS I've checked Windows Authenticity and unchecked anonymous acces. When users want to enter the site, the windows dialog popsup as expec...more >>

must use weak key in 3des
Posted by Steen at 9/15/2005 12:57:04 AM
Hi, I am trying to convert this Java code into C#: JAVA: SecretKeySpec systemKey = new SecretKeySpec("TEST KEYTEST KEYTEST KEY".getBytes(), "TripleDES"); Cipher cipher = Cipher.getInstance(DESEDE_ECB_NONE); cipher.init(Cipher.ENCRYPT_MODE, systemKey); byte[] eac = cipher.doFinal(cardRand...more >>

.NET 2.0: code access security / authentication
Posted by Lloyd Dupont at 9/15/2005 12:00:00 AM
I'm writing a .NET 2.0 app I want to deploy it in the net. Apparently (due to an "unknow publisher warning" while downloading in the browser) I have to give a strong name to my installer & my components. My (.NET 2.0 beta2) project is a mix of C# & MC++. - To authenticafe my MSI I need a .sp...more >>

adam for asp.net 2.0 beta as a role/user store
Posted by steven NO[at]SPAM sbcanada.com at 9/14/2005 5:13:04 PM
please help! I am trying to use ADAM with ASP.NET 2.0 beta to store users and roles. I keep getting "The system cannot open the device or file specified. (Exception from HRESULT: 0x8007006E)" Any ideas on what this can mean? This exception pops up whenever I try to CreateRole("testrole"). ...more >>

Strong Names Secure???
Posted by VISHAL at 9/14/2005 5:00:03 PM
According to this article it is very easy to break strong names http://www.codeproject.com/dotnet/NeCoder03.asp Is there a way other than strong names to secure .Net assemblies Any help is appreciated. Thanks, Vishal...more >>

Windows authentication only
Posted by Stephen Noronha at 9/14/2005 4:36:11 PM
Hi, I am using "Forms" based authentication for allowing users to enter "webapplication". is there anyway that I can make "Windows" authentication only? If I go to IIS/defaultwebsite/"webapp" and change directory security properties to Integrated Windows Authentication only, would that work...more >>

Anonymous access + Windows Authentication
Posted by Eric at 9/14/2005 9:37:06 AM
Hello, I have a web app that uploads files to a file server (different box than the web server). The application uses NT integrated authentication, but no users should have permissions to the file server. How can I use a fixed domain account to upload the files to the file server while ...more >>

X.509 "Bad Key" error - EnvelopedCms.Decrypt()
Posted by Ziga Jakhel at 9/13/2005 10:28:31 PM
Hi! I'm trying to put together a demo for signing/verifying/encrypting/decrypting documents via pkcs #7 in VS2005, as per instructions in http://msdn2.microsoft.com/en-us/library/ms180960(en-US,VS.80).aspx The problem I'm getting is that when I call envelopedCms.Decrypt(), the operation f...more >>

MD5 hashing
Posted by Stuart Dahl at 9/13/2005 5:15:03 PM
I have hashed the passwords of a web application for storage and validation in a SQL Server table. The application is being migrated to a new web server environment. Is there a key that I can transfer so that validation will still be successful in the new environment? The logic I curren...more >>

EnvelopedCms.Decrypt -- Certificate revocation problem in .net 2.0
Posted by Ziga Jakhel at 9/13/2005 12:00:00 AM
Hi! I'm trying to put together a demo for signing/verifying/encrypting/decrypting documents via pkcs #7 in VS2005, as per instructions in http://msdn2.microsoft.com/en-us/library/ms180960(en-US,VS.80).aspx The problem I'm getting is that when I call envelopedCms.Decrypt(), the operation ...more >>

Sending raw sockets without administrative privileges?
Posted by Christian Jacob at 9/12/2005 11:58:01 PM
Although I already have an own implementation for pinging remote hosts, I encountered problems which I hoped others may have already solved. The thing is, that all sources I found (including my own) use raw sockets to send ICMP echo requests. A user without administrative privileges does not ...more >>

RSACryptoServiceProvider
Posted by Tim Wallace at 9/12/2005 5:15:43 PM
I need to create and store a public/private key pair in a container. I'm using RSACryptoServiceProvider to create the keys, store them in the container and retrieve them. My problem is this: I need to get the actual public key value, not the components used to create the key. Whenever I ...more >>

NTFS file system folder permissions by using Active Directory Serv
Posted by IronDraco at 9/9/2005 1:52:01 PM
I followed the example at http://support.microsoft.com/kb/899553/EN-US/ and it works great but it gives Full Control. I figured out how to give read write also. But how can I set the permission to Modify?...more >>

Custom Security Permission & Security Attribute troubles
Posted by Angelos Karantzalis at 9/9/2005 12:00:00 AM
Hi guys, I'm trying to write a library that will allow me to add a custom permission for my applications (let's call it ApplicationPermission for now), and a custom security attribute to support declarative syntax. I've gone about this, creating my ApplicationPermission class, derived from ...more >>

Ensuring that calling assembly signed by certain keys
Posted by Andy at 9/8/2005 6:52:15 AM
Hi all, I have a few questions about restricting who may call an assembly i'm building. First, I have a business assembly on a web server, with Serializable objects that use remoting to move themselves to a data server (which also has a copy of the business layer, and a data layer assembly ...more >>

Are .NET Caches Secure from Memory Dumps etc?
Posted by WebDev01 at 9/7/2005 11:21:02 PM
I'm curious to know if sensitive data I store in, for example, the HttpApplicationState, is safe from being obtained by non-authorised users? If it is not safe, how does one go about accessing the information? Mini-dump to examine stacks and heaps etc? Basically I use the registry to stor...more >>

WindowsPrincipal in a component used in classic ASP always returns the same identity
Posted by radomil at 9/7/2005 5:36:06 AM
Hi I have created a component in .NET to use in a classic ASP application on an intranet. It should use the Windows authentication and WindowsPrincipal.IsInRole() method to check which groups the user belongs to: .... AppDomain ad = Thread.GetDomain(); ad.SetPrincipalPolicy(PrincipalPolic...more >>

Refresh .Net Framework policy
Posted by tanguy at 9/7/2005 2:36:03 AM
Hi, I need some info after strange behavior from .Net Framework security update... I developed an activeX in C# (ie: a dll) and I need now to allow this activeX to run on the client computers without any manual action (such as configure the .Net framework policy). I create an exe file whic...more >>

Encrypting Logon Passwords
Posted by Larry Williams at 9/6/2005 5:16:37 PM
I've got a few posts that are all related but I've gotten a little farther and figured I should make a new post. I am writting a VB dotNet program that has to restart the PC halfway through. In order to ensure it restarts with the same userid and password I have to setup the following re...more >>

Windows service and Certificate
Posted by Laurent at 9/6/2005 11:54:48 AM
Kikoo, Je cherche un exemple de code de service windows qui utilise un Certificat X509, sans avoir besoin de se logger dans windows. Je me galère avec l'API Crypt32. Merci. Hello, I'm looking for a code sample in for a windows service which use a X509 Certificate without login on ...more >>

Failure Audit errors on device name
Posted by srikash at 9/6/2005 9:18:26 AM
Hi I'm testing a vb.net console application that's kicked off by a scheduled basis on hourly basis. I'm using Enterprise Library mainly for Data access & logging. I have recompiled the source code leaving out instrumentation functionality as it's creating quite a few security violations. T...more >>


DevelopmentNow Blog