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

Filter by week: 1 2 3 4 5

StrongNameIdentityPermission LinkDemand error "mscorlib" ??
Posted by Abelardo Vacca at 1/31/2005 2:15:02 PM
Hello, I am new to CAS. I am trying to protect my assemblies so they cannot be called by other assemblies not signed by our company. I create a company key pair using: sn -k myKey.snk I read the public key with: sn -tp myKey.snk I demand ask for StrongNameIdentityPermission before the ...more >>


formsauthentication.signout
Posted by djc at 1/31/2005 10:29:01 AM
I use the formsauthentication.signout in my logout button, than redirect the user to the login page. I also clear all session variables. I have just noticed that if you copy the url of one of the pages in the app, and paste it after you are logged out, you will be taken back to that page with...more >>

Performance problem with DirectoryServices - VB.Net
Posted by remy f. via DotNetMonster.com at 1/31/2005 8:19:24 AM
Hi, My problem is the first request done on Active Directory using DirectoryServices object take 5 seconds. All folowing search are less than 1 second, even i am using a new instance of DirectoryServices.DirectoryEntry. The problem is the same with both methods : - DirectoryServices.Direct...more >>

XmlSerializer and Security
Posted by AndrewEames at 1/31/2005 7:43:05 AM
I've just run into a rather pesky issue. If I use the XmlSerializer class from a strongly named assembly, the generated assembly makes a demand for full trust if the strongly named assembly doesn't have the AllowPartiallyTrustedCallers attribute. Some of my customers have IS policies where they ...more >>

