Remove ConnectionString from app.config

Hello everybody,
Is there any way to remove/hide/encrypt the connection details in a connectionString?
My Problem is:
I've got a Windows Forms Application and I want to use OracleMembershipProvider and OracleRoleProvider.
My App.Config looks the following:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="TNTConnectString" connectionString="user id=user;password=pwd;data source=some_connection;" providerName="Oracle.DataAccess.Client" />
</connectionStrings>
<system.web>
<roleManager enabled="true" defaultProvider="MyOracleRoleProvider">
<providers>
<add connectionStringName="TNTConnectString" name="MyOracleRoleProvider" type="Oracle.Web.Security.OracleRoleProvider, Oracle.Web, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342" applicationName="some_name"/>
</providers>
</roleManager>
<!-- Enable and customize OracleMembershipProvider settings -->
<membership defaultProvider="MyOracleMembershipProvider">
<providers>
<add connectionStringName="TNTConnectString" applicationName="some_name" name="MyOracleMembershipProvider" type="Oracle.Web.Security.OracleMembershipProvider,Oracle.Web, Version=2.111.6.20, Culture=neutral,PublicKeyToken=89b483f429c47342"/>
</providers>
</membership>
</system.web>
</configuration>
Now the problem is that the app.config file has to be copied to every location where I want to use this program, so everybody can read the connection string and connect to DB.
Is there any possibility to add the connection string at runtime? Or any other ways to avoid writing the ConnectionString in plain text to app.config?
Though this is not a special Oracle Problem I hope anybody can help =)
Thanks in advance,
Florian Fanderl

You could try one of two things:
1) Use DPAPI to encrypt the connection string - http://msdn.microsoft.com/en-us/library/ms998280.aspx
- PRO - it's encrypted and can only be unencrypted on this machine
- CON - it's pretty much specific to this machine
- There is a User Key functionality that will allow you to share this same encrypted data between machines, but it was never a necessity for our uses
- At my company, we built a separate utility to generate the encryption string and then paste that string into our app.config programmatically during installation without all of the additional gobbledy-gook (technical term) that the default method noted above uses.
2) put everything except the connection string into your web.config and then dynamically build the connection string at run time within the app code
- PRO - don't have to worry about storing any username or password in a file system text file.
- CON - you pretty much have to hard-code the connection values. If you have complete control over deployment variables, this could be a minimal issue, but still undesirable.
Regards,
Frank

