Can't Open RSA Key Container

May 27, 2010

I've been developing an ASP.NET site on an older machine running XP home. I recently got a new Win 7 PC and moved all my project files across. When I try and run the project, I get this error message: "Failed to decrypt using provider 'MyRsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened." I realised that I encrypted parts of my web.config file using a RSA encryption. This is where the problem now lies. I'm not sure how to get that key working again so that I can use it on my new machine. I exported the key from the older machine and imported it using:

aspnet_regiis -pi "RSAProviderName" "C:RSA_configkey.xml"

This was imported successfully. I then ran the project, but the same error message came up. I figured it might be a permission thing, so I ran:

aspnet_regiis -pa "RSAProviderName" "Desktop" -full

This was also successful, but I still get the error. From reading around, I've seen people use "ASPNET" instead of "Desktop" (Desktop is my machine name). However, when I try and use "ASPNET", I get: No mapping between account name and security IDs was done. <Exception from HRESULT = 0x80070534 I can't work on the project until this is fixed,

View 1 Replies


Similar Messages:

AJAX :: Open ModalPopup From Inside A Tab Control / Container / Panel

Mar 17, 2011

This is the question, how to open a modalPopup from a Asp:Link button inside a Tab panel?

Runtime error is Asp:Link ID not found, and thats because its in Tab Control, whats the work around?

View 2 Replies

Web Forms :: How To Open The Redirected Page From Iframe To Open In The Parent Window

Feb 17, 2011

I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:

Response.Redirect("results.aspx");

This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:

Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]

View 1 Replies

Web Forms :: Open Word Document In Iframe Without Open / Save Dialogue

Aug 28, 2010

In my application users upload their word document and user has been given an option to preivew the uploaded document. Inorder to preview the document i put the following code in my page_load event

div1.InnerHtml = "<iframe name='iframe4' src='DocumentUuploaded/report.doc ' target='iframe4' frameborder='no' height='500' scrolling='no' width='800'></iframe>";

The problem is it is asking Do you want to open or save this file. How can i get rid of this dialouge box

View 3 Replies

Web Forms :: Open PDF File Directly In Browser Without Open Save Dialog?

Feb 22, 2013

I have created a pdf file using aspose and need to open it without saving the pdf.Is it possible.

View 1 Replies

Controls :: Open And Read Data From Open Office Document Spreadsheet

Jun 11, 2013

How to read data from OpenDocument Spreadsheet and show the data in gridview....

View 1 Replies

Forms Data Controls :: Maintain DIVs Open State When Sorting One Open GridView?

Feb 10, 2010

In code below, when I have more than one DIV open and I choose to sort one of the GridViews, all the other Open Div's will close automatically. How can i keep the DIV's in the state they are in when I sort any GridView?

[Code]....

View 3 Replies

Web Forms :: Click Imagebutton Open Window.open In Class 2.0

Sep 11, 2010

Click imagebutton open window.open in class asp.net 2.0

View 2 Replies

Open A File Share Link From Window.open Javascript?

Aug 2, 2010

I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?

View 1 Replies

Container Tag That Can Go In Head?

Jan 18, 2010

In a section in the <head> tags of my document I have code that lets me use the Id of my asp.net control from JavaScript like this:

<script language="javascript" type="text/javascript">
var customerId = '<%= Me.CustomerTextbox.ClientID %>';
</script>

However, if I want to modify the page structure in later stages of the page life cycle, it give me an error because I have the ASP tags in there. A work-around is enclosing the ASP tags in a server control like this:

<div id="customerIdContainer" runat="server">
<script language="javascript" type="text/javascript">
var customerId = '<%= Me.CustomerTextbox.ClientID %>';
</script>
</div>

But then I get a warning that a div tag is not allowed in the head tag. So is there a container tag that is valid in the head that I can add runat="server" to to make it a server control so I can workaround this problem without the warnings?

View 2 Replies

Tab Container / Autopostback

Jan 25, 2012

I have a tabcontainer with 5 tab panels in it. The second tab has two listitems, which require an autopostback, but this then defaults back to the first tab, is there a way it can stay on the same tab?

View 7 Replies

On User Click Open Button It Should Open Txt File?

Nov 12, 2010

When the user clicks on "OPEN" button, It should open up that(.txt) file which is on the file server in ReadWrite Mode (like in notepad) without any Access Issues.

Or simply has to be openend as temporary READONLY .Txt File. So that the user can close after viewing it.

View 8 Replies

Open Word Document Without Save/Open Dialog Box?

Feb 11, 2011

I want to open word file in internal window without Dialog box.I use below code.Its is working fine on local machine but when i upload this code on ftp server its is not working and giving me error of Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.

[code]....

View 5 Replies

AJAX :: Unclickable Tab In Tab Container

Aug 4, 2010

I have a tab container on a web page, in which several panels are loaded with heavy peice of data, what i do, i only load the defualt tab data on page load, and the rest of data(i.e data in other tabs) loads behind the screen(i.e using asynchronous request), just to speed up page rendering. now when the page completely rendered(with only default tab data) the load event of javascript fires and it start populating data into other tabs, in this situation when i click any other tab immediately after rendering, it shows the half rendered panel(i.e the data is rendering in panel or the back process is running), which looks awkward sometimes.

So i need to stop the click of any tab until the data into that panel(or in all the panels) fully rendered, by displaying a wait or progress bar image, and then opens up that panel. i need whenever user click on a tab, a wait image should display on the tab header until the panel fully rendered, and then panel will opens up, none of the panel displays half or no data.

