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

Filter by week: 1 2 3 4 5

"secure" flag for HttpCookies
Posted by Jas at 12/31/2005 1:26:02 PM
The "secure" cookie option dictates that the value of the cookie should only be sent over (unspecified) secure means. In practice this has come to mean over SSL. This is critical in keeping session cookies safe from prying eyes. If the user-agent does not send a sensitive session cookie ove...more >>


Strong naming problem? Anyone seen this?
Posted by msnews.microsoft.com at 12/31/2005 11:45:44 AM
I'm using .NET 2.0 to develop my product. I've built a build system using MSBuild that is building my C# assemblies. I've created a strong name key pair, and I've extracted the public key into a separate file. The MSBuild build process is using the standard Microsoft.CSharp.targets file to b...more >>

Using Enterprise Library to do SSPI over proprietary protocols
Posted by crackajaxx NO[at]SPAM gmail.com at 12/30/2005 10:30:25 PM
Seems like all of the authentication-related questions I see on the net don't seem to fully answer my question or dive off into alternate tangents. So, here's my situation. If I'm developing a broad distributed environment, where authentication is a necessary facet of the environment. Using ...more >>

2.0 forms authentication
Posted by Jack at 12/30/2005 2:34:03 PM
Hi, I managed to get the login control working with users and roles by using the website configuration tool. My questions is: this seems to be creating a database in my SQL server....but how do I get it to add whatever it needs to my existing database? I want to maintain one database t...more >>

How to troubleshoot forms authentication?
Posted by bernadou at 12/30/2005 2:33:02 PM
I am new to this concept after having written my own authentication code in the past. I'm now trying to get my brain around forms authentication in .net 2.0. So far I'm finding it extreemly restrictive and difficult to implement. I've gone through a VWD2005 walkthrough of creating a super s...more >>

web service restrict clients, custom authentication
Posted by fred00 NO[at]SPAM gmail.com at 12/30/2005 8:47:48 AM
I want to restrict access to my web service to only approved client applications. This has to be done from inside the web service, so Windows Authentication is not an option. I would like to allow the possibility of non windows clients, so I am not sure if any of WS Security is an option. I...more >>

How to determine if the logged on user is in a group
Posted by Bob at 12/29/2005 2:25:47 PM
Sorry if this is a bit of crosspost. I'm using VS2005 and VB.net. I have a DC W2K that has a user group I created, MyUsers, I put existing User Bob in that group. I need in my VB app to determine if the currently logged on user is a member of that group. I tried using my.user.isinrole("My...more >>

Retrieving SSL/TLS and server certificate information!
Posted by Raj at 12/28/2005 11:12:01 PM
I want to get the details of SSL/TLS security and the certificate details which are implemented on a perticular domain, just by passing domain name (like hotmail.com) with asp .Net code. is it possible? if it is, how? Thanks!...more >>



CAPICOM 3DES + System.Security.Cryptography in .NET
Posted by Jane at 12/28/2005 3:26:52 PM
Hello, I need to write a .NET component that will decrypt the data using the 3DES algorithm. The funny thing is that the original encrypted data is encrypted using the CAPICOM dll w/ 3DES. I know the .NET 3DES service provider class needs a 128 bit key for both encryption and decryption. Bu...more >>

HELP! Windows authentication gives wrong user name
Posted by Gary at 12/27/2005 7:25:18 PM
I'm using windows Authentication on an intranet to identify users to the application. I'm having the following problems: 1. When someone accesses the web site, a logon dialog box shows up. I thought if the user is already logged on, this shouldn't happen. But once I'm logged onto the site...more >>

Can I write to a directory?
Posted by Bit Twiddler at 12/27/2005 1:55:49 PM
I am trying to understand how I can programmatically determine whether I am allowed to create files in a given directory. DirectoryInfo.GetAccessControl() returns a DirectorySecurity object: DirectoryInfo di = new DirectoryInfo(@"c:\MyDir"); DirectorySecurity ds = di.GetAccessControl(); ...more >>

Integrirt test at startup
Posted by devgrt at 12/27/2005 11:36:04 AM
We need to do an integrity test at startup for our application (take .exe and compute signature and check against the know signature). Does anyone have info/sample on doing this? I assume we have to have a public key and somehow append that on the end of the application too? Thank you! ...more >>

