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
4
votes
1 answer

Deploying pre-encrypted configuration files to a production environment

We want to encrypt all our web app configuration files that we deploy to a server. We'd prefer to do this as a step in our build process and include the pre-encrypted files inside the MSI. This means that our build server (encryptor) and production…
Eoin Campbell
  • 43,500
  • 17
  • 101
  • 157
4
votes
1 answer

aspnet_regiis -i gives "webengine4.dll" error after installing MVC 4

I recently installed MVC 4 Beta, and, when I hit F5 for any of my MVC 4 projects I get the error below. Also, if I run aspnet_regiis -i, I get the same screenshot. Is there a way to repair just this one dll? Or, should I wipe out everything .NET-…
Ian Davis
  • 19,091
  • 30
  • 85
  • 133
4
votes
3 answers

ASP.NET Encryption - aspnet_regiis - Farm

We have website that uses "NT Authority\Network Service". Response.Write(WindowsIdentity.GetCurrent().Name); We are currently using the following command to encrypt the config files. aspnet_regiis -pc "NetFrameworkConfigurationKey" aspnet_regiis…
LCJ
  • 22,196
  • 67
  • 260
  • 418
4
votes
1 answer

Encrypt custom config section in ASP.NET using aspnet_regiis

We are using a custom config section (via the NameValueConfigSection) to contain our settings. These settings are externalised from web.config via configSource. So, entries in web.config look something like this:
Kram
  • 4,099
  • 4
  • 39
  • 60
4
votes
2 answers

How to properly encrypt my Web.config using aspnet_regiis.exe?

Based off of this page, I did the following: Went to "All Programs" -> "Microsoft Visual Studio 2012" -> "Visual Studio Tools" -> "Open VS2012 x64 Native Tools Command Prompt". Typed: aspnet_regiis -pe "connectionStrings" -app…
Analytic Lunatic
  • 3,853
  • 22
  • 78
  • 120
3
votes
1 answer

How do I select/enforce AES encryption with aspnet_regiis to encrypt web.config values?

I need to encrypt part of our web.config for our ASP.Net 4.0 project, but we are required to use AES and the default appears to be Triple DES. How can I tell it to use AES encryption instead? In the command prompt I do the following…
user358089
3
votes
2 answers

Creating an RSA Key container sometimes it works sometimes it does not

For the past few days I've been baffled by a weird problem. When trying to create an RSA Key Container like below (from a cmd admin window): aspnet_regiis -pc "MyKeyContainer" -exp I get the following error: Creating RSA Key container... The RSA…
Yag
  • 546
  • 2
  • 7
  • 12
3
votes
1 answer

ASPNET_REGIIS -pef Vs -pe

Using ASPNET_REGIIS we can encrypt the web.config using these 2 parameters:- ASPNET_REGIIS -pef ASPNET_REGIIS -pe So what are the main differences between the 2 paramters?
John John
  • 1
  • 72
  • 238
  • 501
3
votes
1 answer

Why encrypt with aspnet_regiis.exe

I want to encrypt my web.config file to hide some sensitive data like passwords with aspnet_regiis. Encryption is made with this code in the command prompt C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -pef "appSettings"…
PEPEGA
  • 2,214
  • 20
  • 37
3
votes
0 answers

RSA key container could not be opened after import and access rights to Everyone (added picture)

I'm trying to encrypt the connection string on a windows app that's distributed on several servers (similar to a web farm, I'd think). The connection string is actually in a separate file called "ConnectionStrings.config" I'm doing this as a…
3
votes
2 answers

Get the metabase path for an IIS entry (Installation stopped because the specified path is not a valid web application)

I'm by no means a sysadmin so please correct me if I'm wrong. I want to run aspnet_regiis.exe -s. This requires the metabase path of my website. How do I find this metabase path?
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
3
votes
2 answers

Can you encrypt entire web.config file with aspnet_regiis?

I know you can encrypt appSettings and connectionStrings and other individual sections in web.configs using aspnet_regiis, but how does one encrypt an entire web.config? I have a client requesting that we encrypt the complete web.config file, but I…
ChrisC
  • 1,161
  • 12
  • 26
3
votes
2 answers

How To Encrypt Connection String in Web.config - Retired Content?

I currently have an ASP.NET website that has an encrypted connection string within it's web.config file. The settings are in the general AppSettings section, not the ConnectionString section. Within the application code we manually decrypt the…
Mark
  • 1,455
  • 3
  • 28
  • 51
2
votes
3 answers

using .net 4 and .net 2 on iis 6 getting a "Server Application Unavailable" error

I am using a really old website running on .net 2 but I am adding an addition to it that is MVC 3 running on .net 4, created as a virtual directory under the original website. The problem is that if I get the "Server Application Unavailable" with…
2
votes
3 answers

aspnet_regiis -pe cannot find my configuration section in .net v4.0.30319

I've added a new Settings.settings file to my ASP.NET Webclient project; I am having a problem encrypting the section. In the cmd window positioned to this directory: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319> Here is my syntax: aspnet_regiis…