aspnet-regiis.exe

“aspnet_regiis -pef ” command removes “ <configSections>” section of web.config

一个人想着一个人 提交于 2020-01-07 03:24:26
问题 I am using the following command to use a machine key to encrypt part of my web.config (it is actually an app.config for a .net app, renamed to web.config so the aspnet_regiis will work with it): aspnet_regiis -pef "section-to-encrypt" "C:\inetpub\path-to-web.config\bin\Release" -prov "provider-name" Before running this, I add the section < configProtectedData>, which seems to be required (to hook "provider-name" to machine crypto, it appears). Problem: After running the above command, the <

IIS7 .NET x64 aspnet_regiis -i causes class not registered error

北战南征 提交于 2020-01-06 06:31:27
问题 We are running IIS7 on Windows Server 2008 R2 SP1, with websites running on .NET 2.0. The websites work fine except that global themes do not work. I went ahead and tried to do aspnet_regiis -c in the Framework64 directory and got An error has occured: 0x80040154 Class not registered. The error indicates that IIS is not installed on the machine. Please install IIS before using this tool. If you are wondering, the enabled32bitApps flag is off, so .NET x64 is used. I went ahead and uninstalled

Alternative for the Registering ASP.NET 4.5 on Windows Server 2012

纵然是瞬间 提交于 2019-12-30 03:17:06
问题 I am getting MIME is not registered error when I run WCF service. I used this link to resolve this issue. After that I started getting another error which asked me to register the ASP.NET framework with IIS. So I used "aspnet_regiis" command for it but it shows me following error. Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929 Administration utility to install and uninstall ASP.NET on the local machine. Copyright (C) Microsoft Corporation. All rights reserved. Start installing ASP.NET

MSDeploy automatic encryption of connection strings, key not found in dictionary

杀马特。学长 韩版系。学妹 提交于 2019-12-23 07:33:15
问题 Since Web Deploy 3.5 automatic encryption of connection strings is supported using the flag: –EnableRule:EncryptWebConfig . However, upon running it with: "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package='C:\[...]\MyApp.WebDeployPackage.zip' -dest:auto,includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"C:\[...]\MyApp.SetParameters.xml" -EnableRule:EncryptWebConfig -verbose I get

How to set key size of RSA key created using aspnet_regiis?

☆樱花仙子☆ 提交于 2019-12-22 14:38:12
问题 I have created a customer RSA key container (for encrypting connection string in web.config) using the following command: aspnet_regiis -pc "TestKeys" -size 2048 -exp I then exported the key to an xml file and used it to initialise an instance of RSACryptoServiceProvider so that I could check the key size was definitely 2048. However, using the code below, the key size is displayed as 1024. using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider()) { using (FileStream fs = new

Using ASPNet_Regiis to encrypt custom configuration section - can you do it?

筅森魡賤 提交于 2019-12-18 10:22:52
问题 I have a web application with a custom configuration section. That section contains information I'ld like to encrypt (was hoping to use ASPNet_RegIIS rather than do it myself). Web.Config: <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <configSections> <section name="MyCustomSection" type="MyNamespace.MyCustomSectionHandler, MyAssembly"/> </configSections> <configProtectedData> <providers> <clear /> <add name=

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

筅森魡賤 提交于 2019-12-14 03:42:34
问题 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 "C:/FirstName-Projects/ProjName-TEST/SolutionName/Web.config" -prov "DataProtectionConfigurationProvider" Received: "The value used in the -app parameter must begin with a forward slash." I'm guessing I did something wrong in my attempt to call the Web.config file down

How to encrypt a file linked to a web.config

99封情书 提交于 2019-12-13 04:51:13
问题 I have a web.config file that links to a common.config file. common.config is being used by multiple applications. I used the aspnet_regiis.exe, but that only encrypts the web.config file. How can i encrypt the common.config file? web.config file: <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings file="C:\Users\naem\Documents\common.config" /> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> </system.web> </configuration>

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

偶尔善良 提交于 2019-12-12 14:14:05
问题 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 commands: aspnet_regiis -pc "NetFrameworkConfigurationKey" -exp aspnet_regiis -pe "connectionStrings" -app "/<myapp>" I figure I set the encryption method to AES by selecting the appropriate CSP (-csp) but I haven't been able to find or figure out the name of the

Encrypt App.Config Custom Element using cmd

隐身守侯 提交于 2019-12-12 03:46:58
问题 I am able to configure the Connection String Encryption using the aspnet_regiis.exe command. Now I have created the Configuration Section on which it is added Custom Configuration Element Collection and this will store the value of Connection Information. namespace ExpressSnapSortCreation { /// <summary> /// This Class hold the the Collection of Cofigration key /// </summary> internal class ServerReplicationsCollection : ConfigurationElementCollection { /// <summary> /// This Will return the