Read a certificate from a smart card
Posted by Lorenzo Soncini at 12/23/2005 11:03:38 AM
I folks, anyone know how is possible to read a certificate stored in a smart card with framework 2.0 ? Thanks for any help an idea Lorenzo Soncini Technoservice - Italy ...more >>

How to encrypt/decrypt files with RSA use X.509 certificate
Posted by pt1981vv NO[at]SPAM yahoo.com.cn at 12/22/2005 5:22:11 PM
I use the RSA to encrypt file,i get the X.509 certificate public key ,and encrypt the file success.Now i decrypt the file,i need use the x.509 certificate private key to decrypt the file,but i cant get the private key.So how can i do this,thanks ...more >>

Extract Kerberos Ticket
Posted by Web Developer at 12/22/2005 12:29:02 PM
I'm using MQ to interop with a Java app, and I want to pass the authenticated user's KERBEROS ticket in the message headers to allow for single sign-on. How do I extract the user's KERBEROS ticket in .Net? Thanks!...more >>

Securely storing cc info
Posted by Weston Weems at 12/22/2005 9:35:04 AM
Ok, Anyone got any reference implementations of how one might store cc's securely? I was looking at AES encryption of the everything but the last 4 digits, and then storing private key via DPAPI. I am looking for any sort of information I can get. C# examples or source or anything wou...more >>

How to secure the DB username and password in the Web.config?
Posted by Anas at 12/22/2005 6:15:04 AM
Hi all, How to secure the DB username and password that are kept in the settings part of the Web.config? Thanks for help! A ...more >>

NetworkCredentials: when populated?
Posted by Claus Konrad at 12/21/2005 5:30:57 PM
The defaultCredentialsCache seems to be populated when launching an application. My problem is: when impersonating (WindowsIdentity(upnname).Impersonate()), my credentialscache is not re-populated with the new logon? Please, any insight into this mistory of networkcredentials would be grea...more >>

WSE 3.0 AES class example
Posted by Jon at 12/21/2005 3:49:02 PM
Hi all, does anyone know where I can find an example on how to use the following classes to encrypt/decrypt some text: AES AES128 AES128EncryptionFormatter AES128KeyExchangeFormatter ...more >>

What happended to PermView.exe in .NET 2.0?
Posted by Claus Konrad at 12/21/2005 10:47:09 AM
Hi The Permission Viewer (Permview.exe) in 1.1 seems to be removed in 2.0? The PermCalc.exe (introduced in .NET 2.0) is not the same functionality. Or is it moved somewhere else but \SDK\Bin\* /Claus ...more >>

No .Net 2.0 Configuration Tool
Posted by arti at 12/21/2005 10:01:45 AM
I have installed .Net 2.0 on a Win2K PC. I keep getting security exceptions. I realize that I need to adjust the security policy. But every place I look says to use the "Microsoft .Net Framework Configuration Tool" which is located in the Administrative Tools. But in fact there is no "Micros...more >>

obfuscatorS & decompilers
Posted by Sean at 12/16/2005 7:58:02 PM
My concern on about decompilers. I am newly educated about obfuscation but I am curious how common place .Net decompilers are. Given that one product I looked as was both I would assume fairly common. Just trying to secure my dll files without spending a ton of money. Thanks...more >>

Encrypted XML files (dotnet 205)
Posted by Josef Brunner at 12/16/2005 6:54:01 PM
Hi, in the online help I found code to encrypt/decrypt XML files. It uses the namespace Imports System.Security.Cryptography.Xml This namespace does not exist, if I paste it into my IDE (2005, 2.0 Framework, all updates...) Any idea where I could find it? Thanks a lot, Kurt ...more >>

Authenticating against network server using non-domain account
Posted by Martin Robins at 12/16/2005 2:39:03 PM
I need to access the scheduler service on a network computer in order to = manipulate it remotely from .NET; I have all of the necessary code to = perform the manipulation and it works - great - but I am having problems = with authentication. I have tried using LogonUser and this works fine wi...more >>

CAS Permissions
Posted by Jessica Weiner at 12/16/2005 12:15:27 PM
I have a simple window form application. It runs fine when the executable is saved on a the harddisk. I uploaded the executable on my website and then used internet explorer to download it; at the prompt I chose "run" instead of "save" and the executable threw System.Security.Securityexception...more >>

