Deployment Of Encrypted App.config?

Apr 21, 2010

I've created a console VB.Net application and encrypted the app.config file with RSAProtectedConfigurationProvider.I've used an article http:www.codeproje...eAppConfig.aspx as an example for the Encryption. It works fine in an IDE on my XP desktop.Then I deployed my application to a Windows 2003 server. The package included the app's executable along with the encrypted app.exe.config file. However, the application failed on the server with the following exception:Unhandled Exception: System.Configuration.ConfigurationerrorsException: Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened.I decided to encrypt app.config on the server so I copied app.config and encrypted it. The app.exe.config looked encrypted and I ran the application. However, it failed: although it didn't raise an Rsa exception as before,

[Code]...

View 1 Replies


ADVERTISEMENT

Deployment Of Encrypted App.config - Failed To Decrypt Using Provider

Apr 21, 2010

I've created a console .Net application and encrypted the app.config file with RSAProtectedConfigurationProvider. It works fine in an IDE on my XP desktop. Then I deployed my application to a Windows 2003 server. The package included the app's executable along with the encrypted app.exe.config file.

However, the application failed on the server with the following exception: Unhandled Exception: System.Configuration.ConfigurationErrorsException: Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened.

I decided to encrypt app.config on the server so I copied app.config and encrypted it. The app.exe.config looked encrypted and I ran the application. However, it failed: although it didn't raise an Rsa exception as before, it couldn't read a connection string. After I decrypted app.exe.config, I found that it contained only the below string