View 9 Replies

Cannot Find Container In The Msdn

Aug 6, 2010

I usually use expressions like this

CommandArgument='<%# Container.DataItemIndex.ToString() %> '

But I could not find Container in the msdn,

View 2 Replies

MVC Custom Controls - Container

May 24, 2010

Is there a way to make helper in Asp.Net MVC to wrap other html like this:

<div class="lightGreyBar_left">
<div class="lightGreyBar_right">

<!--Content--> [code]...

So that helper will render containing divs and content that is passed to helper method as parameter.

View 1 Replies

Retrieving Cookie From A Container In MVC And C#

Jul 14, 2010

//Controller code
CookieContainer cookieContainer = new CookieContainer();
//makes new cookie here
cookieContainer.Add(myCookie);

//Service/Facade code
//myCookie gets passed here

How do I pull the cookie out of the container to make sure it's the right cookie?

View 1 Replies

Can Hidetwo Tabs In A Tab Container

Jun 24, 2010

I'm running into a weird issue.. Basically, a user logs into a page and based on his role status(admin or user) determines how many tabs he sees in a tabcontainer. If he is just a "user" then tab index 0 and 1 need to be hidden because they contain admin only functionality.

if(user)
{
Container.Tabs[0].visible = false;
Container.Tabs[1].visible = false;
}

However the problem is if I set more than 1 tab index to visible = false the entire container disappears. Could this be a bug? I know you can only have one tab visible at a time.

View 2 Replies

Security :: RSA Key Container Not Opening

Apr 19, 2010

My web.comfig file in the webserver is encrypted . I want to do a change to the config file. While I'm trying to decrypt from the command prompt on the server using following command. "aspnet_regiis -pd "appSettings" -app "/AppName" I endup with the following error message. Failed to decrypt using provider 'CustomProvider'. Error message from the provider: The RSA key container could not be opened. The RSA key container could not be opened. Failed! The same command has been working in other environments except in my servers. Also I'm using web forms and I tried the same in both the servers. I have gone through all websites but no use.

View 6 Replies

Security :: RSA Key Container Not Found

May 7, 2010

I am trying to debug on my local machine an application that has encrypted connection strings. The error when I go to register the Key Container is:

C:WINDOWSMicrosoft.NETFrameworkv2.0.50727>aspnet_regiis -pa "CompanyDirector
yKeyContainer" "PHXDEVELOPER26ASPNET"

Adding ACL for access to the RSA Key container. The RSA key container was not found. Failed! I am getting this when I run the debug:

Server Error in '/' Application.
Configuration Error

Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Failed to decrypt using provider 'CompanyDirectoryRsaProvider'. Error message from the provider: The RSA key container could not be opened.

Source Error:

[Code]....

Source File: C:ProjectsSystemInformationSystemInformationweb.config Line:
21
Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3082

And, last but not least, I did copy all the MachineKeys over into my MachineKey directory as well, with one explicitly saying CompanyDirectoryKeyProvider in it. What I am doing wrong and what do I need to do to correct this?

View 2 Replies

Security :: Export Rsa Key Container

Aug 25, 2010

1) I want to create a rsa key in c# and export the container. I am having difficulty. I create container like this:

[Code]....

The msdn example says I can export the container with this syntax: aspnet_regiis -pa "XML_ENC_RSA_KEY" "NT AUTHORITYNETWORK SERVICE". This does not work on my XP Host PC. I belive this is applicable for Windows 2003 Server. So what is the correct syntax for exporting rsa key container from XP host?

2) To get aspnet_regiis.exe path I did something like this:

[Code]....

But this path may be different for each host, based on the .NET verison installation. Is there a way to get the aspnet_regiis.exe path from registry or a environment varaible?

3) Once I get the path to aspnet_regiis.exe I want to invokve it from c# like this.Is this code correct?

[Code]....

View 1 Replies

Security :: How To Find RSA Key Container Name

Feb 17, 2011

Does any one know the cmd line call to retrieve the existing RSA key container name so that I can export these RSA keys to another machine?

View 2 Replies

Security :: Add Access To RSA Key Container

May 11, 2010

I have two administrator users on my machine. With the first one I am creating a machine level key:

spnet_regiis -pc "NetFrameworkConfigurationKey" -exp

and I see it created in "C:Documents and SettingsAll UsersApplication DataMicrosoftCryptoRSAMachineKeys".

Now I am trying to add access privileges with the second one:

"c:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_regiis.exe" -pa NetFrameworkConfigurationKey "XXX" Adding ACL for access to the RSA Key container... The RSA key container was not found. Failed!

View 12 Replies

AJAX :: Tab Container - Can't Add To Webform

Feb 22, 2010

I'm new to ASP.NET, and I'm self-taught. I suspect that's the cause of my problem, but here goes. I'm using .NET 3.5 and have installed the toolkit. I want to add a Tab Container to an AJAX Webform. When I drag the control from the toolbox to the Webform, nothing happens. I saw that someone was having this problem with extenders, but I don't believe the Tab Container is an extender. If I'm wrong, let me know, but shouldn't I be able to place the tab container directly on the webform?

View 5 Replies

MVC :: Unity Container Dependencies

Mar 1, 2011

After about 30 Minutes the whole Unity Container is away, that means that all my Dependencies rises null exceptions, because they can't get resolved.

Global.asax:

[Code]....
[Code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved