TDMS & Config Files Comparison

Hello,
I'm not really new to the community since I had many queries that have already been asked before and I found an answer here, until now. I've been studying up on TDMS (File>Group>Channel) and its conceptual heirarchy seems to be very similar to Config Files (File>Section>Key). Now, I think it's possible to use the TDMS template for config files as well aside from measurement results but I thought I should ask...
What are the advantages and disadvantages of TDMS vs Config (*.ini) Files?
I haven't found any form of comparison between the two so far. I would personally excempt the Notepad accessibility of the Config File as an advantage since it would be better to limit the access to the system settings from non-authorized users.
Solved!
Go to Solution.

For your addon question - this is why it's important to have proper error handling and a proper shutdown routine in your application.
If you have any LabVIEW errors in your application you should handle these properly and if it's deemed to be an unrecoverable error then you tell your application to exit.
You should handle your application being closed correctly to make sure that whenever possible you shut down gracefully and close all of your references (e.g. hardware, file references etc.) before your application exits. There's some good information about that on a recent thread here: http://forums.ni.com/t5/LabVIEW/Best-Practices-for-Gracefull-Application-exit-close/m-p/3094973#M885...
Of course, there is always the possibility that you might get a fatal application crash or you might have a power cut or something - in that case you could periodically flush the TDMS buffer but there is also OS and disk-level caching to consider. 
If you look at the Advanced TDMS VIs - you can disable buffering and according to the help "buffering does not occur at any layer".
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets

Similar Messages

  • Urgent: UWL XML Config file

    Hi all!
    I copied the business object EXTSRV to ZEXTSRV and created a new method zprocess that is mainly a copy of the Process method of the EXTSRV BO just that the creation part of the url is diffirent. I kept the call_browser function.
    Then, I assigned this method to a task in the workflow this task is copy of the standard task TS50000075. I added the itemtype to the UWL XML config file and uploaded it to the system successfuly then i cleared the cash.
    When i double click on the item in the UWL it partially works. I see the text written in the task but it is supposed to pop up a window. This window doesn't appear.
    Can anyone help with that?
    Thank you in advance,
    Hajar

    Hi
    Just check this out Please do not forget to give points
    User Roles     Restricts who can get work items via the user role. For example, you can assign a portal role here, such as buyer. Only users with the role buyer will see items from the provider system in UWL.You can have multiple user roles separated by semi-colon. By specifying user roles for the portal users, it can be restricted as to who gets the work items in UWL.  For example, you can assign a portal role to a user, such as buyer.  Only users with the role buyer will see items from a system, for example, B7QCLNT000 in UWL.
    Pull Channel Delta Refresh Period (in Seconds)     Delta Pull mechanism of UWL enables new items to be fetched from the back end SAP systems every minute by default every 60 seconds, and every 30 seconds for alerts. However, this can be configured. The user does not need to use the refresh function to update the inbox. Once items are retrieved, timestamps are updated for the users whose items are successfully retrieved. These retrieved items are updated in the UWL cache. Setup necessary from Business Workflow to enable Delta Pull MechanismSome configuration settings are required if you use the UWL and the Extended Notifications for SAP Business Workflow. Define the following two batch jobs:...●      Background job (for example UWL_DELTA_PULL_1), consisting of a single step of ABAP report RSWNUWLSEL in FULL mode, using a report variant.Run the job once a day.1.     ●      A background job (for example UWL_DELTA_PULL_2), consisting of a single step of ABAP report RSWNUWLSEL in DELTA mode (default mode is delta, so report variant is optional).Run the job every one to three minutes (depending on the performance of the back end SAP system).Setup necessary from UWL to enable Delta Pull Mechanism The UWL service user in portal, with user id uwl_service, has to be granted access to the corresponding back end systems. This is a predefined service user provided by UWL. When the back end system is configured in the UWL administration page, an automated process is triggered to create a corresponding UWL service user in the back end system.Check role assignments and profiles status of this automated generated UWL service user and perform user comparison if necessary.●      If SAPLogon ticket is used (without using user mapping), you first create the system entry. A message about uwl_service user appears. Then in the back-end system give the uwl_service user an initial password. Now edit the system entry.●      If user mapping is used, you can first configure the back end system in the UWL administration page. Then access the respective back end system to initialize the password for the user uwl_service. Then, do user mapping in the portal as usual for service user uwl_service.In case uwl_service fails to be created in the back end and does not exist, you can manually create a back end user with the id uwl_service and assign the role SAP_BC_UWL_SERVICE and the rights as other end users.ORMap uwl_service to an existing back end user. Make sure that there is no multiple user mapping (there must not be two portal users mapped to the same back end user). This back end user must have the role SAP_BC_UWL_SERVICE.
    Snapshot Refresh Period (in minutes)     All items at the current time are fetched from the backend (for example from the SAP Business Workflow). The cache is synchronized thereafter. New / modified / deleted / updated items are fetched every session (every log on) if you leave the field value empty or enter a negative number.To specify a particular time frame for which the refresh occurs, enter the number of minutes
    The above registration procedure is usually sufficient to use a UWL iView. Item type retrieval and registration requires a connection to the systems and may take a couple of minutes.
    For each system, they are generated as the configuration named uwl.webflow.<system_alias> or uwl.alert.<system_alias>.
    In Manager Self-Service (MSS), the Universal Worklist groups together in Workset: Work
    Overview the various workflow tasks and alerts that are relevant for a manager.
    The standard MSS delivery includes the configuration file com.sap.pct.erp.mss.001.xml for the universal worklist.
    1. In the portal, choose System Administration &#8594;&#61472;System Configuration &#8594;&#61472;Universal
    Worklist and Workflow &#8594;&#61472;Universal Worklist &#8594;&#61472;UWL Systems Configuration.
    2. Create the following system connections:
    If you have already registered a suitable connector to the system connected to
    the system alias, the existing connector is sufficient and you do not have to
    register an additional one.
    &#9675; System alias: SAP_ECC_Financials
    Connection types:
    &#9632; WebFlowConnector
    &#9632; AlertConnector
    &#9675; System alias: SAP_ECC_HumanResources
    Connection type WebFlowConnector
    &#9675; System alias: SAP_SRM
    Connection type WebFlowConnector
    Leave the Web Dynpro Launch System field blank for all system connections.
    with regards
    subrato

  • "Unable to open config file" Error when starting tomcat

    hi all,
    Here is the output from two of the log files when I start tomcat4 on my linux box. I have configured the mod_jk on the tomcat side.
    From the output of the second log file, it seems that the ajp13 worker I defined was started successfully. What I don't understand is the following:
    1) In catalina.out, where des the line 'Unable to open config file' come from? Which config file?
    2) Tomcat4 is supposed to generate a mod_jk.conf automatically, but I don't see any file generated in 'conf/auto/'.
    Content of 'catalina.out'
    Unable to open config file
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0.4
    Unable to open config file
    Starting service Tomcat-Apache
    Apache Tomcat/4.0.4content of 'catalina_log.2002-08-16.txt'
    2002-08-16 01:05:22 HttpConnector Opening server socket on all host IP addresses
    2002-08-16 01:05:28 Ajp13Connector[8009] Opening server socket on all host IP addresses
    2002-08-16 01:05:28 Ajp13Connector[8009] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][0] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][1] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][2] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][3] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][4] Starting background thread

    I have all those files too.
    I think the 'config file' mentioned in the error log is the mod_jk.conf.
    On Jason Hunter's tomcat4 guide, it says don't use the tomcat4 RPM to installed. What is the difference bettween the RPM version and the tar.gz version? The only difference I can think of is that in the RPM version, the conf directory is in the 'etc/tomcat4/conf'. Could it be the reason that tomcat4 cannot read the config file? But it has no problem reading the server.xml though.

  • Jabber for windows 9.2.1 - InitialPhoneSelection doesn't work if configuration is in custom config file

    Hi,
    my customer wanted set InitialPhoneSelection to deskphone mode, when users firs run Jabber for Windows (ver. 9.2.1).
    I created custom config (configurationfile=jabber-config-deskphone.xml) but it doesn't work.
    Policies>
         <InitialPhoneSelection>deskphone</InitialPhoneSelection>
    </Policies>
    I tested it couple times and at the end I tried put configuration to default jabber-config.xml and ... this functionality start working...
    Could you check guys if you have same problem with custom config file? I think that it is bug. Maybe other option don't work in custom config file.
    Thanks a lot
    Pavel

    Hi Pavel,
    This setting is only when the client is installed and started by the user for the first time. After that the client will save the user preference (what was the phone selection when the user exited the client)  and use it in subsequent logins.
    Having said that, can you please specify in details how exactly you did your tests or maybe test again taking the above into consideration ?
    Thanks,
    Christos

  • SQL Agent Job failing - not using credentials in the config file for Data source

    Hi
    We have an SSIS pkg, that is secheduled as SQL Agent job using proxy account. The pkg contanins data source for connecting different SQL servers and the proxy account do not have access to the external DBs. The data source credentials are stored in the Config
    file.
    Why the job is not using the credentials in the config file and try to use the proxy account and failing.
    Do the proxy account need access to all the external dbs in the pkg, and then what is the purpose of the config file.
    I am sorry, i am not SSIS person trying to understand. If any one can explain tha will be great!!
    Thank you!
    VR

    Please take a look at these URLs:
    Schedule a Package by using SQL Server Agent
    SSIS package does not run when called from a SQL Server Agent job step
    Cheers,
    Saeid Hasani
    Database Consultant
    Please feel free to contact me at [email protected] as well as on Twitter and Facebook.
    [My Writings on TechNet Wiki] [T-SQL Blog] [Curah!]
    [Twitter] [Facebook] [Email]

  • HttpBinding not working when HttpHandler tag is present in web.config file

    Hi,
    I tried to add a WCF service in WCF Test Client using HttpBinding. But I couldn't add the service. I got the below error.
    There was an error downloading 'http://localhost/Services/PostOffice.svc/_vti_bin/ListData.svc/$metadata'.
    The request failed with an empty response.
    Metadata contains a reference that cannot be resolved: 'http://localhost/Services/PostOffice.svc'.
    The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.
    If the service is defined in the current solution, try building the solution and adding the service reference again.
    I removed the below code in the Web.Config, later I was able to add the WCF service to the WCF test client.
    <httpHandlers>
    <add type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" path="Telerik.ReportViewer.axd" verb="*" validate="true" />
    </httpHandlers>
    I'm not sure with the above code. Could you please let me what is the reason behind it and what is the use of above code and if I remove it how does it affect my application.
    Thanks in advance.
    Sandeep

    Hi Sandeep Pinniti,
    Please try to add the following config in your config file:
    <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    The validateIntegratedModeConfiguration="false" will allow us to keep our httpHandlers section populated without throwing an error. And I have tested in my side,
    it works fine.
    Best Regards,
    Amy Peng
    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.

  • Changing the Crystal Report dependency from 10.2 to 11.5 using config file

    Hi,
    We have an windows application in .net 2.0, which refers to Crystal Report 10.2 version. Now the dependency was being upgraded to 11.5. But we do not have the exact source code for the executable to change the dependency from 10.2 to 11.5.
    I have installed the CR 11.5 to the testing machine and tried to open the appilcation. it failed saying CR 10.2 dlls were missing
    Then  I changed the .net config files to change the dependency assembly as follows
    <runtime>
         <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" culture="neutral" />
             <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.Windows.Forms" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
          </assemblyBinding>
      </runtime>
    Now the application launched with out any issues. I thought the problem was sorted out.
    But when I tried to generate the report, there comes the problem
    During the report generation, I am getting the following error
    Crystal Reports
    An error has occurred while attempting to load the Crystal Reports runtime.
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
    OK  
    I do not want to install the 10.2 redistributable in teh machine also do not want to re-compile the sources changing the dependency
    Is there any way to achieve this ?
    Any help is much appreciated.
    Thanks
    Edited by: Balaji Narasimhan on Aug 3, 2009 5:28 PM

    No way that I know of. I believe once you change the dependency, you will have to recompile the project. Installing CR 10.2, may get this to work, but the app will most likely use the 10.2 references. Let's see if anyone else has any ideas.
    Ludek

  • XML file in the form of .config file how to convert it to class and store it in single object

    Hi,
    I have a config file in which i have to convert it to class and get an object.
    example:
    <?xml version="1.0" encoding="utf-8" ?>
    <xyz xmlns="">
      <Container name ="Basic">
        <Connectivity user="" server="" protocol="udp"/>
        <Connectivity user="" server="" protocol="udp"/>
      </Container>
      <Container name ="Cp">
        <settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.counterpath.com/cps">
          <domain name="audio">
            <section name="headset">
              <setting name="audio_in_agc_enabled " value="1"/>
            </section>
            <section name="incoming">
              <setting name="use_agc" value="1"/>
            </section>
            <section name="vad">
            </section>
          </domain>
          <domain name="system">
            <section name="qos">
              <setting name="audio" value="tos 46"/>
            </section>
            <section name="dtmf">
              <setting name="force_send_in_band" value="0"/>
              <setting name="minimum_rfc2833_play_time" value="40"/>
            </section>
            <section name="network">
              <setting name="dtx_enabled" value="0"/>
            </section>
            <section name="diagnostics">
              <setting name="enable_logging" value="1"/>
              <setting name="log_level" value="Error"/>
            </section>
            <section name="general">
              <setting name="add_OS_version_to_user_agent_header" value="1"/>
            </section>
            <section name="indialog_notify">
              <setting name="enable_indialognotify" value="1"/>
            </section>
          </domain>
          <domain name="rtp">
            <section name="2833">
              <setting name="enabled" value="1"/>
              <setting name="packet_time_in_ms" value="60"/>
              <setting name="payload_number" value="101"/>
            </section>
            <section name="inactivity">
              <setting name="timer_enabled" value="0"/>
            </section>
          </domain>
          <domain name="proxies">
            <section name="proxy0">
            </section>
            <section name="proxy1">
            </section>
          </domain>
          <domain name="ggg">
            <section name="device">
              <setting name="use_headset" value="1"/>
              <setting name="rrr" value="1"/>
              <setting name="eee" value="480"/>
              <setting name="eme" value="hhh"/>
              <setting name="headset_name" value="vvv"/>
              <setting name="manual_audio_devices_configure" value="0"/>
              <setting name="audio_in_device" value=""/>
              <setting name="audio_out_device" value=""/>
              <setting name="ringer_device" value=""/>
            </section>
            <section name="system">
              <setting name="export_settings" value="EndpointSettings.xml"/>
              <setting name="enable_export_settings" value="0"/>
              <setting name="log_level_AbstractPhone" value="0"/>
              <setting name="log_level_Audio" value="0"/>
              <setting name="log_level_Auto Configuration" value="0"/>
              <setting name="log_level_CCM" value="0"/>
              <setting name="log_level_Conferencing" value="0"/>
              <setting name="log_level_Contacts" value="0"/>
              <setting name="log_level_DNS" value="0"/>
              <setting name="log_level_GUI" value="0"/>
              <setting name="log_level_Jitter" value="0"/>
              <setting name="log_level_Licensing" value="0"/>
              <setting name="log_level_Media" value="0"/>
              <setting name="log_level_Privacy" value="0"/>
              <setting name="log_level_RTP" value="0"/>
              <setting name="log_level_STUN" value="0"/>
              <setting name="log_level_Security" value="0"/>
              <setting name="log_level_Storage" value="0"/>
              <setting name="log_level_Transport" value="0"/>
              <setting name="log_level_USB Devices" value="Info"/>
              <setting name="log_level_Utilities" value="0"/>
              <setting name="log_level_Video" value="0"/>
              <setting name="log_level_Voice Quality" value="0"/>
              <setting name="log_level_XMPP" value="0"/>
              <setting name="log_level_Endpoint" value="6"/>
            </section>
            <section name="beeptone">
              <setting name="play_locally" value="0"/>
              <setting name="enable_beeptone" value="1"/>
              <setting name="beeptone_file" value="beep.wav"/>
              <setting name="beeptone_timeout" value="30000"/>
            </section>
            <section name="dtmf">
              <setting name="play_locally" value="1"/>
              <setting name="pause_start_stop_dtmf" value="100"/>
            </section>
            <section name="control">
              <setting name="auto_answer" value="0"/>
            </section>
            <section name="ctrol">
              <setting name="auto_ans" value="0"/>
            </section>
          </domain>
        </settings>
      </Container>
    </xyz>
    Please help me out in creating an object from it.
    Thanks,
    Hiranmayee

    It's one of those things you usually start from the other end.
    IE with a class and then serialise / deserialize to xml.
    Because you have a namespace in there:
    <settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.counterpath.com/cps">
    I think you will find linq to xml will have issues with that.
    You could still use xpath to pick data out of there and there's been a thread on the c# forum recently which is relevent:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/2dc0581e-f2fd-4fd3-89ee-e59280c398e6/read-xml?forum=csharpgeneral
    Why do you want to turn that into an object?
    By the way.
    This isn't a wpf question and you should probably have posted it on the c# forum.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

    Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

    Hi Jay,
    SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
    SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
    once on each server, and then the variable can be used by all the packages on this server.
    Regards,
    Mike Yin
    TechNet Community Support

  • How can I use my log4j config file of my web project in ias?

    I used log4j in my web project. So I put a config file "log4j.properties" in my project WEB-INF/classes/.
    It works well in tomcat. But when I deploy it to ias parent by orabpel project, It didn't work know!
    I can only see my log in "$ORACLE_HOME/opmn/logs", and some message I nedd is losed, such as the class name, line,datetime, Thread and so on.
    I think the config file of my project is't work, maybe log4j use some config file of ias but me.thx
    So where is the log4j config file of ias, can i modify it ?
    Or how can I let my project use my config file not ias? Any one can help me, thx!

    If you are wondering if/how to control the log messages coming from bpel, here is the corresponding log4j config file that it uses:
    $ORACLE_HOME/bpel/domains/<DOMAIN_NAME>/config/log4j-config.xml

  • How to add shortcuts to user Start Menu and Taskbar or Desktop with using Microsoft Office 2013 Config file.

    Hello,
    How can i add the shortcuts for Office 2013 feature (Word, excel, ext) to the users taskbar or desktop with using config.xml file while installing the Microsoft Office 2013 from SCCM?
    I know how to do that with OCT, but i have another problem if i use OCT. So i have to do it with Config.file, but i don't know which code can i write on config.xml file to create shortcut on desktop or taskbar...
    Regards,

    Hi
    There is a known issue about
    changing the shortcut location for an Office 2013 application:
    When you try to change the shortcut locations for Office 2013 applications in the Office Customization Tool (OCT), you receive the following error message:
    Invalid start in folder. Please try again.
    Then, you add the Start in location for Office 2013 and run a customized installation. When you double-click the shortcuts that are displayed on the desktop, Configure shortcuts does
    not work and you receive the following error message: 
    Sorry, we couldn’t find your file. Is it possible it was moved, renamed or deleted?
    To work around this issue, type a single open bracket ([) in the Start in
    field.  
    In addition, refer to the link below on "Configure shortcuts" in OCT:
    http://technet.microsoft.com/en-us/library/cc179097.aspx#Configure_shortcuts
    Regards
    Tylor Wang
    TechNet Community Support

  • Replacing Time Capsule - can I save my old config file to use with new one?

    I have a Time Capsule backing up 3 of my Macs. A couple of nights ago, I started receiving the following: "sparsebundle” could not be created error 22
    on all 3 Macs.Time Machine application fails due to this error and if I access the Time Machine in Finder, I can see the 3 volumes but cannot go any deeper. I get the same sparsebundle error.
    A few minutes ago, my wife called me stating that her MBP gave her a backup error stating that the backup Volume name changed, continue or don't backup. Something weird is obviously going on. I also noticed that the TM fan was kicked up into high gear. I'm suspecting a hardware failure of some sort.
    Thoughts?
    If I do need to replace my TC, is there a way to save the config file from my old one and import/use it on a new TC if I have to purchase one? Would save me from entering a lot of wireless access devices since I use MAC filtering.

    Yes you can easily import/export settings ( I have 6 base stations so do this quite a lot - in fact I always export the configs as a backup anyway)
    As to your TC can you connect it locally and run Disk Utils to see if it need some repairs?
    Regards,
    Shawn

  • Unable to view the contents in NQS Config file

    Hi Forum,
    After I successfully install the OBI EE 10.1.3 Application, I am unable to view the contents in NQS Config file. It is opening in Notepad with error showing as "The filename, directory name or volume label syntax is incorrect."
    So please guide me in resolving this issue.
    Regards
    Cool j

    You probably have restricted access to the file. Check if the drive is ntfs. If the os user is in administrator group, you can give permissions in file properties.

  • How to load a config file at appliaction startup

    Hi
    Is there a way to load a config file at application startup?
    I have the DB conection info in a config file.
    Right now m accessing that info by loading it using a classloader n then parsing it.
    When ever i access the DB this file is loaded n parsed.
    I want it to be loaded only once at startup n get cached.
    Then later on whenever i refer it, i shud get the cached copy.
    Is there a way to do this?

    Or you could just include a relevant static block.
    For instance you could have a utility class for accessing your DB in which you wrap jdbc code for querying, updating etc. This class would have code like the following:
    public class DBBean {
       private static DataSource ds = null;
       static {
          loadDataSource();
       public static loadDataSource() {
          // load your property file with the configuration info and setup your datasource
       public static void doSomething() {
          Connection con = ds.getConnection();
    }By placing initialization code in a public (?) method you can call this method to re-initialize your DataSource if e.g. you updated your datasource settings.
    Hope this helps

  • Search for a specific string in web.config file

    Hi
    Is there a way we can search a specific word in web.config using powershell.
    I have an entry of "user name" in the connection string. I want to find what the user name is and whether its a correct user name or not based on the criteria set in the script.
    i believe its a simple matter of if statement but due to connection string i am unable to do this.
    this is my connection string from web.config
        <connectionStrings>
        <add name="Membership" connectionString="Data Source=testdb;Initial Catalog=test;user   
        name=testUser;password=123456;MultipleActiveResultSets=true" 
        providerName="System.Data.SqlClient"/>
        </connectionStrings>
    My criteria is. if user name -eq testUser write-host "correct user name" else "user name is incorrect"
    This is the script which i am using
        $webConfig = 'C:\Users\test\web.config'
        $cfg = [xml](gc $webConfig)
    Not sure how the if statement will work in searching the document and applying critera

    Here is the full web.config file. i just modified the credentials.
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,
    EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
        <sectionGroup name="common">
          <section name="logging" type="Common.Logging.ConfigurationSectionHandler,
    Common.Logging" />
        </sectionGroup>
        <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468
    -->
      </configSections>
      <connectionStrings>
        <add name="Membership" connectionString="Data Source=TestDB;Initial Catalog=Test;user
    id=TestUser;password=1234556;MultipleActiveResultSets=true" providerName="System.Data.SqlClient" />
        <add name="Administrator" connectionString="Data Source=TestDB;Initial Catalog=Test;user
    id=TestUser;password=1234556;MultipleActiveResultSets=true" providerName="System.Data.SqlClient" />
      </connectionStrings>
       <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
      </startup>
      <entityFramework>
        <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory,
    EntityFramework" />
      </entityFramework>
      <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    throwExceptions="true">
      <targets>
           <target name="f1" xsi:type="File" fileName="test.log.txt"
    layout="${threadname} ${longdate}
         ${callsite} ${logger}[${level}] ${message}" />
           <target name="console" xsi:type="Console" layout="${threadname}
    ${longdate} ${callsite}
         ${logger}[${level}] ${message}" />
         </targets>
     <rules>
          <!--<logger name="Quartz.*" level="Warn" />-->
          <logger name="*" writeTo="f1" minlevel="Info" />
          <logger name="*" writeTo="console" minlevel="Debug"
    />
        </rules>
      </nlog>
      <common>
        <logging>
          <factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog20">
            <arg key="configType" value="INLINE" />
          </factoryAdapter>
        </logging>
      </common>
      <appSettings>
       <add key="V3Import.Import.TestMode" value="true" />
        <add key="MSMQ.QueueName" value="TestQueue" />
        <add key="MSMQ.ErrorQueueName" value="TestQueue" />
        <add key="AdminSignaturePath" value="C:\user\test\myfolder" />
        <add key="SyncQueueJobCRON" value="0 0/2 * 1/1 * ? *" />
      </appSettings>
      <system.web>
        <authentication mode="Forms">
          <forms loginUrl="~/Account/Login" timeout="5000000" />
        </authentication>
        <membership defaultProvider="AspNetMembershipProvider">
          <providers>
            <add connectionStringName="Membership" enablePasswordRetrieval="false"
    enablePasswordReset="false" requiresQuestionAndAnswer="false" applicationName="/Test" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"
    minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </membership>
        <profile>
          <providers>
            <add name="AspNetProfileProvider" connectionStringName="Membership"
    applicationName="/Test" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </profile>
        <roleManager>
          <providers>
            <add name="AspNetRoleProvider" connectionStringName="Membership"
    applicationName="/Test" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </roleManager>
      </system.web>
      <system.net>
      </system.net>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="dotless.Core" publicKeyToken="96b446c9e63eae34"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.3.1.0" newVersion="1.3.1.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"
    />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>

Maybe you are looking for

  • How to synchroniz​e with RTSI?

    Hi all  I am working with  2 PCIe card (#6351 and #6536) connected via RTSI. The bus RTSI permit to solve 2 critical problems in my application: simultaneous triggering and synchronization For the synchronization, I would like to generate a rectangul

  • HT1338 Trying to connect Imac Pro 10.7.5 to Cannon Pixma M3550

    Trying to add a canon pixma printer MG3550 to my imac pro version OSZ 10.7.5. I cant seem to find a printer driver for it. Afer updatigng the software in Apple it only shows the MG3200 series of Pixmas. Can anyone suggest anything else to do. Everyth

  • Recycle bin and Desktop icon ini file

    Hello hope this is in the right section,  Toshiba P750 Laptop, Every drive has a recycle bin which is annoying as my last laptop didnt have it, I cant remove the folder, C drive is fine. Also there is a desktop icon system ini folder my libraries fol

  • Iam not able to transfer apps from itunes to my iphone 4

    iam not able to transfer apps from itunes to my iphone 4

  • IPad WIFI Issue similar to iPhone one that has gone unaddressed

    Users have been heavily pushing concern over WIFI disconnecting/invisibility behavior on the iPhone and that has gone without response from Apple for months. One wonders if they are dealing with the same issue on the iPad. http://discussions.apple.co