Need a Read only object to read SMTP settings from Web.Config
Posted by kfrost at 12/16/2005 7:45:03 AM
I have a domain in a hosted environment and access to the root directory is read-only. To retrieve connection strings I use the following: WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString Which works fine. To try and retrieve the SMTP settings, I've tried t...more >>

Windowsforms control hosted in asp.net page...
Posted by Larry Beall at 12/15/2005 11:22:00 PM
Ok I'm trying to host a small windows forms control in an asp.net page. The control grabs an image from the clipboard with the click of a button displays it on the page and then allows the user to upload it via a websevice. This works fine on my pc and I have never adjusted any settings. I...more >>

RSACryptoServiceProviderEncrypt without padding is not possible
Posted by Eugen at 12/15/2005 2:51:33 PM
Hi, I can't believe this, now I have to write the whole RSA library by myself, just because someone at Mircosoft thinks, it is unsecure, to do my own padding. Why? Take a look at HBCI, the german standard für banking transactions. The RDH specification requires a padding of the session k...more >>

Unhandled SecurityException when application has ended debugging
Posted by Andy at 12/15/2005 11:07:40 AM
HI all, I have a windows forms application which i am using .Net's role based security in. I tagged all the form classes with [PrincipalPermission( SecurityAction.Demand, Authenticated = true, Role = @"MyRole" )] class myForm : Form { // code here } The code correctly pr...more >>

UnauthorizedAccessException when Writing to a Remote Registry
Posted by ButchClark at 12/15/2005 7:06:02 AM
Hi all, I am trying to set a registry key value on a remote machine. I can open the key and read the current value without problems. I can also use Regedit (on my local box) to update the remote key value without problems. However, when I issue the following statement, I get an Unautho...more >>

Partially trusted context... appear on computers randomly?
Posted by tomp at 12/15/2005 2:45:18 AM
Hi I start my application from my client by pointing out the path to the application on a server. To get pemission to run it do I set FullTrust for Local Intranet on the client. (I know that I should only do this for the actual assembly, but that will be fixed in later version.) I repeat this p...more >>

Login don't work
Posted by paapa21 at 12/14/2005 7:51:03 AM
I am trying to creat a form base authenication and when i run the default.aspx i get this error: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an applic...more >>

SSLStream CypherSuites
Posted by yvan.charpentier NO[at]SPAM gmail.com at 12/13/2005 1:36:32 PM
Hi, Does any one know where i can find documentation on which cyphersuites are supported by SSLStream (.NET 2.0)? I'd like to know if TLS_RSA_WITH_NULL_SHA is supported. Thanks, Yvan ...more >>

Word automation in asp.net
Posted by Sher at 12/13/2005 11:50:03 AM
Hello, I have an asp.net applicaition which opens an uploaded word document, then parses the document to extract some values. The upload process works but the code is dying on the following line: private Word.Application wordApp = new Word.Application(); I am using digest authenticatio...more >>

SecurityException in no-touch app attempting an HTTP redirect
Posted by Kyle Herbig at 12/13/2005 7:53:02 AM
Hi all, I have a no-touch deployed c# application that has full trust on the client PC. When this client application is launched, the application posts an HttpWebRequest to the web server that hosted the application. The web server redirects the URL (as expected), however the client get...more >>

How to set less restrive passwords for the CreateUserWizard control?
Posted by Ron at 12/13/2005 7:32:56 AM
I am using the CreateUserWizard control in my asp.net2.0 app. For my needs the enforced password strenght is to strong; I want to allow users to be able to create passwords with only text and not force them to use a non-alfanumeric character as well as a digit. Setting the EmailRegularExpress...more >>

