all groups > dotnet security > january 2006
Filter by week: 1 2 3 4 5
Great Offerings for Microsoft Partners, ISVs and Developers
Posted by Alex at 1/31/2006 11:16:32 PM
Hello,
On Wednesday, Feb 1 at 2pm PST Microsoft will be hosting a webcast for
Microsoft ISV Partners, or those considering becoming an ISV Partner.
The webcast will be presented by the Microsoft ISV Advisory Services
team who will discuss the great value and benefits available for
Microsoft... more >>
user authentication without iis
Posted by the.duckman NO[at]SPAM gmail.com at 1/31/2006 2:27:14 AM
Hi,
Im setting up a win32 based client/server aplication in C#. (Not a
webservice)
The server (a pc) must perfrom an action when the client (pc or pocket
pc device) sends it a message via TCP/IP communication.
Because of company policy I can not use IIS. So I must do my own user
authenti... more >>
Problems deploying security policy via .msi
Posted by Mark P at 1/30/2006 1:51:21 PM
Hi,
I am deploying my security policy (.NET 2.0) via
an .msi. Problem is it seems I have to run it twice to
get the policy changes to take effect. I have tried giving
it several minutes to run and I have tried rebooting, but
the first time through never does the trick. For my test,
after I g... more >>
Problems authenticating server for SSLStream negotiation
Posted by Lee Gillie at 1/30/2006 11:30:41 AM
This is absolutely driving me nuts. Any hints would be GREATLY appreciated.
I am trying to negotiate a clear channel socket to SSL. Thing is it
works great on two development computers, but falls flat on its face
when I go to deploy to a server.
I have written both CLIENT and SERVER for FT... more >>
Impersonation a user for the duration of a method.
Posted by Rainier [MCT] at 1/30/2006 5:29:02 AM
Hi,
I'm running a ASP.NET application using the anonimous user. (ASPNET)
I don't want the user to log in and I don't want to give any more rights to
the ASPNET user either. So I thought of impersonating a local user just for
the duration of a single method.
That user will access the local S... more >>
log on to one, log on to all - web apps
Posted by Alex Lakeland at 1/30/2006 12:00:00 AM
I have the following scenario:
2 win2k3 servers with MCMS2002, load balanced
3 win2k3 SPS2003 servers in medium server farm configuration
1 SQL2k/2k5 environment (probably a cluster)
All users are external and log on with credentials in active directory on
the same domain as the servers above... more >>
Accessing remote network share through ASP.Net
Posted by John Fleming at 1/29/2006 12:42:35 PM
Hello,
I am building a web application with the following components:
2 Web Servers
- Windows Server 2003
- IIS 6
- .Net Framework version 2.0
- Reside in Domain A
2 Clustered Database Servers
- Windows Server 2003
- SQL Server 2000
- Reside in Domain B
I am also setting up a... more >>
HOWTO: Prevent Dynamic Loading of internal Types
Posted by Michael Primeaux at 1/28/2006 10:02:16 AM
How can I prevent someone from dynamically loading an internal type from my
assembly?
Kindest Regards,
Michael Primeaux
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to call wrappers for the Crypto API like xxCryptoServiceProvid
Posted by Dec at 1/27/2006 9:36:27 PM
I would like to create a class similar to RSA and MD5 CryptoServiceProvider.
I need to call CryptAcquireContext in the .ctor and call CryptCreateHash,
CryptHashData, CryptDeriveKey, CryptDecrypt, CryptEncrypt etc
In the .ctor RSA and MD5 CryptoServiceProvider and other classes calls
somehow ... more >>
Problems using SMO to impersonate SQL connection (SQL2k Dev SP4 + .NET 2.0)
Posted by Daniel Portal at 1/27/2006 4:11:27 PM
Hi there,
Im trying to use SMO to impersonate a typed (not logged) user, using
Windows Auth to connect SQL Server!
Even though, I'm having many problems while trying to trace the
exception I got!
If you manage to perform a Windows Auth connection to SQL Server using an
inputte... more >>
SslStream object for IMAP
Posted by asnowfall NO[at]SPAM gmail.com at 1/27/2006 1:09:01 PM
I am trying to connect & exchange data with IMAP server using SSL.
IMAP has command for logging in. Ex:
A100 LOGIN "abc" "agc"
I am using following code to do this...
m_pSocket.Connect( m_pobjIMapServerIPAddress, 993);
m_pNetworkStream = new System.Net.Sockets.NetworkStream( m_pSocket... more >>
Extracting Public key
Posted by Rajesh at 1/26/2006 12:19:02 AM
Hi,
Here is the scenario -
I have priavte key stored on a Smart Card device on the client end. On the
server end the corresponding certificate is stored in the AD.
How do I retrive the relevant public Key from the certificate stored in AD?
I am able to extract the certificate from AD (... more >>
Sign assembly
Posted by I.Katzav at 1/25/2006 5:15:02 PM
hello i am using the enterprise library, and trying to resolve this issue on
building:
Error 3 Assembly generation failed -- Referenced assembly
'Microsoft.Practices.EnterpriseLibrary.Security.Cryptography' does not have
a strong name PowerJobsDll
My assemblies i sign using the visula st... more >>
System.Environment.UserName
Posted by Brian P at 1/25/2006 9:37:08 AM
How secure is it to use System.Environment.UserName for login purposes.
We have an Active Directory so I was thinking to just use UserName
instead of prompting for a username and password and having to
authenticate myself.
There isn't a high need for water tight security, so this seems ... more >>
X509Certificate2
Posted by Rajesh at 1/25/2006 6:46:02 AM
Hi,
I am trying to find out that how do I get the class X509Certificate2?
I have .net framework 1.1 with me. When I look at
System.Security.Cryptography the only class available to me for Certificates
is X509Certificate.
Thanks
--
Rajesh Thareja... more >>
data encryption advice needed
Posted by SharpCoderMP at 1/25/2006 1:44:39 AM
hi,
i need to implement some data encription in my app. the trick is that i
need the app to be able to decrypt but not encrypt that data. this is
needed to make sure that data the app needs, comes from the trusted
source. the app cannot be able to reproduce encription.
can someone point me ... more >>
Security Exception thrown
Posted by ksrajalakshmi NO[at]SPAM gmail.com at 1/24/2006 10:15:22 PM
Hai,
I've paste the shortcut of the exe in another computer which that
connected with my computer via LAN. But when I tried to execute the
shortcut of the exe it pop up Just- In-Time debugging where the error
message is " An exception System.Security.SecurityExcept=ADion" has
occured in MyProg... more >>
ClickOnce and Certificate
Posted by Rene at 1/24/2006 4:17:33 PM
I am looking into deploying a ClickOnce application and am reading all these
things about how you need a certificate to make ClickOnce work.
After looking around, I found that I can use a utility called MakeCert.exe
to make my own certificate but then the documentation says that the
certifi... more >>
signing and encrypting
Posted by Eshaghi at 1/24/2006 7:46:03 AM
Hello!
I have implemented a application, which encrypts and signs XML documents.
Each time when the application runs, a XML document will be signed or
encrypted, and a secret key will be created, which can used to verify or to
decrypt the XML document.
My question is: is there a possibil... more >>
Session variable. Secure ?
Posted by Jim Andersen at 1/23/2006 3:09:17 PM
I'm developing a secure app. So I have a connectionstring in my web.config.
That string is encrypted. So it must be decrypted when I want to use it.
The question is, do I have to call the decrypt procedure every time (which
is a LOT of times), or can I do it once, and then have the unencrypte... more >>
APTCA & Visual Basic .NET 2005
Posted by Marcelo at 1/23/2006 2:12:47 PM
Hello.
I'm building a user control with visual basic .net 2005.
I want to set the AllowPartiallyTrustedCallersAttribute attribute
using:
<assembly:AllowPartiallyTrustedCallersAttribute()>
at the assembly level, but it doesn't work.
the compiler says:
Type 'AllowPartiallyTrustedCallers... more >>
need help immediatly
Posted by tushardave at 1/22/2006 8:35:08 PM
HI,
I am subscriber of these group and i need immediate help for my problem
My problem as under
I am using Asp.net "aspx" and Database is oracle 10g
I am storing a "jpeg","jpg","img" all image file in to database using
asp.net application
and also read it from database and view in the ... more >>
System.Security.Principal.IdentityReference
Posted by Michael Primeaux at 1/22/2006 6:15:24 PM
Would someone from Microsoft please explain what scenario required the
IdentityReference class in .NET 2.0 to be declared with an internal
constructor. I have serveral use cases that would benefit extensively from a
custom identity reference. However, that's not currently possible as the
I... more >>
Thread security
Posted by Robert Ginsburg at 1/20/2006 10:00:36 AM
I have a client/server scenario where I need the client to impersonate a
specific account, depending on rules established on the server. Essentially
this a call back event that happens occasionally where the server needs to
temporarily elevate the clients permissions to do some work. I really... more >>
COM and Windows control on webpage
Posted by poppy at 1/20/2006 9:19:02 AM
I have a windows control dll in my root folder and embedded it on a webpage
which works fine.
I then tried to make a reference to a COM object in the control which needs
to run on the client machine. I copied the dll for this object into the root
as well.
When I run the web application on... more >>
Having problem with Encryption using CryptoAPI
Posted by Rajesh at 1/20/2006 6:58:03 AM
Hi I Have following program.
When I run this program and try to encrypt the file using the "Encrypt"
button, the file gets encrypted. But every time i do encrypt, I get a
different output.
As per my knowledge of the cryptography, every time I encrypt same data
using the same key, I shoul... more >>
Publisher Security
Posted by Vadim Malishev at 1/19/2006 9:28:50 PM
Hello All.
Can anybody describe me why this code:
string assemblyPath = "myassembly.dll";
X509Certificate cert = X509Certificate.CreateFromSignedFile(assemblyPath);
Evidence evidence = new Evidence();
evidence.AddHost(new Publisher(cert));
AssemblyName asmName = AssemblyName.GetAssem... more >>
security issue with with windows service account
Posted by Hank at 1/19/2006 7:57:43 PM
Hi,
My windows service application contains an IpcChannel which listens msg from
client.
If I install it with MyServiceProcessInstaller.Account="LocalSystem" or
"LocalService", or "NetworkService". Then I got an exception
"System.Runtime.Remoting.RemotingException: Failed to connect to an IPC
... more >>
web service security that is interoperable
Posted by Secret Squirrel at 1/19/2006 1:25:06 PM
Hi,
What is the most secure option for web service security that is also
easily interoperable between .NET and java, or other technologies?
Suppose you are developing a .NET WS, and plan to have many callers
using many different technologies, which mechanism would you choose for
authenticatio... more >>
use CAS demand or not?
Posted by Secret Squirrel at 1/19/2006 1:21:05 PM
Hi,
If CAS policy is setup to deny an assembly ANC the permission
FileIOPermission, then if the assembly attempts to do File IO, the .NET
FW assembly that handles file IO should catch it, right? It shouldn't
be necesarry to put a check for FileIOPermission in the assembly
itself, and would se... more >>
encrypting app.config with RSA
Posted by Eric at 1/19/2006 1:06:02 PM
I'd like my application to encrypt certian secitons of the config file. I'd
like to use the System.Configuration.SectionInformation.ProtectSection API.
However, I'd like the application to be able to decrypt the file no matter
what user is using it or what machine they are running on. So I can... more >>
Mail merge with an MD5 hash.
Posted by jay NO[at]SPAM gloryfish.org at 1/19/2006 8:54:54 AM
Hello all. I'm working on a project for a community college which
allows the Alumni to update their contact information over the web. We
would like to mail the Alumni a physical letter which has the link to
the web form that collects the data. The Alumni then will enter in
their ID number which ... more >>
Kerberos S4U problem
Posted by Robert Ginsburg at 1/19/2006 8:21:26 AM
One of the constructors for a WindowsIdentity allows you to pass the UPN of
a user and have an identity created for that user. If your permissions are
setup correctly then the system is supposed to return you a delegatable
token that you can use for impersonation. I have been attempting just this... more >>
Problem with Security-
Posted by Thomas H. at 1/19/2006 6:55:27 AM
Hello,
I have a problem with security-settings in
a .NET Application.
The application has a strong name and is full trusted ("Trust an
assembly" - Full Trust),
..NET Security is set "Local Intranet - medium trust".
The application ist installed on a network-drive.
Working-Directory an... more >>
SHA1Managed class has different results in 2.0 vs. 1.1??
Posted by Bob at 1/18/2006 4:41:19 PM
We currently have an application running on .NET 1.1. It hashes certain
data using System.Security.Cryptography.SHA1Managed class. It has worked
out fine until we upgraded the app to .NET 2.0. SHA1Managed in 2.0 hashes
to a different stirng output when the input is exactly the same. Why wo... more >>
LogParser - Error
Posted by vsr at 1/18/2006 3:05:02 PM
I am reading the Event Log from application , its working fine when connects
to local coputers event log but giving the following message instead of the
actual error message when connecting to remote server's event log
-------------------------
"The description for Event ID in Source cannot be... more >>
Which Certificate store does IIS look at
Posted by Paul Phillips at 1/18/2006 7:50:34 AM
Which certificate store does IIS look at when someone tries to send something
through SSL to your website.
Thanks,
paul... more >>
User Not associated with a trusted SQL Server connection.
Posted by pat_whitted NO[at]SPAM hotmail.com at 1/17/2006 5:57:18 PM
I have a .Net app running on a Win2K3 server, with .Net framework
1.1.4322. On a separate Win2K3 server, were are running SQL 2000, with
no service packs (don't tell me about it - its a customer requirement).
The .Net app connects using a SQL login account, which has been granted
all the necessa... more >>
Directory access check
Posted by Birger Niss at 1/17/2006 12:34:07 PM
Hi,
I need to check the current principal's read-, write- and full control
access to a given directory without using try-catch.
Any suggestions will be highly appreciated.
Best regards
Birger Niss
... more >>
Application Security and Trust
Posted by Nancy Kafer at 1/17/2006 10:17:14 AM
I have a machine that is running the 2.0 version of the .NET Framework. I
have installed a VB .NET application (dll A) on this machine although
instead of installing the files to my local drive I am installing them to a
shared network location. I have another application that calls dll A. When I
... more >>
How can I access more properties of the AD Acount
Posted by NO[at]SPAM rturo at 1/16/2006 11:41:04 AM
Im developing a c# application and i want to access properties like the name
of the person. example:
DOMAIN\jsmith - I want to Access "John Smith" the same way Share Point does
for the its users.
Please help me. Thanks... more >>
Client/Server application with single login-SecureStream?
Posted by cmbardon NO[at]SPAM engmail.uwaterloo.ca at 1/16/2006 6:01:01 AM
I have a client/server application that uses TCP socket based
communication, and right now I'm using my own ID/password scheme.
Clients send an ID and password to the server, which authenticates them
against a table in a local SQL database. This requires users to keep
track of multiple logins/p... more >>
Securing a .NET webapp with ActiveDir and SQL-server?
Posted by jba020 NO[at]SPAM politi.dk at 1/16/2006 1:44:03 AM
I have previosly developed some small apps in Visual Studio .NET 2003
and MS SQL server.
Am now about to develop a secure webapp in .NET to be used on our
intranet, and I'd appreciate some input.
We are using Active Directory (AD), and MS SQL-server. I need some SSL
in the mix also. The word ... more >>
How to make Windows inaccessible from my software user?
Posted by Mahesh Devjibhai Dhola at 1/13/2006 6:08:22 PM
Hi all,
The following are my need:
1. When a PC starts, my software should come up directly without any user
interaction.
2. Only my software will be accessible to the user and they will not be able
to access anything from Windows - nothing at all.
3. A super user can access the software as we... more >>
Request.IsAuthenticated returning false when it shouldn't
Posted by thardy at 1/13/2006 9:19:14 AM
I'm having troubles with reading Request.IsAuthenticated in
Application_AuthenticateRequest. I have a scenario where I end up with
two .ASPXAUTH cookies, and there's no way in the world I can get rid of
both of them. I set a new one, but it doesn't matter - IsAuthenticated
always returns false... more >>
Issuing X.509 Certificates
Posted by Sadeq at 1/12/2006 3:00:28 PM
How can I programmatically issue X.509 certificates for my users? I
mean people give my program their public key and other characteristics
of themselves (like name, address, etc) and the program gives them a
digital certificate (*.cer,*.der, etc file) which is signed by my
private key.
Of cou... more >>
Instantiate Shell.Explorer.2 at runtime for a web page
Posted by jmi0 NO[at]SPAM att.net at 1/12/2006 10:57:37 AM
I want to create a custom user control to be used in a web page (by
object tag) as an assembly. The user control needs to have a web
browser control in it. Having tried with the managed
System.Windows.Forms.WebBrowser or AxSHDocVw.AxWebBrowser, none of them
worked from IE invocation unfortuna... more >>
SignedCms.ComputeSignature() gives "The recipient certificate is not specified" exception
Posted by Manoj K Srivastava at 1/12/2006 10:10:08 AM
The following code gives:
An unhandled exception of type 'System.InvalidOperationException' occurred
in System.Security.dll
Additional information: The recipient certificate is not specified.
SignedCms cmsMsg;
ContentInfo cInfo;
byte[] content;
content = new byte[] { 0, 1, 1, 2, 4, 6, 6... more >>
System.Security.SecurityException: Request failed.
Posted by danieljlord NO[at]SPAM hotmail.com at 1/12/2006 4:24:16 AM
Hi,
I'm getting the following error when running a VB.NET 2.0 user control
within Internet Explorer (i.e. embedded as an object in an HTML page):
"Microsoft .NET Framework
Application attempted to perform an operation not allowed by the
security policy. To grant this application the require... more >>
Couldn;t load assembly
Posted by rpaleja NO[at]SPAM gmail.com at 1/11/2006 2:36:16 PM
Hi,
I have created a custom key called "TestKey". Gave acess to NT
Authority\network.
Added code in web config...
<configProtectedData>
<providers>
<add keyContainerName="TestKey"
useMachineContainer="true"
description="Uses RSACryptoServiceProvider to en... more >>
|