all groups > dotnet security > october 2006
Filter by week: 1 2 3 4 5
Accessing the DeopDownList in the LoginView
Posted by gilespy at 10/31/2006 9:13:02 AM
Hi!
I am using C# and Visual WEB Developer 2005.
I have a method
protected void DropDownList1_SelectedIndexChanged... {
this.DropDownList1.SelectedValue.ToString()...
//more code
}
After I have put the DropDownList in the LoginView control, I can not access
the list anymore... more >>
Impersonation testing
Posted by Chris Geier at 10/31/2006 9:12:01 AM
Greetings and Thanks for reading.
I am trying to build some testing tools for Kerberos and Kerberos
delegation. Where I am headed currenty is a simple webpage that calls a
webservice. The webservices only job in life is to return the identity of
the calling user. While this is simplistic... more >>
Kerberos Token Renewal
Posted by shankar NO[at]SPAM ozcap.com at 10/30/2006 4:46:35 PM
I'm using Microsoft.Samples.SSPI dlls to get the kerberos token and send
the ticket server. If kerberos ticket is expired, this dll throws exception.
My questionsis , in dot net, Is there a way to identify whether ticket is
expired and if expired get a fresh kerberos token by providing user
cre... more >>
what is best way to talk to https webpages within .net? any good librarys for talking to https websites?
Posted by Daniel at 10/30/2006 3:46:03 PM
what is best way to talk to https webpages within .net? any good librarys
for talking to https websites?
... more >>
Unhandled exception vs handled (security issue)
Posted by Tergiver at 10/30/2006 2:40:02 PM
An exception occurs when attempting to run the application (app1) from a
network drive. I understand what the exception is and how to fix it by
granting the application permission on each client. This is a related but
different question.
app1 generates the following dialog:
"app1.exe - CLR... more >>
False
Posted by Richard G at 10/28/2006 5:38:01 AM
HELP! What do I need to do to get rid of the following rogue spyware? It
pretends to be genuine by using the Windows Security Shield. It is driving me
mad and I have tried various anti-spyware systems without success..
The message reads as follows:................................
System Se... more >>
Very Urgent: How to recover EFS Files
Posted by Gillio ZAHR at 10/28/2006 2:04:01 AM
Hello i have encrypted a folder that is very important my O/S is WinXP
Professional + SP2 but i had a problem on my laptop so i installed a new O/S.
I made a mistake cause i didn't saved my certificates so now when i want to
access the files inside my folder (they are .txt, .doc, .pdf, .vbp) th... more >>
accessing emails using owa ... traceable?
Posted by help!! at 10/27/2006 2:28:01 PM
Both at work (Entourage is too slow) and when I'm out of the office, I access
my e-mail via our exchange server using a mac and IE, through microsoft
outlook web access. There is a password 'system' in place that uses certain
letters of our names - we are given our passwords and few people cha... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can I retrieve Unix box OS info using DirectoryEntry Property OS?
Posted by Pucca at 10/27/2006 8:53:02 AM
Hi, Using the following code, will it work for the Unix box that's on the
network's domain? Thanks.
switch (child.Parent.Name)
{
case "CN=Computers"://Computer
... more >>
Help!! InvalidOperationException in GetProcessesByName!!
Posted by Eugene at 10/26/2006 5:18:01 PM
I used "Process.GetProcessesByName" method under XP with no problem.
Under Vista it throws "InvalidOperationException" if the user is not
Administrator.
Please help.
Eugene.... more >>
System.String vs SecureString
Posted by andersch at 10/26/2006 1:11:02 PM
Hi
I have three questions for my thesis (diploma) presentation:
1. Why is there no effective way to clear out a System.String object from
the memory? Why can't a System.String object be programmatically scheduled
for garbage collection?
2. When I convert a SecureString to a System.Strin... more >>
Security problems in .Net web application
Posted by vhbil at 10/26/2006 12:00:00 AM
I have a .net user control which purpose is a chat client and I am getting
the error:
---
System.Security.SecurityException: Request for the permission of type 'System.
Net.DnsPermission, System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.
At System.Security... more >>
WinForm user authentication
Posted by Diane Yocom at 10/25/2006 10:57:23 AM
Can someone point me in the right direction for finding out how to do custom
authentication in a WinForm application?
I have a WinForm (VB.Net) application with a login screen. I want my users
to input their username and password, then I will authenticate them against
my database. That's ... more >>
Move.file
Posted by 5bp at 10/24/2006 1:01:02 PM
Hi,
Hopefully Ive posted this correctly. I have a small app that loops through
a directory to copy files to another server. (This is fine)
The directory on the other server has been secured with only certain users
allowed access.
I use the file.move command in vb.net to move the fil... more >>
encryption prob
Posted by Heron at 10/22/2006 7:42:15 PM
Hi,
I have a problem with my decryption, the encryption seems to work fine but
when I try to decrypt the encrypted string I get an exception "Padding is
invalid and cannot be removed." thrown on sreader.ReadToEnd(); so could
anyone tell me what I'm doing wrong?
public class MyRijndael
{... more >>
X.509 Certificate store - getting - creating certs
Posted by John A at 10/22/2006 1:43:02 PM
Hi I am playing around with the Peer to Peer example provided by Justin Smith
in the October issue of the MSDN Magazine. One of the things that the sample
application "Picture Viewer" does is to attempt to get a X.509 Cetificate
from the Certificate Store.
<code>
private X509Cer... more >>
How do I determine if a windows identity is authenticated to the network domain
Posted by JohnK at 10/20/2006 8:07:15 AM
Hello:
I have a Click Once application which makes a secure remoting call to
the server. The server can see the windowsidentity of the person making
the call and can then do authorization checks and pass that information
back to the client.
This works fine when I run the application in-hous... more >>
Credentials Double Hop
Posted by mgk at 10/20/2006 4:53:02 AM
Hi!
I've setup everything to solve this issue but I still get the message "Login
failed for user 'NT AUTHORITY\ANONYMOUS LOGON'."
I have the tags in webconfig
<authentication mode="Windows" />
<identity impersonate="true" />
I have the SQL connection string
"Persist S... more >>
Question on the use of CryptoStream
Posted by Roy Chastain at 10/19/2006 2:13:42 PM
The example code in the RijndaelManaged class documentation has the
following
RijndaelManaged myRijndael = new RijndaelManaged ();
ICryptoTransform encryptor = myRijndael.CreateEncryptor(key, IV);
MemoryStream msEncrypt = new MemoryStream();
CryptoStream csEncrypt = new CryptoStream(msEncr... more >>
COM+ Security error
Posted by Devin at 10/19/2006 11:23:17 AM
I am trying to access a COM+ component through embedded code of my
Reporting Services
report (an ASP.NET application). I did everything that Reporting
Services told me to use an external dll, but I am still getting the
following error:
System.Security.SecurityException: Request for the permi... more >>
SecurityException thrown when serializing custom exception class
Posted by Martin Liversage at 10/19/2006 3:22:01 AM
I want to create a custom exception class that contains an additional field.
However, when I test my exception class I have a problem with serialization
where a SecurityException is thrown. Since I believe I have followed all the
rules (including using FxCop on my class) I have tried to simpli... more >>
How to deploy a VS2005 VB app without signing the clickonce manifest and assy
Posted by Phillip at 10/17/2006 10:44:29 AM
I would really like to avoid having to reinstall this app on 20 some
users on our local network because the Certificate expires after a
year. But as soon as I uncheck the "Sign the ClickOnce manfiest box" it
checks itself after I rebuild the app and then the publish fails with
the error:
Sign... more >>
Seeking Advice on RSA
Posted by ed at 10/17/2006 9:20:02 AM
I'm working on a project that uses a combination of an ASP .Net 1.1
application, and a C# .Net 1.1 forms application to securely get data from a
server to the client.
The way I have it working now is the C# app posts a request (using
HttpWebRequest) that includes a command (that tells the s... more >>
ActiveDirectory group membership in offline profile
Posted by tbb NO[at]SPAM uni.de at 10/12/2006 11:28:43 PM
Hi
I have written an application in which I am using AD groups to set the
program permissions.
sample code:
System.Security.Principal.WindowsIdentity ident =
System.Security.Principal.WindowsIdentity.GetCurrent();
System.Security.Principal.WindowsPrincipal prin = new
System.Security.Prin... more >>
.NET 2.0/ VB 2005 application-Security Policy issue
Posted by barabel at 10/12/2006 2:35:01 PM
On some of our Win2k3 (x64) servers we are getting the following error
message with our application:
"Application attempted to perform an operation not allowed by the security
policy."
This app needs to read/write registry keys and read the local file system
(outside the directory tree t... more >>
.NET 2.0 - Security Issue with Win2k3 Visual Basic 2005 app
Posted by barabel at 10/12/2006 2:31:01 PM
I am trying to figure out some strange behavior we are seeing with an
application we've recently created using Visual Basic 2005.
The application works fine on some of our systems, but on others it gives us:
"Application attempted to perform an operation not allowed by the security
policy"... more >>
Security Excetion while Rebooting a remote computer using WMI
Posted by -pb- at 10/12/2006 9:33:52 AM
Hi,
I am trying to rebbot a remote computer using WMI in c# but it failes
and riases an exception called "Security Exception". What seeting i
need for code level security which gives me an access to use the
System.Managent namespace.
... more >>
Why am I not trusted?
Posted by Sid DeLuca at 10/12/2006 8:53:01 AM
I am trying to secure an Excel smart document using WSE3 and VSTO. I have
Office 2003 Pro, VS 2005, WSE3, and VSTO installed (not SE).
I have downloaded the Excel Invoice Sample application and modified it to
work with a web service I developed that is secured using WSE3 extensions and
the... more >>
Creating MSI for installing .NET security policies
Posted by David++ at 10/12/2006 7:38:02 AM
Hi folks,
I'm deploying my app to a network share and I need the security permissions
installed on the client. AFAICT I cannot use ClickOnce because ClickOnce
deployment doesnt allow user to specify install location i.e. Network share.
So I have gone down the route of creating a Strong Name... more >>
The remote server returned an error: (403) Forbidden in webrequest
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/12/2006 5:13:20 AM
Hi all,
I am using webrequest and webresponse to chekc validation of url.
while validating url if i open that url in IE it is working properly
but through code it is showing error as shown in subject linke.
can anyone help me in solving this problem.
Please help me asap.
thanks in ad... more >>
Which encryption type ????
Posted by serge calderara at 10/12/2006 4:54:02 AM
Dear all,
What is the guide line or rules to selectr the proper enryption type like
DES, triple DES, RCA2, Rinjnael ?
Does the selected always the hihest bits encryption is the key in spite of
performance ??
thnaks for comments
regards
serge... more >>
IL code fails with VerificationException
Posted by Paul Hatcher at 10/11/2006 1:02:34 PM
Hi
We have a requirement to get the non-virtual version of GetHashCode for any
object (value or reference type). There is a call
System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode, but this fails
under some circumstances on 1.1 when passed Int32 and so we have some IL
code to achi... more >>
Effective FileSystemRights for a WindowsIdentity???
Posted by Ed Sutton at 10/11/2006 8:42:30 AM
Is there a FileSecurity method that can determine if the current
WindowsIdentity has "effective" file access permissions?
The challenge is the current identity may be "MYDOMAIN\JDOE", but I do
not know how to determine if a group this identity belongs, for example
"EVERYONE", permits write ... more >>
Weird behaviour of the PrincipalPermission attribute
Posted by Amid at 10/10/2006 11:47:02 PM
Let's suppose we have the following class:
[PrincipalPermission(SecurityAction.Demand, Authenticated = true)]
public class TestClass
{
[PrincipalPermission(SecurityAction.Demand, Role = "Administrator")]
public void CallMe()
{
PrincipalPermission MyPermission ... more >>
Cannot decrypt (NTE_BAD_DATA)
Posted by Levy at 10/10/2006 12:00:00 AM
Hello,
I am trying to encrypt a block of data using RSA (in a C# webservice on =
a Win2003 server machine) and then decrypt it (using CryptoAPI from C++ =
on a WinXP machine). I cannot get it to work, I always get NTE_BAD_DATA.
To encrypt, I do the following:
CspParameters p =3D new CspPa... more >>
Help me to understand Code Access Security. I don't get it.
Posted by Ken Varn at 10/9/2006 4:01:40 PM
I have looked at several books and tutorials on .NET Security and frankly, I
am in a fog on Code Access Security. I don't get it. Could someone please
explain the need for CAS and some practical examples of why and when it is
necessary to implement it?
--
-------------------------... more >>
Help me to understand ??
Posted by serge calderara at 10/9/2006 4:01:02 AM
Dear all,
I ma studying security stuff to prepare my next exam and in this study I am
face to different example which connect to database within a
ServicedComponent..
My question is what is the adavantang of using this ServicedComponent
features if no interest on Object pooling, Applicat... more >>
UserControl on Web Page - can I use dependent assemblies on client
Posted by Craig P at 10/7/2006 1:50:01 PM
I want to display a UserControl on a web page using an <object> tag. The
control has dependent assemblies that are quite large. These assemblies are
installed on the client, but I don't see a way to use them. The dependent
assemblies are always download from the web server resulting in into... more >>
CAS and Strong Named EntLib 2.0 Assemblies
Posted by Mike at 10/6/2006 2:02:02 PM
My goal is to run .NET assemblies referencing Entlib 2.0 from remote network
shares.
I've got a successful strong named build of Enterprise Library 2.0, and I
can build strong named assemblies referencing these assemblies. I've then
used the Increase Trust wizard to trust all assemblies ... more >>
Any Obfuscator can hide the Key & iv?
Posted by Jon at 10/6/2006 9:56:01 AM
Hi,
In my program i use the TripleDES class to do the encryption, and i have
key( ) and iv( ) in that class for encrypt/decrypt a string.
I do not have any full version of obfuscate, and I only use dotfuscator
which comes FREE with VS2005. However my problem is that, now using
Reflector, I... more >>
XML files and .Net, digital signatures, WebService Security
Posted by x-ref at 10/6/2006 9:31:02 AM
I am being told the following as it relates to .Net, digital signatures and
WebService Security.
>>>>>
If any of our XML files are signed (which happens when being serialized
through .net as part of WS-Security), then the files themselves will be
completely corrupted if opened.
Opening ... more >>
interop assembly requiring full trust
Posted by fridmada at 10/6/2006 7:57:01 AM
Hello all,
I've published application with partial trust option. When I'm installing it
I haven't any problem, but when I try to run it, I've failed with warning
message "Warning MSB3183: Reference "Interop. Microsoft.Office.Core.dll" is
an interop assembly requiring full trust". The same f... more >>
Thread.CurrentPrincipal only set once
Posted by Claus Konrad at 10/5/2006 1:51:02 PM
When having the AppDomain.Current.SetPrincipalPolicy(WindowsPrincipal) static
method set, the current process's Principal is propagated to the current
thread to be used for Role-based access check.
This happens the FIRDT time one asks for this property of the thread.
Now - when doing an imp... more >>
CASPOL - StrongName trusts not being applied
Posted by Adam Clauss at 10/5/2006 7:28:37 AM
OK, I have gotten a bit more familiar with using caspol. I am working with
a C# library which is embedded in an HTML document (loaded as an ActiveX
object in Internet Explorer).
I first tried a URL condition (http://hostname/*). This worked fine for us,
with the downside being that we are... more >>
TripleDES output size
Posted by Arturo Buonanni at 10/4/2006 6:11:29 PM
Hello to all,
I'm new to cryptography and I've to implement encryption of data into
a database.
I'm using .NET framework TripleDESCryptoServiceProvider to crypt and
decrypt strings.
Anyway I can not find any reference on how to calculate the length of
the encrypted string based on the length... more >>
strong name validation failed problem
Posted by Darren Mar-Elia (MVP) at 10/4/2006 5:29:21 PM
I've written a .net 2.0 Winforms app that contains a reference to a GPMC
(Group Policy Management Console) DLL. The DLL is distributed with the app.
When I install the app an attempt to invoke an operation that uses the DLL,
I get a strong name validation failed error on that DLL. The DLL is s... more >>
Trusting a location for Framework 2.x
Posted by Kevin S Gallagher at 10/4/2006 12:58:40 PM
I have a very simple Windows form application which opens a MS-Access
database and fails because I assume its an untrusted location on our Novell
Server. After looking through the Framework configuration tool under admin
tools in Control panel I don't see any method to make a location trusted.... more >>
Problem with pkcs #7
Posted by Tommy at 10/3/2006 4:00:18 PM
I'm building a DLL to encrypt and decrypt information with certificates
in
..net 2.0.
I have working on something very similar like this link
(http://windowssdk.msdn.microsoft.com/en-us/library/ms180956.aspx), but
i
have a problem.
_ When i send or receive a crypt message from another hos... more >>
Genereate Key with SecureString and Rfc2898DeriveBytes
Posted by andersch at 10/1/2006 9:50:01 AM
Hi
Is it possible to generate an encryption key with a SecureString and the
Rfc2898DeriveBytes class?
Thanks and Regards,
andersch... more >>
|