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
1
vote
0 answers

angular2 built in AspNet core - deployment in IIS Issue

I have created a Angular2 application in AspNet Core 1.0. We are not using any of the AspNet core features and just we want Angular2 application to be wrapped inside a AspNet core application. The application works fine in Development mode i.e. in…
Krishnan
  • 958
  • 5
  • 21
  • 44
1
vote
2 answers

Is there any PowerShell DSC resource for ASP.NET IIS registration (aspnet_regiis.exe)?

I want to install ASP.NET 4.x in a Windows Server 2008 R2 machine using Powershell DSC. Is there any PowerShell DSC resource for this? Thank you!
1
vote
1 answer

Encrypting username/password files (app.config) and Unit Tests on Visual Studio Team Services

I have some unit tests which target some overriden app.config files. Each config file has encrypted password/username using DataProtectionConfigurationProvider via aspnet_regiis.exe This is all fine and dandy on my local machine where they are…
garfbradaz
  • 3,424
  • 7
  • 43
  • 70
1
vote
2 answers

encrypting appSettings in a external file using aspnet_regiis -pef

I am trying to encrypting appSettings in a external file using aspnet_regiis -pef. Does anyone how how to do this. My main web config file :
1
vote
0 answers

.NET web.config encryption: "The RSA Key Container could not be opened"

This relates to interactive use of a .NET app, and encrypting a portion of the app.config. Command: aspnet_regiis -pdf "testSection" "C:\temp" Error: Microsoft (R) ASP.NET RegIIS version 4.0.30319.0 Administration utility to install and uninstall…
Jonesome Reinstate Monica
  • 6,618
  • 11
  • 65
  • 112
1
vote
3 answers

C# - The configuration section was not found error using aspnet_regiis.exe

I am trying to Encrypt sensitive connection string information inside my app.config file for a C# applicaiton that I am developing. I am using the following command from the VS command promt running as administrator: aspnet_regiis.exe -pef…
Hooplator15
  • 1,540
  • 7
  • 31
  • 58
1
vote
0 answers

Difference between using aspnet_regiis.exe and SectionInformation.ProtectSection

I would like to have a custom configuration section encrypted and in a separate file. Using aspnet_regiis requires some extra steps with a custom configuration section (see this question: Using ASPNet_Regiis to encrypt custom configuration section -…
Paolo Tedesco
  • 55,237
  • 33
  • 144
  • 193
1
vote
2 answers

aspnet_regiis.exe Output Results

I have an encrypted password in a connection string, contained in a web.config file. I do not know what the password is, and thus cannot connect to my database. I ran aspnet_regiis.exe -pdf against the web.config and received the…
Brian Ashcraft
  • 117
  • 1
  • 7
1
vote
1 answer

Installing .net Framework 1.1 globally configured all my websites for 1.1 How do I undo this/permanently reconfigure them back to asp.net 2.0?

I have a Windows 7 machine on which I am using VS2005. .Net 2.0 and .Net 3.5 are installed on it. An app claimed it needed .NET framework 1.1 before it would run. I therefore installed framework 1.1 and it now runs. Problem: Now whenever I try to…
1
vote
1 answer

How to register ASP.NET 4.0 for IIS using PowerShell Web Administration module?

I would like to register the ASP.NET 4.0 framework for IIS using a PowerShell script. I have previously used the aspnet_regiis.exe tool in the following way: aspnet_regiis.exe –iru This did the job, but I would like to refactor my code to use the…
sc3w
  • 1,154
  • 9
  • 21
1
vote
1 answer

ASPNET_regiis - Failure to create exportable key set

I'm trying to create an exportable key set using aspnet regiis, here is the command I'm running: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pc "SampleKeys" -exp But the response is the same as if the tool is given a command it…
ShaneC
  • 2,237
  • 2
  • 32
  • 53
1
vote
0 answers

Configuration location for asp.net version of a website

after a crash I had to reinstall my windows server. we have >1000 websites with combinations of asp.net versions on our machine (1.1 , 2 , 4) . I looked inside the IIS metabase for the version of asp.net version of the websites but it's not…
Avi
  • 155
  • 8
1
vote
1 answer

Unable to run website with ASP.Net version 1.1; while 4.0 works

ASP.Net application (Version 1.1) that was working fine in live environment. I encountered a problem all of a sudden that some of the functionalities stopped working. I tried simulating the problem in test environment. I found it is with ASP.Net…
CodeMad
  • 950
  • 2
  • 12
  • 30
0
votes
0 answers

Encrypt credentials in App.config in Visual Studio 2019 using aspnet_regiis

encrypt credentials in App.config in Visual Studio 2019 I need to Encrypt API credentials in my App.config in c# console application. I'm using .Net framework 4.7.2. I'm using aspnet_regiis.exe command-line tool provided by the .NET Framework. These…
SilverFish
  • 1,014
  • 6
  • 28
  • 65
0
votes
1 answer

Importing RSA Key from file

Getting an error "Safe handle has been closed" while try to Importing RSA Keys from file. The following command I have used in Visual Studio 2022 command prompt aspnet_regiis -pi "keyname" "C:\keyfile.xml" Anyone know how to resolve?