Trying to encrypt a config file with aspnet.regiis.exe.

Hello,
I am trying to encrypt a file using aspnet.regiis.exe. The problem I am running into is the file is not the web.config file that aspnet wants to encrypt. It is a file named CustomerConnStrings.config. I have tried to encrypt it, but aspnet_regiis errors
out saying that "The configuratino for physical path 'c:\temp\customerconnstrings.config' cannot be opened. Failed!"
The command I am running is :
aspnet_regiis.exe -pef "connectionStrings" "C:\Temp\CustomerConnStrings.config"
I tried to run cmd as both Administrator and a regular user. I have tried to run the 64bit version of aspnet_regiis. I am able to rename the CustomerConnStrings.config file to web.config and add the <configuration> lines in and then it will allow me
to encrypt it, but I am hoping that is not the best solution.
Thanks!

Hi Andy,
Please post your thread on asp.net forum for effective response.
http://forums.asp.net/.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • DRM-79819: Encryption error: Config file encryption is not valid for this m

    Hi ALL,
    Suddenly we got this error while running an export via batch utility. any ideas?
    Error: DRM-79819: Encryption error: Config file encryption is not valid for this machine.

    This could be an issue with your drm-config.xml file, the file that stores the DRM configuration information defined in the DRM Console. If a drm-config.xml was restored from an old backup or copied from another machine, this could well be the issue.
    In this case, you can run the DRM Console to update the file and correct it. You may see a one-time error reported when the DRM Console starts up, but the Console app should correct the file automatically after reporting the error to the user.
    If this does not resolve your issue, review the Windows App Event Log, to determine which DRM Server process(es) are also reporting this error (to narrow down any other potential issues with a config file for one of the DRM Server executables). I am guessing this error was observed in just the DRM Batch client, but related Event Log should also be present in the App Event Log.
    HTH.
    *** An additional note, if your issue proves to be the one above, you may need re-enter passwords on your defined Database Connections for defined DRM Apps. Try just re-running the DRM Console and re-saving the config initially, but be aware this may be a required additional step, re-entering the DB passwords after the updated encryption has been applied to the stored drm-config.xml file.
    Edited by: 680314 on Jan 19, 2013 11:52 AM

  • I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it.

    I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it. All of the files are going into the same zip file but I want them visually in the space that I put them and not at the bottom of the snap to grid folder location they are looking like.  I am trying to  drag and drop files in groups so that I can group them for now, but image files always do their own "sort by" when I drag them from my web pages. Links don't do it though.  I tried resetting the folder, and deleting the DS files. No luck.

    You keep asking variants on this same question. You've had replies in all your other threads. If you can't find them, go here and click where it says Activity:
    Thomas Cannon Jr.

  • How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?

    How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?  Get error "There was an error opening this document. Access denied".  Disabling Protected Mode in Reader doesn’t always work.
    McAfee: https://kc.mcafee.com/corporate/index?page=content&id=KB74299&actp=search&viewlocale=en_US &searchid=1240943327683

    If Reader ISN'T in the list of prpgrams to open with, click "Browse"
    In the "Browse window" go to C/Program files [or Program Files (x86)]/Adobe/Reader 11/Reader
    Select "AcroRd32.exe" and click "Open"
    Make sure "Always use the selected program to open this kind of file" is checked and click "OK".

  • How to start a cache config file with proxy-scheme

    Hi all,
    The below is my cache-config file taken from coherence extend example.
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>*</cache-name>
    <scheme-name>dist-default</scheme-name>
    </cache-mapping>
    <cache-mapping>
    <cache-name>*</cache-name>
    <scheme-name>example-remote</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>dist-default</scheme-name>
    <lease-granularity>member</lease-granularity>
    <backing-map-scheme>
    <local-scheme/>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <distributed-scheme>
    <scheme-name>example-remote</scheme-name>
    <lease-granularity>member</lease-granularity>
    <backing-map-scheme>
    <local-scheme/>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <proxy-scheme>
    <service-name>ExtendTcpProxyService</service-name>
    <thread-count>5</thread-count>
    <acceptor-config>
    <tcp-acceptor>
    <local-address>
    <address>localhost</address>
    <port>9009</port>
    </local-address>
    </tcp-acceptor>
    </acceptor-config>
    <autostart>true</autostart>
    </proxy-scheme>
    </caching-schemes>
    </cache-config>
    In order to start the proxy cache server on localhost:9009 should i use the DefaultCacheServer program only/ I tried to use a SimpleCacheExplore program with the above config and it didnt start the proxy-scheme on localhost. is there anything i am missing?
    Regards
    S

    Hello,
    I ran the following with your cache configuration:
    java -cp coherence.jar -Dtangosol.coherence.cacheconfig=coherence-cache-config.xml com.tangosol.net.DefaultCacheServer...and got the following output:
    2010-01-04 10:23:54.363/5.477 Oracle Coherence GE 3.5.2/463p2 <Info> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=1): TcpAcceptor now listening for connections on 10.149.189.62:9009
    Services
      TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=10.149.189.62:8088}, Connections=[]}
      ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=1}
      InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
      DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0}
      ProxyService{Name=ExtendTcpProxyService, State=(SERVICE_STARTED), Id=3, Version=3.2, OldestMemberId=1}
      )The proxy service appears to be running using DefaultCacheServer and this configuration. Does your output look any different?
    Thanks,
    Patrick

  • LV 8.2 Config File with Enum bug

    Please refer to attachment.
    Set the Enum and run the VI. The Enum is converted into string and then saved into a config file.
    The file is immediately read and the key is converted back to enum.
    It works fine until you choose index 32 in the enum. Either the Write Key or the Read Key fails to encode/decode enum index 32 correctly.
    Regards,
    Johan
    Attachments:
    ConfigFileBug.vi ‏20 KB

    Hi Tikus,
    you try to save a space. deep inside the config files spaces at the end (or beginning) of the line are removed. Perhaps you should save the space as as a " " (inside quotes)
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Issues using multiple load-config files with ant

    Hello,
    Not sure if this is the correct place...
    I am creating an ant build script to compile our flex application. I am trying to use the default flex-config by doing <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/> and project specific config file add the datavisualization module and any other libraries we might need in the future. I am trying to do this as I don't want to modify the flex-config.xml
    The issue I keep running into is I get a compiler error saying "unable to locate specified base class 'spark.comonents.application..". if I place the custome load-config file above the adobe default flex-config it gives errors stating it the "SeriesSlide" type
    <mxmlc file="${project.sourcePath}/FBApp.mxml"
             output="${project.output.binaryPath}/${project.output.fileName}.swf"
             locale="en_US"
             static-link-runtime-shared-libraries="false"
             static-rsls="false"
             use-network="true"
             accessible="false"
             debug="true">
             <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/>
             <load-config filename="C:/Hudson/.hudson/jobs/FB 2.0 Flex/workspace/FBApp/FB-config.xml"/>
             <source-path path-element="${flex.sdkPath}/frameworks/libs"/>
             <source-path path-element="${project.sourcePath}"/>
             <library-path dir="${flex.path}/sdks/${flex.sdkVersion}/frameworks/locale/en_US"
                includes="*"/>
             <library-path dir="${project.libraryPath}"
                includes="*"/>
             <keep-as3-metadata name="Protected"/>
          </mxmlc>
    the following is my FB-config.xml
    <?xml version="1.0"?>
    <flex-config>
       <runtime-shared-library-path>
    <path-element>C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\libs/datavisualization.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/datavisualization_4.1.0.16076.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>datavisualization_4.1.0.16076.swz</rsl-url>
    <policy-file-url>.</policy-file-url>
       </runtime-shared-library-path>
    </flex-config>
    It seems to be that the first "load-config" ant runs into is the only one that gets used. When looking around the internet I have multiple cases of where people say they have successfully used multiple load-config files.
    This one in particular.
    http://flashdevelop.org/community/viewtopic.php?f=13&t=5629&view=previous
    If I had to guess on what was wrong I believe my FB-config.xml file is incorrect but I can't find an example of anyones custom configuration file.
    Any guidance would be apprecaited.

    I am embarrassed to say that your solution answered my question.
    I was about 10 min away from rewriting my Ant script to just use the mxmlc.exe directly instead of the mxmlc ant tag. I kept running into the -flex-config+=YourConfig.xml for the command line option but never saw the xml variant.
    http://blog.flexexamples.com/2008/12/21/using-a-custom-flex-configxml-file-in-flex-builder -3/
    http://livedocs.adobe.com/flex/3/html/help.html?content=configuring_environment_3.html
    Does Flex have any documenation that shows all the different tags that are available like the Ant documenation?
    http://ant.apache.org/manual/Tasks/delete.html
    Thanks at ton.

  • I am trying to email a jpg file with exif data but it dissappears from the file when the recipient opens it.

    I am trying to email a jpg file so the recipient can read the exif data to confirm the number of shutter actuations the camera has made. On opening it there is no detailed exif data. I have replicated this myself by emailing it to myself and also tried using a gmail account (through Mail).
    Normally to see the exif data I open the jpg or RAW in Preview and open the Inspector which shows camera and lens exif data.
    I am using a iMac with Lion and the recipient has a MBP with Snow Leopard
    Any suggestions please.
    J

    How are you attaching the image to your mail document? There is a bug with iPhoto -> Mail that will cause a loss of EXIF data. It works fine when attaching from a file.

  • Using Custom Config Files with WinForms

    I have created a new .config file for my application called "MyConfigFile.config" but I do not know how to reference, read or update it. Should I treat it as any other generic XML file?
    Rob E.

    The configuration file should be in the same directory as the application. The name of the configuration file should have the same name as the application with .config at the end. For example, an application called Watcher.exe should have
    a configuration file called Watcher.exe.config.
    To access the appSettings values from inside the program, use the AppSetting property of the ConfigurationSettings class.
    string title = System.Configuration.ConfigurationSettings.AppSettings["Title"];
    Two things should be kept in mind when accessing appSettings from the configuration file.One, the AppSetting could be null. Two, the AppSetting property always returns a string.When getting values from the configuration file, the code needs
    to handle these situations.
    One way to approach this is as follows:
    int AppSetValueMax = 0;
    if (ConfigurationSettings.AppSettings[key] != null)
    try
    AppSetValueMax = Convert.ToInt32(ConfigurationSettings.AppSettings["Max"]);
    catch(Exception e)
    //Exception Handling

  • Edit/update config file with Applescript??

    am trying to read the file and then trying to change the values of the same with permissions, pls suggest how to write the same file with permissions.
    The below script gives me the values as shown below, i need to change those values like aaaaa to 1, pls suggest.
    set fileContents to {}
    set x to ""
    set filepath to POSIX path of "Macintosh HD:Library:Application Support:Macromedia:abc.cfg"
    try
        open for access filepath
        set fileContents to (read filepath)
        close access the filepath
    on error
        return false
    end try
    fileContents
    output :
    "aaaaa=0
    bbbbbbb=0

    If you want to write to the file you need to open it with write permissions
    open for access filepath with write permission
    Ideally you should store the result of that command as a reference to the opened file:
    set myFile to open for access filepath with write permission
    now you can read the data:
    set fileData to read myFile
    You can erase the file by setting the EOF to 0:
    set eof myFile to 0
    (otherwise writing to the file appends data, rather thatn overwriting it)
    You can write data to the file:
    write "blah blah blah" to myFile
    and close it when you're done:
    close access myFile

  • When trying to open pages 08 file with pages 09

    I am trying to open an old pages08 document using pages 09 however is not letting me do so.  A message saying " to open it save it as pages09 first" is coming up however I cannot even open the file, how can I save it as pages 09 then?
    Very frustrating...

    The last version of Pages ’08 was 3.0.3. The last version of Pages ’09 was v4.3. On the right contextual menu from my previous post, one of these will appear as Pages (3.0.3), or Pages (4.3). Choose one of these to open that Pages ’08 document. If you have neither, then take a look at the free conversion service at zamzar.
    I just uploaded a Pages ’08, and a Pages ’09 document — both containing layout and images with text. I requested conversion into Word .doc format, and gave a little-used email address. In five minutes, I had an email response with download links to the converted documents. The reproduction in the Word documents was near perfect. Pages '09 and Pages v5.5.1 on Yosemite had no issue opening these Word documents, though there were the usual grumblings about removing linked text boxes, etc in Pages v5.5.1.

  • Encrypt/decrypt same file with two different passwords

    Hi everyone:
    I'm quite new to Java and cryptography in general and have a theoretical question. Is the following scenario possible and how would it be implemented:
    Two users with two passwords (say, a regular user and a superuser) encrypt, decrypt, read from and write to the same file. The secret key for encryption and decryption should be based on their passwords (generated from their passwords), i.e. not stored anywhere on the system.
    I've been racking my brains but can't think of a way. Am I missing an obvious solution?
    Can it be done?
    Thanks,
    Michael

    I don't think you can avoid having more than just a password hash stored on the system. Using a combination of my approach and Jeff's approach I can implement this as long as you allow a password protected key store to be stored on each system. A given user's key store would contain his RSA private key and associated public key together with the admin user's RSA certificate (thought the admin user's public key could be stored in the program since it does not have to be kept private). The admin user's key store would contain only his RSA private and public keys.
    Assume that the data file is to be create by a standard non-admin user. His code performs the following actions -
    1) Generates a random symmetric algorithm key. Say a 128 bit AES key.
    2) He write a digest of this to the output file.
    3) He writes the random key encrypted with his public key to the file.
    4) He writes his public key (or certificate) to the file.
    5) He writes the random key encrypted with the admin users public key to the file.
    6) He encrypts the data using the random key writes the result to the file.
    This user can then update the file by
    1) reading from the file the digest of the random key.
    2) reading the random key encrypted with his public key.
    3) Decrypting this encrypted random key using his private key extracted from his keystore.
    4) Check the digest of this key to make sure he has the correct random key.
    5) skipping his certificate and the random key encrypted using the admin user's public key.
    5) Decrypting the data using the random key.
    6) Update the data.
    7) Re-encrypt the file as described in the first part using a new random key.
    The admin user can
    1) read from the file the digest of the random key.
    2) skip the random key encrypted using the user's public key.
    3) reading the user's public key from the file (for use later if the file needs to be updated).
    4) read the random key encrypted using the admin's public key.
    5) decrypting the random key using the admin's private key obtained from his key store.
    6) check the digest of the random key to make sure it is correct.
    7) decrypt the the data.
    The admin can edit the data since he can re-encrypt the data in a similar manner to the way it was created in the first place.

  • Trying to open a CP3 file with CP4::

    My client has me updating a course for them.  They delivered me 2 CP3 files and I have CP4.  When trying to open them, I am guided to save it as a different file name.  Once I do this, file number one opened and is fone...but file number 2 gives me this error message::  "Exception EConvertError in module converter.dll at 0000BBF#."
    Can someone help me with this?

    Hi again
    In that case you need to locate someone with Captivate 3 and have them try it for you.
    I can do that for you if you like. If you want, send me a private email message to rstone75 (at) kc (dot) rr (dot) com. You could use a free service such as http://www.yousendit.com or http://www.transferbigfiles.com to ship the file.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Problems trying to publish a flash file with flv component onto a dreamweaver site

    Hi, I posted this on the flash forum too, but maybe here is
    more appropriate....
    if anyone can help me out with this, I would really
    appreciate it. I have put a flv file into a flash document,
    published it for progressive downloading (the video lasts about 4
    minutes) all seems fine when I test the movie.
    I then wanted to embed it into my website. Everything seems
    fine there too, except that when I preview it in a browser, it
    looses its skin.
    I copied the swf file and the skin into my remote server
    along with the flv file that is placed in the swf.
    However when i upload the page, there is no video.......
    Is the file to big? Or have I done something wrong. Is there
    a script that I'm supposed to do?
    Sorry to seem stupid, I'm learning as I go along from the
    help topics, and I cant seem to find my answer,
    Thanks
    John

    It had me puzzled too until I realised I had exceeded the
    amount of webspace my ISP had granted me. By uploading a FLV file
    to my ISP, I had exceeded the 100mb they grant me for nothing. It
    was tricky to work this out because there didn't seem to be any
    indication that the flv file hadn't uploaded.
    Check your webspace allocation to see if it's the same
    problem.

  • I am trying to Open an SVG file with Flash

    There's a list of programs that open svg files, and Flash was one of them (besides CS5). I know about Inkscape but can't open it with OSX without getting something to run windows (11) and when I went to get that it wasn't available. So I downloaded flash, and it says it's installed but there is no reference to Flash on my computer (except the install pkg). Any ideas??

    You downloaded Flash, or Flash Player?  Flash Player is a web player (browser plugin), not a standalone player.
    Adobe Media Player may do what you want.

