473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

SSPI-Error when impersonating to a fixed server account in ASP

System.Security.Cryptography.Utils._CreateCSP throws a
System.Security.Cryptography.CryptographicExceptio n with the message "file
not found" when we impersonate IIS5 to a fixed account from web.config. If we
let it run under the ASPNET user things are fine.

does anyone have an idea what goes wrong here?

web.config:
<identity userName="server_account" password="password"/>

default.aspx (to verify the error):
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Security.Cryptography;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
using (RSA rsa = RSA.Create())
{
string a = rsa.ToXmlString(false);
Label1.Text = "succeeded: " + a;
}
}
catch (Exception ex)
{
Label1.Text = ex.ToString();
}
}
}

Sep 4 '06 #1
0 868

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve R | last post by:
I am using the ConstructionEnabled attribute to pass in a SQL connection string. <Transaction(TransactionOption.RequiresNew), _ ConstructionEnabled(:="Data Source=mymacinename\NetSDK;Integrated...
1
by: Il Ventu | last post by:
Hi My company uses a Windows 2000 server with MS SQL Server 2000. We have many clients with administrative software that use the MS SQL server, the problem is that we experimented randomly the...
2
by: Ken | last post by:
How can I copy data from SQL to MS Access using dsn-less connection and not using SQL DTS? I have this but am stuck. I just want to do an export but can't figure out how to do a "select into". ...
0
by: Josh Blair | last post by:
Hello, I've been looking for an example of how to use SSPI for validation from within C# much like the Q180548 sample code in C++. Has anyone seen anything like this? I've found a VB6...
9
by: Kristijan Marin | last post by:
Hi, I have a project to do, that has to transfer files over SSL/SSH connection.(FTP over SSL or some other method) I searched a lot but didn't find anything usefull :(( Has anyone any clues...
1
by: Srinivasa Reddy K Ganji | last post by:
Hi I have come across this type of code at many places. New SqlConnection("Data Source=(local);Initial Catalog=XYZ;Integrated Security=SSPI;") I assume that the database connection details...
8
by: Sandy | last post by:
I have two tables, tblPost - (Cols PostID, TopicID, UserID, Question, PostMsg and PostDT) and tblTopic - (Cols TopicID, Topic). I am trying to get tblPost.Question and tblPost.PostDT into...
2
by: Alan | last post by:
Dear all, I want to develop a program and there is a logon page. How can I check the logon name of the domain and the password are matched that the user type in? Thanks Regards, Alan
3
by: equ | last post by:
It makes no difference if I'm working with Enterprise Manager, Query Analyzer, Access, self written app with OleDb or Visual studio 2003 builtin DB manager. Everything is fine but aufter some...
5
by: znubbe | last post by:
Hi, I hope anyone can help me with this problem. I have a field of image type in a SQL 2000 database. I'm using this code to insert a document: Dim conn Dim rs Dim oStream
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.