Similar Messages

  • How to remove updates from app store in yosemite

    I'm using iWork '09 installed on Yosemite and i receive the alert to update to the new version Keynote, Pages and Number.
    Apparently there is no way to remove/dismiss the update's reminder forever or just delete the update request in the App Store list.
    Any advice?
    Thanks.

    CHAPPY 8005 wrote:
    YYou know, I just was looking for an answer from a person with knowledge but instead I got nothing. I just wanted an answer, how do I remove an update from the App Store that I don't wish to install, that's all. I wasn't expected these responses, thanks anyway,, I'm going to try no to ask again within the community, I'll go instead to the web, I might get an straight answer.. Please no response again, I'll try to delete this question.
    I have given you an answer twice: you can't do that. The only way to remove an app from the list of updates in the App Store is to accept the update.

  • Remove shading from app store icon?

    How can I remove the shading from the App store icon?

    Not sure if all of that appeared properly, do you mean something like
    <UIPrerenderedIcon>false</UIPrerenderedIcon>
    And I can put that in the app.xml file anywhere?

  • I can't seem to remove Incredibar from about:config. When I reset, it still comes back

    I have removed ALL instances of incredibar/incredimail from my laptop. When I go into the Firefox configuration (about:config), I reset ALL of the incredibar extensions. However, when I restart Firefox, ALL of the incredibar extensions come back. This is really annoying because I have completely removed incredibar. Please help. Thanks
    -James Sullivant
    P.S. I don't want to lose any of my Firefox customizations, either.

    Hope this video helps you to get rid of it. [https://www.youtube.com/watch?v=gVNwJPuy898 How to Remove Mystart By Incredibar Toolbar from Firefox]
    edit additional information and preliminary steps suggested by a moderator ~J99
    # '''Read [[Reset Firefox preferences to troubleshoot and fix problems]] ''' <br />note you will lose some information including open tabs, <br />and any extensions will be uninstalled.
    # You may wish to <br />Close all unnecessary open tabs. <br>Boookmark any open tabs, and the home websites of all Firefox extensions that you have installed.<br/>See also [[Find and install add-ons to add features to Firefox]]
    -----

  • How to remove ads from app on iPhone?

    I downloaded a free app on my iPad that contained ads. I made an in-app purchase to remove the ads and they were removed from the iPad but they are still on the iPhone. How do I fix this?

    On your iPhone you have to go through the motions of "in-app purchase" as well.  It will say "you have already purchased this item, do you want to download again" and ads should be gone.  ...as long as it's literally the same app and not an iPhone version and separate HD version for iPad, which some apps do.

  • Disable 'Start Screen' and Remove Arrow from Apps Screen that links to it

    I am trying to configure Windows 8 for our company and I want the remove the arrow at the bottom of the Apps Screen that links this screen with the Start Screen. We do not want users to have access to the Start Screen...

    Hi,
    Do you mean disable Windows 8 Start Screen completely and just using Desktop Screen? If so, there is no way to achive your goal.
    Roger Lu
    TechNet Community Support

  • Skipping & Removing Updates From App Store

    Hi
    On previous version of OS X before Mountain Lion you could choose to skip and not update selected software or the operating system. This was very useful for keeping compatibility.
    Is there away to do this with the app store updates? Or do I just have to ignore them but be left with them staring me in the face when I update of software.
    Cheers

    It was as simple as using a right click on the item you want to hide.
    I wonder if there is away to see hidden items.

  • How to remove glitched nameless app install box?

    Hello.
    Recently updated my mother's iPad (The New one) to 8.3 from whatever iOS version it was shipped with (it was never updated before). Had to do so only because it was in an endless reboot loop for some reason (maybe due to having way too many apps installed), ending up in restore mode at best. After restoring it from iCloud backup, there's one app that just stuck and won't let me delete it by any means. It's nameless. Literally. When clicking on X button, the confirmation popup has only an empty pair of «». It also has no name after rebooting the device (which fixes its being on "waiting", leaving just empty gray box).
    What doesn't work:
    - obviously, normal way of deleting via X (which is there, but pressing it has no effect on the app)
    - as listed above, rebooting, even by holding Power+Home for hard reboot
    - connecting to iTunes and removing it from app managing screen - there's no X on it there
    - restoring from iCloud copy again - it *returns* in exact same state, even when using fresh backup
    - exiting app store account, rebooting and then logging in again
    My guess is this was one of the oldest apps that is no longer on AppStore and/or no longer compatible with the device, while still listed in iCloud backup, but can be wrong on that. There was a hellish ton of free apps installed, my mom pretty much installed everything she could for free and almost never deleted anything, collecting over 1000 apps.
    Would appreciate any ideas. Even though it's not that important, but I've been determined to clear this mess, removing 90% of that collection, and this ghost app just keeps bugging me.
    Going with clear install without iCloud restore is way to dangerous to even think about. Because, y'know, game progress, millions of cat photos... the loss of that can't possibly be forgiven.

    You could try to make a backup in iTunes, and then restore from iTunes.

  • Deleted app appears in updates page from App Store

    I had installed an app from store named Who is the killer. I deleted the app and now shows as an update and i can't get rid of it. I do not have any back up disks attached. How can i remove this from app store's update section?

    If i hide this into purchases, it still shows in updates an i have 1 badge in the app store. I followed a few stepes as searching with easy find files which i think were related, reindexed spotlight and i still see the update available for the deleted app. If i click update, it just reinstalls it and so on.

  • AAA Radius-Persistent Line from Old Config?

    Hello, I have implemented a new Radius server and have begun pointing my IOS-based devices at it. When I do the new configuration, I see that one line from the old config is still present:
    radius-server source-ports 1645-1646
    I can not 'no' this line, and can't change it to anything else
    I am using 1812-13 for my ports, in this line:
    radius-server host 10.10.5.1 auth-port 1812 acct-port 1813
    My question is really just why is that line persistent? Does it require a reload of the device to remove it from the config? Has anyone else seen this? It does not appear to cause problems, but seems odd that when I 'no' the line, it never is removed.
    Thanks!

    Yes, sorry, this is a 3750 in this case (3560s involved seem to have the same thing): 12.2(25r)SEE4
    Thanks!
    Jake

  • Removing 3750 from stack

    I have a 3750-12S-S which was the third switch in a stack of 3 3750. We want to run it as a seperate switch in a different location so I removed it from the stack by powering it off, unplugging the stack cables and then powering it up again.
    When the switch came up again all of the 12 interfaces were numbered Gi3/0/1-12. Despite erasing the config and rebooting the switch, the interfaces will not reset back to Gi1/0/1-12. I have noticed the following command in the running config:
    "switch 3 provision ws-c3750g-12s". I suspect this is causing the problem but I am unable to remove it from the config without it reappearing on the next power-cycle.
    Can someone suggest a solution?
    Thanks.

    C3750-9B(config)#switch 3 renumber 1
    WARNING: Changing the switch number may result in a
    configuration change for that switch.
    The interface configuration associated with the old switch
    number will remain as a provisioned configuration.
    Do you want to continue?[confirm]
    The part that we really need to focus on is
    "The interface configuration associated with the old switch
    number will remain as a provisioned configuration."
    Which means that configuration that was associated with switch number 3 will remain as
    Gi5/0/1 and will not change to Gi1/0/1 . Infact , renumbering will provision another switch
    with the new number with default config. So what is really the solution of this ? The
    solution is to move the config manually , or do not change the switch numbers. Once you put the config on a newly provisioned #1 switch , then unprovision switch # 3 and save the config. That should effectively move every thing to switch 1.
    Hope this helps.
    Salman Z.

  • ITS.ear Wireless -- how to remove appl from embedded OC4J config JDev b4157

    The embedded container configuration currently includes ITS.ear; I'd like to remove this from the default applications started by embedded container.
    The JDev (10.1.3.41.57) Tools .. Embedded OC4J Server Preferences .. Applications list includes ITS. The input fields and buttons to change or Delete this web application are greyed out. Removing the <application> entry from the server.xml file in c:/JDev_4157/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/ only removes ITS application temporarily -- it reappeared.
    I've not been able to locate a configuration that causes this to be added to the default datatags and current-workspace-app applications.
    Thanks.

    Thanks for reading and checking your installation.
    Don't believe it's automatic in the standard install; I only noticed it recently but I have no idea how it got activated or how to unactivate it. (You can find the EAR file in <your-JDEV-root>/wirelss/ITS.ear.) Is there a binary JDev config file storing a preference to include this in the IDE and/or container?
    The <application> tag appeared in my \JDev_4157\jdev\system\oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/server.xml unexpectedly but its tag's path was incorrect and so it would not auto-deploy during container start-up. When I copied the ear file from the wireless directory to the embedded-oc4j/applications folder it deployed next time I started the embedded container.
    Even though I removed tags in server.xml and the default-web-site.xml in the container's config folder, and deleted the ear file and the deployed subdirectories, it continued to re-appear. Possibly I didn't always get all of these pieces. It doesn't alway reappear on the first restart; sometimes not until after the 3rd restart. That doesn't make sense to me but I haven't discerned the pattern for when it re-creates itself.

  • Best app to remove duplicates from iTunes 2014

    Hi All,
    I've been trying to research the best application to sort and remove duplicates from my iTunes library. I have over 7000 songs and iTunes built in duplicate finder doesn't look at the track fingerprint, which is useful for those songs which are labelled "Track_1" etc.
    Has anyone reviewed any recent products? I was looking at TuneUp, but after reading so many negative comments, I've decided not to go down that path. I would prefer a program that did most of the work for me, due to the amount of songs. Happy to pay for a good product...
    I do have MusicBrainz Picard, which has done a great job of tagging, but don't remove duplicates.
    Thanks in advance :-)

    Tune up is a great app.  When they moved from version 2 to version 3 is when it went to crap and all heck broke loose.  They shut their doors  but they have since re opened and went back to developing  version 2.  I use that version and I am pretty happy with it as being an overall cleanup utility.  I also use Musicbrainz and a couple of other utilities but in the end if you have an enormous library 20k plus then you are going to have a few slip through.  I would probably go with Tuneup if I were you and a thorough third party duplicate finder.  Dupe Guru's music edition seems to do a pretty good job.

  • How do I remove a secondary apple id from my Mac? I am being prompted for a apple id password for a former user; I do not have the information.  Prevents updates from App Store.

    How do I remove a secondary Apple ID that is not in use from my MacBook pro? The ID does not belong to me and when I attempt to download updates from App Store with my Apple ID, I am prompted for the password of the secondary Apple ID.

    Is this a second hand Mac? If so, you need to erase the Mac and install the version of OS X that shipped installed on the Mac from the factory. Then you set the Mac up as new with your Apple ID.
    User Linc Davis explains how a new owner can prepare a 2nd hand Mac for their own use.
    https://discussions.apple.com/message/25468326

  • I got a few free app before and did not download them completely how can i remove them from my account forever

    i got a few free app before and did not download them completely and dont want to do this
    but they stay in my download list and start automatly when i connect to itunes store and going to crazy me
    how can i remove them from my account for ever
    please help me

    Try Here  >  https://discussions.apple.com/thread/4074945?tstart=0