Maybe you are looking for

  • Trouble with playing movie clips

    PLEASE can someone help? I have just imported video footage from my old Sony Handycam and all that appears on the event library is single grey squares...clips?   It takes forever for the beachball to stop whizzing - don't understand it. It tried to w

  • External JNDI Client, jndi.properties/connection

    How can I lookup up a object jms/ConnectionFactory, which I've confirmed is in this namespace with a external java program client. I have the Client jars in the class path. It connects, tries to lookup jms/ConnectionFactory. But I get javax.naming.Na

  • Solution Manager - eCatt issues during rec/exec of SAPGUI based scripts

    Hi all, after the last support package set up I started to encounter some problems during the recording and the execution of test scripts based on SAPGUI command. During recording: First time I try to record a transaction, after selecting SAPGUI comm

  • Single words in address bar don't resolve correctly...?

    I think this is new in v4, as I don't recall having this problem in the past. Here's what I'm talking about. If I enter "pandora" into the address bar Safari resolves that to http://pandora/, which is an ill-formed address and doesn't load pandora.co

  • Contacts 'is not member of' All iCloud or On my Mac

    Can someone, please, explain the meaning of ‘is not member of’  in Contacts when applied to ‘iCloud’ or ’On My Mac’ ? As an example, I got the following results on some list of contacts.           clicking on ‘All contacts’ reveals a list of 254 cont