Questions tagged [aspnet-regiis.exe]

Aspnet_regiis.exe is the ASP.NET IIS Registration Tool. It is used to register ASP.NET applications with Internet Information Services (IIS)

When multiple versions of the Framework are executing side-by-side on a single computer, the ASP.NET version mapped to an ASP.NET application determines which version of the common language runtime () is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool.

The tool can also be used to display the status of all installed versions of ASP. NET, register the ASP.NET version that is coupled with the tool, create client-script directories, and perform other configuration operations.

102 questions
0
votes
1 answer

ASPNET_REGIIS Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The parameter is incorrect

When trying to decrypt an old application's web config using ASPNET_REGIIS -pdf I get the error, 'Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The parameter is incorrect.' I am able to…
Nerakat
  • 1
  • 1
0
votes
0 answers

How can I transfer encrypted web.config settings

I ran the following command to encrypt credentials in web.config on my dev machine and tested the code and worked fine, however I published to the web server and it would fail as apparently the encryption is specific to the machine. I then tried to…
Bbb
  • 517
  • 6
  • 27
0
votes
1 answer

Keyset as registered is invalid exception when Importing a RSA Key Container using aspnet_regiis

I have been trying to import a RSA key container from aspnet_regiis. Steps are as follows. Run the command prompt as administrator cd C:\windows\Microsoft.NET\Framework\v2.0.50727 aspnet_regiis -pi myrsakey E:\keyfile.xml When followed the above…
Dulanjali
  • 27
  • 1
  • 7
0
votes
1 answer
0
votes
1 answer

Failed to encrypt the section "appSettings" using provider "MyProvider". Error message from the provider: Object already exists

This question has been asked many times but the accepted answers do not apply in this situation. This is not a duplicate. From a command prompt on the server, opened as Administrator, I run the aspnet_regiis command to encrypt the appSettings…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
1 answer

Encrypting connection string - allowing other machines to decrypt

I'm trying to develop a C# Winform application, which connects to SQL database. My configuration file looks as follows:
0
votes
1 answer

Configuration file - encrypting connection string

I'm trying to develop a C# Winform application, which connects to SQL database. So far I was able to move the most sensitive data from my XML configuration file to an external XML configuration file, but that's it. The last thing I have to do is to…
0
votes
1 answer

ASPNET_REGIIS Encrypted connection string working in one server, but not working in other sever

Encrypted the connection strings in Web.config using ASPNET_REGIIS -pef / -pdf utility, The Connection in web.config working fine in one server but not working on second similar server when copied. Both are Windows Server 2016 and have .Net…
Pradeep H
  • 592
  • 2
  • 7
  • 27
0
votes
0 answers

EF Core Interceptor

Two questions: in EF we are using an interceptor defined in the Web.Config: We are interested to move to ASP.Net Core but understood that in EF Core there is no interceptor and is not in the road map. 1- I was wondering if by chance someone found a…
0
votes
0 answers

ASP.Net: After encrypted the web.config "ConnectionString' ,tlide(~) paths showing 404 error

I have encrypted the web.config connectionString, then Tilde (~) releted paths are redirecting to 404 errors, Ex: ~/ images/ title.png not opening, it showing 404 error, Please suggest me any IIS settings need to change. Error screenshot: enter…
MPK
  • 1
  • 1
0
votes
1 answer

Running aspnet_regiis for encryption in loop exists after first failure/success operation

I am writing a powershell script which reads a CSV which includes path where Web.config/App.config resides applications. The script simple tries to encrypt the configuration files. A snippet of the code is as: foreach ($config in $configs) { …
Skaranjit
  • 764
  • 9
  • 26
0
votes
0 answers

Installation of encryption key in windows 10

For development purposes, I need to install an RSA key into my local machine. The guide says: Install the RSA key by running following command from the prompt on your machine: c:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis…
0
votes
2 answers

c# configuration for class library

I have a class library which by default doesn't have an app.config. The calling app for this library is "explorer.exe" and I won't be able to use explorer.exe.config to add my settings. Is there any way I can have my class library read an…
Sniipe
  • 1,116
  • 3
  • 13
  • 28
0
votes
1 answer

How to encrypt connection strings section when debugging

I need the following setup: When debugging my application, I want my connectionStrings config section to be encrypted via aspnet_regiis When publishing the application, connection strings should be normal, unencrypted elements, where the…
Bassie
  • 9,529
  • 8
  • 68
  • 159
0
votes
1 answer

System.TypeInitializationException error after encrypting the Connection string in web config

If I dont use encryption then my application works without any error. But I am trying to encrypt Entity framework connectionstring using below given command. aspnet_regiis -pdf "connectionStrings" "C:\SecureConStringApp" But I am getting below…