Hidden connection string
Posted by haian at 1/30/2005 10:01:03 PM
Hi everyone! Sorry for my English( I'm not good at English) I have a question : To connect to SQLServer I must add connection string in webconfig,may be like this: .... UserID=sa;PWD=mypwd.... If someone open this file, he can see this password, how can I hidden connection string in webc...more >>

A question about IUSR_<MachineName>
Posted by Erik Cruz at 1/30/2005 11:33:47 AM
Hi. I am following some Microsoft guidelines to build a more secure web server, in order to run an asp.net application. I created a custom account for asp.net and disabled the built-in IUSR_MachineName. The problem is that when I run my application I receive an error: Service Unavailable. A...more >>

System.Security.SecurityException: Exception from HRESULT: 0x800A0046
Posted by Crissy at 1/29/2005 1:27:22 AM
Please forgive my ignorance. I am new to all of this and volunteered to be the webmaster of a site because nobody else would step up. When trying to delete or upload pictures, users are getting this error: Server Error in '/jeep' Application. Security Exception Description: The applicatio...more >>

Problems with public key decryption with RSA
Posted by pike at 1/28/2005 5:27:03 AM
I have created an encryption class whose main encryption method encrypts small amounts of bytes (in this case the Key & IV for Rijndael encryption of main data) using .NET's RSA methods. This had all been working fine until I tried using the class within a "Windows Service" application. The...more >>



CLR security error
Posted by John P at 1/27/2005 10:21:07 AM
All, I'm running an application on the .Net 1.0 framework that seems to be having trouble running for anyone who is not a member of the local admins group on the Windows 2000/2003 server. If I run the app (my account is in the local admin group) no problems. But if another user attempts t...more >>

.NET CLR Error 800700002
Posted by John P at 1/27/2005 10:17:02 AM
All, ...more >>

WindowsPrinciple.IsInRole not working with cached info
Posted by John at 1/26/2005 11:11:14 AM
I'm using IsInRole to determine a user's authority to use various features of a winforms application. Everything works fine while the client machine is connected to the network. However, when the application is disconnected, the authentication works with the cached credentials, but any attempt ...more >>

Padding issue with C++ Crypto RC2 encryption
Posted by kishore at 1/26/2005 10:45:07 AM
Hello, I'm using the Crypto API RC2 encryption under Visual Studio 6 C++. I've written some code and got encryption and decryption working fine. The problem is when data is encrypted, the data is padded to accommodate for block size. So I have the data encrypted with these additional charac...more >>

Hacking Windows Security Principal
Posted by Rene at 1/25/2005 11:30:46 PM
According to my research, it looks like I can use the Windows Security Principal to verify that a user is authenticated or to see if they belong to a certain group etc. The thing that bothers me is that this object resides in the client computer memory and everybody knows that this makes th...more >>

Set Protection to a folder
Posted by John Fred at 1/25/2005 4:20:44 PM
I have must set Protection to a folder and remove other exists protection. I use for set protection Api AddAccessAllowedAce but this api set MyUser and not remove other users.. This is a better way in VB Dotnet ? ...more >>

Permissions Questions
Posted by savanted1 NO[at]SPAM hotmail.com at 1/25/2005 10:31:04 AM
Dear, Microsoft Corporation Would the Permissions architecture be considered to operate at the Session Layer of the OSI model? The reason I state this is due in part to the fact that it has DNS incorporated within its confines. Regards, ...more >>

Authorization Application Block/ COM object with CLSID exception
Posted by TheTarek at 1/25/2005 9:01:02 AM
Hi, I'm using the authorization application block, with an active directory authorization store. In my app.config file, i've specified my store location as following: <storeLocation>MSLDAP://CN=SS1,CN=Program Data,DC=MyDomain</storeLocation> This store is created on the server 2003 Author...more >>

Strange 'bug' with Windows Authentication
Posted by JohnHorb at 1/25/2005 6:11:09 AM
I have an ASP.NET application which is set to use Windows authentication - relevant section of web.config below:- <authentication mode="Windows"/> <authorization> <deny users="?"/> <!--Deny anonymous users --> <allow roles="uksvphpcs053\aristoweb users,uksvphpcs053\...more >>

Virus in File?
Posted by Steffen Stehmann at 1/23/2005 1:21:56 PM
Hello, I want to save a message in a xml-file. I want to save attachments in a special tag. But if the attachment has a virus and if I open the file in my ..NET program, is the virus activ? I think so beacause I saw the jpg-problem from the internet explorer. I hope you understand my englis...more >>

No touch install throwing FileLoadException Failed to grant required minimum permissions to assembly
Posted by Joe at 1/22/2005 11:11:05 AM
My control uses several other controls - MagicLibrary being one of them. If I change my Internet security to Full Trust everything work fine but when I just have full trust for my control I get this error. These are the permissions I'm requesting I get: [assembly: FileIOPermission(SecurityActi...more >>

sn -tp mykeys.snk fails with Bad version of provider
Posted by Joe at 1/21/2005 12:09:11 PM
I create a key pair using sn -k mykeys.snk. When I try to view the keys using sn -tp mykeys.snk I get an error: Failed to convert key to token -- Bad Version of provider. Any ideas? I can't strong name an asembly with the generated file. ...more >>

How is .net generating extra bits in MD5?
Posted by Pete at 1/21/2005 11:53:48 AM
Hi, I have a piece of .net code I am trying to understand. It creates a MD5 hash then requests 256 bits from the hash, where MD5 only generates 128 bits. I've looked at the hash with another non-.net piece of code and the first 128 bits match up correctly. How is Microsoft creating the second...more >>

RSACryptoServiceProvider
Posted by Michaƫl Mathy at 1/20/2005 4:23:29 PM
Hello I try to use the object RSACryptoServiceProvider to verify a signature. I provide the public key in the code but it seems that the RSACryptoServiceProvider constructor try first to create random keys in the directory RSA\MachineKeys. I always receive an exception with the message: ...more >>

sn.exe -Vr assembly
Posted by Gecko at 1/20/2005 1:02:00 PM
Is it possible for a hacker to run the strong name utility on a client computer with the -Vr parameter to skip verification of *signed* assemblies installed in the client computer rendering my whole strong name security scenario useless? Since most people are usually logged as Administrator...more >>

How to Authenticate with a Webservice using Kerberos
Posted by ALI-R at 1/20/2005 10:54:44 AM
I'm writing a webpart which is supposed to connect to a Webserice in our interanet.I am using "RSService.Credentials = System.Net.CredentialCache.DefaultCredentials;"to Authenticate to the webservice.but it dosn't work.why? I think SharePoint which hosts my webpart authenticate the user requ...more >>

Determine what security permissions are needed
Posted by Joe at 1/20/2005 8:35:38 AM
Is there a utility to test an assembly for security issues? I have a Winforms user control which I'm hosting in an ASP.NET application. On some machines the assembly doesn't load when I override the CreateParams method. Also, if I add a chart control to this control it doesn't load. There's no...more >>

Authentication mode=windows on https
Posted by regjose11 NO[at]SPAM hotmail.com at 1/20/2005 1:17:24 AM
Hello and thanks in advance for your help. I am trying to implement an ASP.NET application with <authentication mode="windows"> in the web.config file. My question is, if the app is located in an https server, how is encrypted the authentication information (login, password, and domain) th...more >>

Re: Adjust .NET Security Levels to Mass of machines
Posted by Dominick Baier [DevelopMentor] at 1/19/2005 2:58:15 PM
well - you could take the developmentor essential .net security class where we build such an installer in the lab .. or get some inspiration here : http://staff.newtelligence.net/michaelw/default.aspx?date=2004-10-14 :) --- Dominick Baier - DevelopMentor http://www.leastprivilege.com ...more >>

CSP and Strong Name Key
Posted by Gecko at 1/19/2005 2:55:23 PM
I understand that I can "install" a strong name key pair into the CSP. What I would really like to know is where does the key goes? Is this "installation" saving the key into the registry or some special hidden folder? Is there a way to browse for this information? Thanks. ...more >>

Re: Adjust .NET Security Levels to Mass of machines
Posted by Dominick Baier [DevelopMentor] at 1/19/2005 12:21:25 PM
just be aware that this msi package overwrites all changes you have done before to the policy - especially important if you plan to distribute further policy changes in the future. a more stable way is to write a little installer to adjust policy programmatically and distribute that via GPO ...more >>

Login error on asp page to sql connection
Posted by PickwickBob at 1/19/2005 7:15:04 AM
New to Windows Server 2003 and developing a speech application. When I try to login to SQL server either local or on network I get the following error- Login failed for user 'NT Authority\Network Service' . When I use Server Explorer to find and logon the server from Visual Studio I have no p...more >>

ASP.NET Permission-based access control
Posted by Morten Dahl at 1/19/2005 1:27:41 AM
Hey In designing a website, I would like to be able to make pages require certain permissions in order to "view/execute" them. So far I've only been able to find out how to use role-based access control, but this is not what I intended.. An example to make it more clear: User Alice ca...more >>

CryptoStream error
Posted by monroe NO[at]SPAM ciudadparagon.com at 1/19/2005 1:10:56 AM
Hi all, I'm running into a problem that's driving me nuts when decoding a file. In an app, I've managed to generate binary files wich 128 first chars are a RC2 key encrypted in RSA, and the rest of the info corresponds to my origin file encrypted with said RC2 key. So now I'm working in a sep...more >>

Embedded .NET Control in IE - Policy issue not causing it to work???
Posted by Marco at 1/18/2005 5:09:38 PM
I have a .NET control embedded in Internet Explorer. Right now I am loading the control in a Local Intranet Zone, meaning that http://localhost/MyWebPage.htm has the embedded control. I have: 1) Strong Named my control 2) added [assembly: System.Security.AllowPartiallyTrustedCallers] at...more >>

Adjust .NET Security Levels to Mass of machines
Posted by Rob McShinsky at 1/18/2005 3:24:09 PM
We have a vendor that is requiring an elevated .NET security level for their application. I am looking into ways to do this. Is there a Group Policy to do this or a registry change? How would one go about changing this setting? Thanks Rob McShinsky ...more >>

TrippleDES (3DES) Encryption
Posted by Josh Newman at 1/18/2005 1:48:52 PM
I need to take a string and generate a MAC (Message Authentication Code) using TrippleDES and get the following result: In this sample the input string is "A9993E364706816ABA3E25717850C26C9CD0D89D" Break into blocks: Block 1 = "A9993E364706816A" Block 2 = "BA3E25717850C26C" Block 3 = ...more >>

HIGHLY URGENT: Does Passport authentication pass on to web service
Posted by Lopamudra at 1/18/2005 5:03:02 AM
I have 2 webservers, one running a web application and the other a web service. The web application calls a web method of the web service internally to get some data. This web application is a passport enabled site, hence when the user logs on, it requests the user to log in with passport. ...more >>

Re: Web.ASPNetHostingPermission
Posted by Dominick Baier at 1/17/2005 1:38:48 PM
your ASP.NET applications seems to run in partial trust. this is configured through the <trust level="xxx" /> setting in web.config or machine.config. change the "xxx" to medium. Dominick Baier - DevelopMentor http://www.leastprivilege.com nntp://news.microsoft.com/microsoft.public.d...more >>

License Compiler
Posted by Ldraw at 1/17/2005 10:31:04 AM
I am trying to compile a license file with lc.exe. I get this error ' LC0003 unable to resolve type'. The text file conytaining the license information appears to be incorrect but I cannot find an example that gives any useful information. License Compile(Lc.exe) in Visual studio help is ab...more >>

ASP.NET Authentication with XP
Posted by pmasters at 1/17/2005 4:57:02 AM
I have a .Net application that uses windows authentication. It is a contacts database. It picks up your username and compares it to a database. If you are the user whose record is showing then you get rights to amend it, if you are not then it is display only. With windows 2000 as the clien...more >>

Designtime licenses, I just don't get it
Posted by kozw at 1/17/2005 3:58:29 AM
Hi, I've been trying to figure out how the .NET Licensing is working, but I can't seem to understand it. I create a Licensed control using the standard LicFileLicenseProvider like this: [LicenseProvider(typeof(LicFileLicenseProvider))] public class LicensedLabel : Label { private Licen...more >>

access error when uploading a file
Posted by dalia caspi at 1/17/2005 12:53:02 AM
i have a asp.net application which uploads a file. i want to save the uploaded file on a remote server on the domain. this is the script: Dim plc As Integer plc = textbox1.PostedFile.FileName.LastIndexOf("\") plc = Len(clientFile.PostedFile.FileName) - plc - 1 ...more >>

Problem retrieving all security groups for user in Active Directory
Posted by kent.anderson NO[at]SPAM gmail.com at 1/16/2005 8:40:17 PM
Hello I am currently trying to retrieve all security groups from active directory for the logged in user on an ASP.Net page using C#. I am using refection to do this. The following code will return some of the security groups but not all: MethodInfo getroles = typeof(WindowsIdentity).GetM...more >>

Web.ASPNetHostingPermission
Posted by Higgs32Syr at 1/14/2005 4:23:26 PM
I'm trying to send mail as part of a VB.NET app. I'm using System.Web.Mail to do so, but when I perform the .Send() method, I get the following error... "Request for the permission of type System.Web.AspNetHostingPermission ........ failed". I'm new to .NET, but not to VB, and I've tried ev...more >>

PGP Encryption in .NET
Posted by Wouter vanEck at 1/14/2005 9:52:30 AM
Hi All, I don't know if this is the right place to ask my question but here goes. Does anybody know if there are .net components that implement PGP (Pretty Good Privacy)? If not, any articles or source code samples that used PGP API's (freeware / commercial) in .NET code? Any info is v...more >>

Form Authentication
Posted by rkbnair at 1/14/2005 7:11:11 AM
When we follow the Form Authentication, how can we force to the login page if an intruder types the querystring on the browser address bar directly? ...more >>

Enveloped Signature validation problem
Posted by Phil Hobgen at 1/14/2005 3:45:03 AM
Hi, I posted this in dotnet.xml, but got no response. Does anyone here have any ideas? ------------------- I am creating a digital signature (enveloped) using the SignedXml class. The Reference Uri is set to "". Everything seems fine when saved to file, and the signature verifies OK if ...more >>

copy file to remote machine with ASP.NET
Posted by is4xy NO[at]SPAM yahoo.ca at 1/13/2005 9:13:16 PM
Hi, I used the following code to copy file from local machine to remote machine. Z: is mapped drive. It can work well with Windows Application, but It can not work with ASP.NET. If I change mapped drive to local drive, it also work with ASP.NET. I have set impersonate in web.config. I think t...more >>

Microsoft DevDays 2004 - Smart Client - security demo question
Posted by one at 1/13/2005 12:57:03 PM
Hi there, Have you guys watched the Smart Client 3: Developing Secure Smart Client Applications by a presenter called Jeff Levinson (http://msdn.microsoft.com/events/devdays/sessions/). I have got a really really quick question regarding the security hole he found on the demo... (you n...more >>

Copy file to secure share, unable to logon
Posted by Todd Tingen at 1/13/2005 10:03:04 AM
I need to copy a file to share but, when doing it manually, I have to enter the username and password; I need to be able to do this programatically. I assume it has something to do with creating a WindowsPrincipal object to impersonate the user that I'm going to use to log onto the box and then...more >>

Determine Type's *PermissionAttributes through Reflection
Posted by LF at 1/13/2005 12:02:14 AM
Hi, Is it possible to determine Type's *PermissionAttributes through Reflection? For example, [SecurityPermission(SecurityAction.InheritanceDemand, UnmanagedCode=true)] class Class1{} How can I find out that SecurityPermission was applied to this type using Reflection? Not possible? ...more >>


DevelopmentNow Blog