although the original app.config had contained an application-specific connection string. I think that in order to resolve my issue I should export the RSA keys from my desktop to the server. Can you advise how can I do it (it's not a Web application!).

View 1 Replies

App.config Setup And Deployment

Jan 31, 2011

how to setup my deployment project so that users can customize thier own settings in app.config? Which special folder in the File System browser should I add, Personal Data, Application Data, or Programs Menu? How do I add the app.config to the folder? What about the project output, should it also be in the same folder? If so, should the project output be taken out of the Application Folder, in other words, exist in one place? I tested my deployment and was shocked that the icon only opened on the test user's pc after installation. I have custom settings in the app.config file that have default values, but must be configurable for user specific settings.

View 3 Replies

.net - Replacing Sections In Web.config Using Web Deployment Project?

Jul 10, 2009

I am trying to replace the following section to blank section

<secureWebPages mode="RemoteOnly" encryptedUri="abc.co.uk" unencryptedUri="www.abc.co.uk" maintainPath="True" warningBypassMode="AlwaysBypass" bypassQueryParamName="BypassSecurityWarning" ignoreHandlers="WithStandardExtensions">
<files>
<add path="abc.aspx"/>
</files>
</secureWebPages>

But after executing it is giving me the following error

WDP00002: missing section secureWebPages/configuration.

View 1 Replies

Deployment :: Importing/Exporting A Config File?

Aug 11, 2009

I'm brand new to this forum. i have a question. i wrote some software a while back and now have a few new features I need to implement. this software currently makes use of "application settings" to store all of it's settings. Which works just fine.

I have a client that has about 40 users. He wants to be able to share his settings (that he set up in his copy of the software) with all of users. Preferably by distributing a copy of a config file that they would be able to import into there software.

View 1 Replies

Decrypt Java AES 128Bit Encrypted String Which Has Been Encrypted Using Key Only (no IV) ?

Oct 14, 2010

I am attempting to find some code to use in VB.NET to decrypt a string that has been encrypted using the Java crypto libary.All of the code I have found so far uses an Initialisation Vector and Key to decrypt but the string has been encrypted using the Key only. (Using an Initialisation Vector is apperently an optional step in Java).Does anyone know of code that I can use (preferably in VB.NET but i could convert C#) to decrypt AES 128 Bit encoded string without an Initialisation Vector?

View 1 Replies

Asp.net - Getting Configuration Settings From Web.config/app.config Using Class Library

Mar 26, 2009

I have a class library (Named ADI), that needs some configuration settings from the project using it (like connectionstring, filesystem locations etc).

I want to define these settings in my Windows Forms/Web Projects App.Config or Web.Config, like other settings.

Here is part of my app.config for my windows forms application:

<applicationSettings>
<PhotoImportRobot.My.MySettings>
<setting name="ADIImageRoot" serializeAs="String">

[Code]....

View 3 Replies

C# :: Validate Dot Net Application Config File(ex, App.exe.config) On Console?

Jan 18, 2010

is there any tool to validate configuration file?

View 1 Replies

Deployment :: Deployment Of SQLEXPR32.EXE Using Template.ini File

Feb 24, 2009

I am deploying sql express as a prerequisite. I have created a custom prerquisite using bootstrap manifest generator. The problem I have is replacing the template.ini file which exists in the sqlexpr32.exe cab file. Winrar and winzip allow me to open the sqlexpr32.exe but will not allow me to edit, add or replace the template.ini.I also cannot find the path where the sqlexpr32.exe extracts to as I want to use that path for the settings file eg "template.ini".[code]

View 1 Replies

Deployment :: Setup And Deployment Project With Ms Sql Server?

Nov 3, 2009

i'm developing an application vb.net with mssql server as database. on my pc it works. but i don't know how to make it works on my customer's pc.anybody have some tutorial regarding the creation of a setup and deployment project with ms sql server.my first doubt is: how can i determinate the right connection string?

View 1 Replies

Asp.net - Class Needs Info From Either The Web.config Or App.config

Jul 6, 2011

Our main application has both a asp.net and winforms component. There is a class that is used by both sides and needs info from either the web.config or app.config files. The class itself does not know if it's on the client side or on the web server (at this point). We are getting errors when it's attempting read app.config when it's on the web side. Is there a way for the class to tell if it needs to read web.config or app.config?

View 1 Replies

Deployment :: Deployment And MS Power Pack?

Jun 25, 2009

I have a windows app that uses the shape control which is part of the MS power pack and requires Microsoft.VisualBasic.PowerPacks.Vs.dll. I am using Publish to build my app and I have tried to change the dll to Include in the properties page but nothing seems to work.

I need a way to have the file included and I am unable to find a external copy and I understand that I cannot just copy the dll from my PC into the installation folder

View 1 Replies

Deployment :: Setup & Deployment - Copy/import 2 Folders And There Sub-files/folders Into S&d Project?

May 7, 2012

Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?

When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?

View 5 Replies

Store The Encrypted Value In The Dll?

Jun 7, 2010

I would like to know how I could encrypt the url and store the encrypted value in the dll?

And I would also like to decrypt it from the dll when I need it for later?

View 2 Replies

Decrypt A File That Was Encrypted With Des?

Nov 10, 2011

i am trying to decrypt a file that was encrypted with Des. However not all of the file is encrypted just a few lines are. Here is an example of the file im trying to decrypt:

Random text
Encrypted Text
MD5 Hash
Encryption Key(Only there for tests)
Number of encrypted lines

The idea is to read the last three lines into variables and use them to decrypt the text. At the moment i use the number of lines - (the number of encrypted lines + 3) to find where the encrypted text starts. Then i was trying to copy the encrypted text to a temp file so i could run the code bellow on it, however i am getting an encoding error apparently i need to be using base64 or something. So my question is can anybody explain to me or show me how i can pull the encrypted text out of the file so that i can use the code bellow on it.

Dim DES As New DESCryptoServiceProvider()
'A 64-bit key and an IV are required for this provider.
'Set the secret key for the DES algorithm.

[Code].....

View 1 Replies

Decryption Of Encrypted File?

Dec 22, 2010

i will like to know if it will be possible to decrypt and encrypted file in vb.net or any without knowing the form of encryption..any information on how to go by it... in that if you lose the form on encryption can it be decrypted?

View 1 Replies

Embed C - Data Get Encrypted?

Feb 21, 2011

i have an encryption code which i have created in C i want to use this code while a button is pressed so that the data gets encrypted how to do this?

View 1 Replies

How To Access To An Encrypted PDF With ITextsharp

Mar 2, 2012

I have an pdf file, encrypted with a certificate. I want to access to it in order to create a decrypted copy.I have the certificate stored at personal windows certificate store. Is it possible to use this one? How can I access with the pdfReader object?

View 1 Replies

How To Decrypt Data That Had Already Encrypted Using MD5

Oct 23, 2011

I'm using this function to encrypt data but how do I decrypt it?

Public Function GenerateHash(ByVal SourceText As String) As String

[code...]

View 1 Replies

Login With Their Encrypted Password?

Dec 14, 2009

In login control ,is user can login with their encrypted password?

View 4 Replies

VS 2008 My.Settings Where Are They And Are They Encrypted

Aug 5, 2009

I'm wondering with My.Settings, where abouts my program saves them, and if they are very secure or not, encrypted etc..?

View 2 Replies

Deployment :: Windows 7 (64 Bit) Deployment?

Feb 24, 2010

I have compiled my app to x86 so that it will run in a 64 bit processor, the issue I am facing right now is that when I install the app in under application folder I am not able to edit the config file which is in the same folder of the exe. how to give admin previlages to the application ?

PS: the app runs fine when installed in a different folder other than applicaitonfolder

View 3 Replies

Decode (Encrypted) Strings By Parts

Nov 17, 2008

I have a text like :
Code:
aHR0cDovL3d3dy5kZXNpY2xpeC5jb20=AAAAAAAZGVzaWNsaXguY29t
aHR0cDovL3d3dy5zYW5kcmFjbGlja3MuY29tAAAAAAAd3d3LnNhbmRyYWNsaWNrcy5jb20v
aHR0cHM6Ly93d3cuYnV4b3V0LmNvbQ==AAAAAAAd3d3LmJ1eG91dC5jb20=
aHR0cDovL3d3dy5vc29jbGljay5jb20=AAAAAAAT3NvQ2xpY2s=

And I want.. an example... These strings are encrypted (excepting AAAAAA). I want to call Decode (string) for:
Code:
aHR0cDovL3d3dy5kZXNpY2xpeC5jb20=AAAAAAAZGVzaWNsaXguY29t
aHR0cDovL3d3dy5zYW5kcmFjbGlja3MuY29tAAAAAAAd3d3LnNhbmRyYWNsaWNrcy5jb20v
aHR0cHM6Ly93d3cuYnV4b3V0LmNvbQ==AAAAAAAd3d3LmJ1eG91dC5jb20=
aHR0cDovL3d3dy5vc29jbGljay5jb20=AAAAAAAT3NvQ2xpY2s=

And insert it into this code:
HTML Code:
:idea: [url=VALUE AFTER AAAAAA]VALUE BEFORE AAAAAA[/url]
I know that this not HTML...

View 2 Replies

Decoding Encrypted Query String?

Jan 4, 2012

I am using the method described in the following LINK and I am using the following code to encrypt:

'Page1.aspx
Protected Sub butEncrypt_Click(sender As Object, e As EventArgs) Handles butEncrypt.Click
Dim QueryString As String = "type=Int&pk=" & _primaryKey
QueryString = Tools.encryptQueryString(QueryString)
Response.Redirect(/SearchResults.aspx?Val=" & QueryString)
End Sub

and then finally de-encrypt:

[Code]...

View 1 Replies

Decrypt And Verify A .Net Encrypted File?

Mar 10, 2011

How can I decrypt a file encrypted in vb.net? Is there a possibility here?

View 2 Replies

Generate Report From Encrypted Data?

May 17, 2009

I want to get input data from user and encrypt them and save to database. Is it possible to retrieve this encrypted data and show in DataGrid?

View 3 Replies

Hex Encrypted String And Adds It To A Listbox1?

Mar 5, 2010

I have a text box that accepts an 8 digit hex encrypted string and adds it to a listbox1. Then I have a button that when clicked takes the string from listbox1 and

1) reverses the string
2) subtracts 235
3) Converts it back to a 9 digit number
4) Adds it to listbox2 using the code:
Code:

Private Sub decrypt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles decrypt.Click

[code]...

However something seems to be wrong because it get an arithmetic overflow exception. Does anyone know what happens to be wrong with my code?

View 6 Replies

Pass Encrypted Data To A Database?

Jan 24, 2011

As we pass data to a database in a clear cut way, there may be situations, when we might fear data stealing. So can we simply encrypt data at the time of insertion, so that the data privacy will be maintained and the front end can only see the data.

View 1 Replies

Read A File That Is Encrypted Using PGP Netshare?

Oct 27, 2011

I am using streamreader to read a file that is encrypted using PGP netshare. The file opens fine on my PC and i can read the file using Streamreader when it is unencrypted, but when i add it to an encrypted folder, I get back gibberish when the file is read. Below is a snipit of code, but i feel as though this may not be the problem.

[Code]...

View 2 Replies

Read From Encrypted Excel File?

Sep 22, 2009

Working in VB in VS 2008 I'm trying to read from an Excel file using Oledb. I have no problem with it when the file is not encrypted, but the client has set a password on the working copy.

I read elsewhere that it's not possible to read an encrypted Excel file this way, but I find that hard to believe.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved