Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does aspnet_regiis.exe do

Tags:

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

like image 827
Kiran Bheemarti Avatar asked Aug 21 '10 20:08

Kiran Bheemarti


People also ask

Where is Aspnet_regiis exe?

The Aspnet_regiis.exe tool is located in the %windows%\Microsoft.NET\Framework\versionNumber folder. You can also use the protected configuration classes in the System.

How do you secure connection strings when using data source controls?

To encrypt connection string information stored in the Web. config file. At the Windows command line, run the ASP.NET IIS registration tool (Aspnet_regiis.exe) with the following options: The -pe option, passing it the string "connectionStrings" to encrypt the connectionStrings element.


1 Answers

My favorite feature of it, is the ability to encrypt settings in web.config something along the lines of:

aspnet_regiis -pe /myapprootvirtualdirector

and decrypt is -pd

encrypt only after deployment to the server - as encrypting on one machine won't be valid on the other unless you share machine keys.

like image 143
Adam Tuliper Avatar answered Oct 12 '22 23:10

Adam Tuliper