how to encrypt web.config during web application deployment

I am developing a web application using ASP.NET, VS 2008, Framework 3.5
I want to encrypt my web.config at the end of application installation (Installer.Commit event).
How do I do this ?

5/1/2009 8:45:39 PM 7760 articles. 0 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 30
Get it on Google Play
Get it on Apple App Store

5/1/2009 9:06:30 PM

If you want to encrypt your web.config you can have a look at this link

Faraz Shah Khan
5/1/2009 9:07:53 PM
OK guys I found the solution.
I call Process.Start with parameters as under.
Process.Start("C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_regiis.exe",  "-pe \"connectionStrings\" -app /PARC -prov \"DataProtectionConfigurationProvider\"");
Thanks for the help
5/4/2009 6:53:52 PM

Similar Artilces:

Migrating from Visual Studio .NET 2003 Windows Application to Visual Studio 2005 Web Application
How do I migrate a Visual Studio .NET Windows Application to Visual Studio 2005 Web Application. Are there any tools available for this.  As far as I know there is no direct migration path. You convert VS2003 to VS2005 and then to VS2005 Web Application.Don't forget to click "Mark as Answer" on the post that helped you.This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped. manish kumar: How do I migrate a Visual Studio .NET Windows Application to Visual Studio 2005 Web Application. Are there any tool...

Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the Web Deve
I installed Visual Studio .NET 2003 on Windows Vista Home Premuim, but I'm unable to select "Web Development" item from "Server Components" during the installation. I installed all the pre-requisits but I can not see Front Page Server Extention in the programs. I can see also the IIS. Appreciate if any one can guide me with the solution.   Thanks.   FPSE is not included with Vista, it's a separate download.  See for this. JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. Tha...

Converting windows application using web service from Visual 2003 to Visual 2005
Hello, everyone! I have a solution which contains a windows project,a web service project and several other library projects. These projects were coded under visual 2003. Now I need to converted them to use Visual 2005. Does any one know any article providing step-by-step guide  to converting WINDOWS APPLICATION with web service? I can find one under MSDN for converting web project.  But I guess I am a little confused if mine should follow this article since I am using web service in my windows application? Thanks a lot in advance.  ...

Unable to open existing Web application or create web application from Visual Studio.Net
I reinstalled MS office this morning. All of sudden, I can neither open existing web application nor create new Web application. The symptom is the same as described in thread: or Tried every suggestion. Still can't do anything. When I tried to check server extention, I got following error message: can't open file "fontpg.lck" for writing Do anyone has any suggestion? Could anyone tell me what permission should I set? I added A...

Visual Studio 2005 Profiler "Launch Error: The web.config file xxx\web.config has been changed and backup information was lost."
Hi,  I am experiencing this error when trying to start a Visual Studio 2005 profiling session (Instrumentation) for my ASP.NET 2.0 web application.  I could not find any information regarding this issue and have no idea what might cause the problem, as the Visual Studio 2005 profiler already worked with that very same application, a couple of weeks ago. Anyone? Thanks in advance! Hello, Can you tell me if you found a solution for the issue because I'm experimenting the same issue ? Thanks !...

Visual Web Developer Express 2005 and Visual Studio .Net 2005
I have Visual Studio .NET installed and have purchased a textbook for learning that uses examples, cases, and projects which reference use of Visual Web Developer Express 2005 (VWD). I have discovered that there are some nuances of differences between the Web UI in Visual Studio .Net 2005 and VWD. Therefore, I want to install VWD. I downloaded VWD and started to install it but stopped as I noticed the intallation as about to copy all it's files into the same directory the contained Visual Studio. I'm scared I'm going to screw up my Visual Studio installation, so I thought I&...

Visual Studio 2003 -> Visual Studio 2005 web application
Hello, I have created a rather large site with VB.Net/ASP.NET 1.1 using visual studio 2003 Professional. I want to take advantage of the new stuff in ASP.NET 2 & Visual Studio 2005...I have used the project convert but when I complile it i get hundreds of errors....are there any tutorials about this or do I have to recode a bunch of the project? Any Help would be appreciated.Thanks,Digital Carmel You say Web Application but I wonder if you are trying to convert to a Web Site project which is not the same as a Web Application project. Web Site project shipped with VS 2005, Web Applicat...

Error:Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the We
Hi, I installed the IIS 5.0 after VS.Net 2003 (1.1). after that I did run the aspnet_regiis -i at the visual studio command prompt. I am able to run local web application created on my PC. But when I tried to copy an web application created at shared PC into the wwwroot folder, I get the following error while trying to open the project in VS.Net. I've created the virtual directory for the project and also set the integrated windows authentication under the directory security tab in the IIS. Please help me resolving the problem. Thank You.   Do you have FrontPage Server Ext...

