aspnet-regiis.exe

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

夙愿已清 提交于 2019-12-10 17:26:14
问题 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- and MVC-related on my machine, then re-install .NET + MVC 4? Thanks. 回答1: Apply official Microsoft Update for the .NET Framework 4 (KB2468871) Download link 来源: https://stackoverflow.com/questions/9444831/aspnet-regiis-i-gives-webengine4-dll-error

What's the difference between “aspnet_regiis -ir” and “aspnet_regiis -iru”?

杀马特。学长 韩版系。学妹 提交于 2019-12-10 12:29:25
问题 The help text of aspnet_regiis utility says the following for "-ir" option: Install this version of ASP.NET, register only. Do not change any web applications to use this version. And the following for "-iru" option: Install this version of ASP.NET. If there are any existing applications that uses ASP.NET, it will not change IIS configuration to use this version. It must be my English, but I do not understand what the difference is - both won't change any apps to use this version. And I'm

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

老子叫甜甜 提交于 2019-12-04 16:02:32
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 through my C: directory? I then read through to the part of Step 3.4 and also tried the -pef by using

Failed to encrypt the section 'connectionStrings' using provider 'RsaProtectedConfigurationProvider

人走茶凉 提交于 2019-12-03 14:45:03
问题 Failed to encrypt the section 'connectionStrings' using provider 'RsaProtectedCo nfigurationProvider'. Error message from the provider: Object already exists. I followed the guide in http://msdn.microsoft.com/en-us/library/2w117ede.aspx but in step 3 in To grant the ASP.NET identity access to the RSA key container, it says that my identity is my workgroup\username, I do not have impersonation in my web.config file though I am encrypting web.config using my machine using asp_regiis, then using

What does aspnet_regiis.exe do

折月煮酒 提交于 2019-12-03 06:55:49
问题 What does aspnet_regiis.exe do exactly other than updating the document mappings to correct aspnet_isapi.dll version, is updating the ASP.NET version from inetmgr same as running aspnet_regiis, I could not find any blog post or article describing the steps this particular batch command does. Please give any links you know of detailing the steps of aspnet_regiis.exe 回答1: From MSDN reference: When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP

Deploying pre-encrypted configuration files to a production environment

a 夏天 提交于 2019-12-02 00:21:40
问题 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 server (decryptor) need the same keys. So I'm trying to do a very basic test for now. Encrypt a Web.Config on MachineA - Decrypt it on MachineB. Here's what I've tried to test so far Create a new RSA Key Pair Container on my local pc. aspnet_regiis

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

走远了吗. 提交于 2019-11-30 09:12:32
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 (4.0.30319.17929). This option is not supported on this version of the operating system. Administr ators

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

江枫思渺然 提交于 2019-11-29 20:57:36
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="DataProtectionConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=2.0.0

ASP.NET Encryption - aspnet_regiis - Farm

北城以北 提交于 2019-11-28 13:55:23
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 -pa "NetFrameworkConfigurationKey" "NT Authority\Network Service" aspnet_regiis.exe -pef "connectionStrings" "C:\WebAppLocation\Folder" Note: We are not using "-exp". When we use "-exp" it is not creating RSA Key Container. AS you can see, we are using the default key- NetFrameworkConfigurationKey. Our website has a load balancer. Webserver1(W1) and

Determining if ASP.Net is properly registered

偶尔善良 提交于 2019-11-28 05:20:43
Does anyone have a bulletproof method (in C# ideally!) of determining if ASP.Net is properly registered on your computer ? I am writing an installation program for an ASP.Net application and I need to know whether I should run aspnet_regiis . At the moment we always run aspnet_regiis - I to ensure that ASP.Net is registered properly but this undesirable because it prompts a restart of all the application pools. There are several useful pages on the web (e.g. http://www.codeproject.com/KB/cs/iisdetection.aspx ) but as the comments in that post show, it is quite often the case that the registry