How to fetch more than 1000 users from Active Directory (Win 2003)
Posted by Deepak at 12/12/2005 11:23:32 PM
Hi All, I want to fetch informations of all users exist in Active Directory(around more than 11000) but it always returns first 1000 users. I tried both way (using SQl Server and DirectorySeacher class (C#.net)) to get all users but both returns the same results. This limit(1000) is imposed by ...more >>

X509 cert for Text Sign
Posted by Scafe at 12/12/2005 4:36:04 AM
Hi, i want to use a X509 Cert to sign a plain text file, but when i was looking for info in MSDN i found references to PublicKey, and nothing about the Private or any method that allow me to sign anything. My question is, how i can use the cert to sign the text? Thanks for any help. R...more >>

PrinicpalPermission misleading with using Impersonation
Posted by Jas at 12/11/2005 7:54:02 PM
I am using declarative syntax to demand a certain principal permission within my code which is written in .net v1.1. I am using WindowsPrincipal as the underlying scheme for users. The strange behavior (or maybe I just expected it to act differently) arises when I use impersonation plus dema...more >>

Write to and Read from XML file - convert string to byte
Posted by Nickneem at 12/11/2005 6:52:50 AM
I want to: - encrypt a string - save it to an xml file - read it back - decrypt the string (using the crypto api functions of the MSDN SignatureCapture sample) If I use: MyValByte1 = Convert.FromBase64String(txtName.Text) MyValByte1 = MyCrypto.Encrypt("MyPPhrase", MyValByte1) save it...more >>

Problem Creating a WEB Service
Posted by Ali Grey at 12/10/2005 2:11:56 AM
Hi all, I am new to .NET but I am trying to develop a C#.NET WEB Service. I can do this on my laptop without any problems but when I try it on my desktop I get an error "The Web server reported the following error when attempting to create or open the Web project located at the follow...more >>

Problem with Excel Automation in ASP.net on IIS6 & Windows 2003
Posted by Sam Vanderstraeten at 12/8/2005 4:58:19 PM
Hi all, Situation: - ASP.net application, written in VB.net - Excel 2002 installed on server Problem: The application I wrote is an ASP.net webpage that uses Excel to generate some pages. This works already more than 1,5 years on a Windows 2000 server with IIS 5 and the .NET Framework 1.1...more >>

.Net 2.0 signing TCP channel - examples or guidance?
Posted by Stu Carter at 12/8/2005 4:22:11 PM
Hi, We're intrigued to find out more about the new capabilities of the TCP remoting channel in .Net 2.0. Specifically, how can we sign the channel between client and server to ensure that only our components can talk to each other, and no-one else will get a look in. I've read some scan...more >>

.NET 1.1 security policies not functioning when .NET 2.0 is installed
Posted by Jeremie at 12/8/2005 3:04:22 PM
Hi, We had a Runtime Security Policy Code Group created in .NET 1.1 Configuration to give Full Access to a folder on a network share. When we installed .NET Framework 2.0, the policy quit working and our application could no longer initialize the .NET Framework. I have the following ques...more >>

Windows Forms Control Hosted in IE
Posted by James at 12/8/2005 2:09:20 PM
Hi, I have built a Windows Form Control which is hosted in IE (for our Intranet). The form logs into a Web Service and retrieves information for display. However, because the web service is on a different internal server, we get the error message: "Error in document service. "Request for th...more >>

app cannot run from network share
Posted by Rick B at 12/8/2005 6:01:03 AM
The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.SecurityPermission The Zone of the assembly that failed was: Intranet i recieve the above error meesage when ever i attempt to use this : System.Security.Principal.WindowsI...more >>

Writing to the event log causes a Win32Exception: Access is denied
Posted by Russ Basiura at 12/7/2005 11:16:02 AM
Anybody ever seen this before? The two methods below are identical with the exception of the EventLog.Source value. Method #1 is successful. Method#2 fails. Writing to the event log causes a Win32Exception when the EventLog.Source = “VB.Net Application”. O/S: Windows 2003 Server (...more >>

runing .exe from a network share
Posted by Kyle Slovensky at 12/7/2005 10:18:03 AM
I'd like to run a VP .net application from a network share. It was done in VB. net. and has no special requirements. When I copy it to the network share on a win 2003 server and run it (the .exe file) I get an error. If I run the same file locally off the local C drive it works fine. If I ...more >>

using StrongNameIdentityPermission under VS 2.0 beta version
Posted by stanley at 12/7/2005 5:03:02 AM
hello, my dll (assembly) is secured (so it can't be used by third party) using the 'StrongNameIdentityPermission' attribute, it seems that the code is not secured, becuase it's always worked even if the key is invalid!! the same code exactlly worked just fine under VS 1.1! is there any chan...more >>

Authenticating Assemblies/detecting tampering
Posted by Ray at 12/6/2005 9:06:03 AM
I'm trying to develop a license model for an application and need suggestions for futher securing the licensing system. I'd rather not require a network connection to a server to validate licenses so all the code will reside on the client machine. Licenses will be generated on a controled ...more >>


DevelopmentNow Blog