Maybe you are looking for

  • Tecra M2 - Will not boot up, power light is on

    Hi, I wonder if someone out there could help me with a problem? I was using my M2 on Friday when my friend accidentally knocked a very small amount of soft drink onto the front of my M2, I immediately put it upright and got a hairdryer on it. After l

  • Digital editions 2.0 always crashes after start.

    after download and installation on a windows xp machine, i recieve the following error message when clicking anwhere on the main window. "Adobe Digital Editions 2.0 has encountered a problem and needs to close.  We are sorry for the inconvenience." i

  • My iPod Touch Front Camera Is Not Working Properly.

    My iPod Touch Front Camera Is Not Working Properly.When I Try To Take A Picture ,It's Very ,Very Blurry. When I Put My Finger Close To The Camera It Looks Perfect. You Can See My Skin Lines{I Dont Know What They're Actually Called} It's Like It I Had

  • BSP CVAW_DOCUMENT_DISPLAY Doesnu00B4t work

    Hello, please can someone tell me if there are some Exaple BSP for showing an archived document in the Internet Exploerer ? I found the application CVAW_DOCUMENT_DISPLAY, but it doesn´t work, because OBJECTS_OBJREF_NOT_ASSIGNED. Thanks for help.

  • Publish after internet connection disruption?

    Hello all, I use iweb '08 to manage a university course. I record my lectures and then post the videos (use imovie) to my mobileme webpage. I have two general questions. 1) Is there a built in way to monitor the publishing progress as my upload files