How to publish a web application in visual studio 2005 using deployment?
I am a New bie, I have a scenario to publish a website through deployment. 1.I can get the msi file. 2.Using the msi file, i have to publish the created website in the system i install. 3.Where only my primary output should be there. Sorry,My English is not that much good, i regret. Thanks in Advance.C.Babu Download and install web deployment project for Visual Studio 2005 follow those tutorials : Hosam Kamel ...

Error 1706 in deploying web application from visual
Hi, I have problem in creating the set up file for a web application .I get error 1706 . Going to Application event log I find these errors. Product: Visual Studio .NET Professional - English -- Error 1706.No valid source could be found for product Visual Studio .NET Professional - English. The Windows installer cannot continue. Detection of product '{D0610409-7D65-11D5-A54F-0090278A1BB8}', feature 'Visual_Studio.NET_Professional', component '{C9AF9050-C8BE-11D1-9C67-0000F81F1B38}' failed. The resource 'HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\UserData' does not exis...

Website Project vs. Web Application Project in Visual 2005
 Website Project vs. Web Application Project in Visual 2005 What are the main benefits of using a Web App project over a Website project or vice-versa? Web App Project: You have to jump through hoops to use edit and continue with a Web App where in a website it just works. I’ve figured this out with the help of ScottGu. Thanks! Web App Project: what are the *.aspx.designer.cs files for? Website Project: how do you set up the project to use a ...

Web Deployer 2005 AddIn for Visual Studio 2005
I wrote this AddIn to ease the deployment of ASP.NET In-Place Compiled Applications. It supports C# & VB.Net. It can compare against an FTP server as well as a local log to see which files need to be uploaded. Read this post for more info & download.,BobbyBobby DeRosaYellow Cup...

Where is AssemblyInfo.cs file in Visual Studio.NET 2005 BETA II (Web Applications)
Okay! I am really frusterated. Where is the AssemblyInfo.cs file in my web applications. And how can I choose the option "Show All Files". I can see the AssemblyInfo.cs file in my console applications but I am not able to see that in the Web Applications. Any ideas!!!!! HighOnCodingWanna get high! ...

Web Deployment of a Web Application:why the vbproj file is in the Web Deployment folder
Hello, I'm an old ASP and new ASP 1.1 developer.Now I have to work with ASP 2.0 and I'm testing the new features but there are things that are not clear.. I created a web application (converted from an ASP.NET 2.0 web site) and I was trying to build the web application project.These are the Property Pages Settings:Configuration:ReleaseCompilation: Allow this precompiled site to be updatable .. checkedOutput Assemblies: Merge all outputs to a single assembly  is checked                    ...

Web resources about - how to encrypt web.config during web application deployment -

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

The Bachelor 2016 application process can get explicit - Laurina Fleure
CHANNEL Ten is calling on singles to sign up for a chance to find love on The Bachelor , but willing applicants have to open a lot more than ...

Perth man’s Afghan wife slapped with 10-year visa application ban - PerthNow Search Search
A MAN’S three-year struggle to have his wife live with him in Australia has ended in heartache after his spouse was slapped with a 10-year ban. ...

Radius CEO Says Drug Application Delayed for `Work-Life Balance'
... Ward said. Radius fell 11 percent to $61.51 Tuesday after the company said in a statement that it was delaying submitting a new drug application ...

MBA: Mortgage Applications Decrease in Latest MBA Weekly Survey, Purchase Applications up 24% YoY
From the MBA: Mortgage Applications Decrease in Latest MBA Weekly Surve Mortgage applications decreased 3.2 percent from one week earlier, according ...

Elon Musk Requests Applications For Autopilot Software Engineers On Twitter
... and more quickly achieve “generalized full autonomy.” So, if you ever wanted to work for Tesla in such a [&hellip Elon Musk Requests Applications ...

Mortgage applications fall 3.2%
A definitive rise in mortgage interest rates over the last month is keeping borrowers at bay.

Help wanted: Obama's tech-training project now accepting applications
Organizers of innovative training programs can now apply for a federal grant to help prepare low-wage workers for more-lucrative tech jobs.

Number Of Daily Applications To French Military TRIPLES Overnight
Number Of Daily Applications To French Military TRIPLES Overnight

Google pushing virtual reality applications
Google has been pushing its R&D into virtual reality applications and is looking to enhance YouTube with the ability to provide virtual reality ...

Resources last updated: 11/29/2015 7:33:35 AM