How do I properly set up a config file?

Sorry if this question is trivial but I'm new to SSIS.
I have a DLL that I'm linking to my SSIS application.  When I try to read Configuration settings from my Config file via code in my DLL such as below:  
Config.MHLServiceSettings MHLSettings = (Config.MHLServiceSettings)ConfigurationManager.GetSection("MHLServiceSettings");
it fails with the following message:
An error occurred creating the configuration section handler for MHLServiceSettings: Could not load type 'HealthSolutions.Core.Config.MHLServiceSettings' from assembly 
When the code is accessed by a C# project of which my DLL is a part of the solution, it works fine.
In my SSIS project I have the configuration set to Development and have updated c:\Program Files\Microsoft SQL Server\110\DTS\Binn\DtsDebugHost.exe.config to include
<configSections>
<section name="MHLServiceSettings" type="HealthSolutions.Core.Config.MHLServiceSettings"/>
<section name="MembershipServiceSettings" type="HealthSolutions.Core.Config.MembershipServiceSettings"/>
</configSections>
<MHLServiceSettings baseURI="https://dev.mydomain.com/MHL.svc/" authType="Basic">
<Credentials username="Asp" password="passsword" domain="DOMAIN01" />
</MHLServiceSettings>
<MembershipServiceSettings
These values are from the config file that was created by my DLL.
Can someone either tell me what's wrong or point me in a direction so that I can figure out what is happening?
If I need to add any information or provide more information to help with the issue please let me know.
Thanks
Bob

1st the SSIS projects do not have the notion of a configuration. 2nd DtsDebugHost.exe.config has nothing to do with packages in general.
Please do not treat C# project akin to BI projects, these are different things.
We use configurations in a different manner, yes, you may want to read
How to: Add a Package Configuration
Arthur My Blog

Similar Messages

  • Dynamically Setting a Variable from a Connection String that has been set by a Config File

    Hi Guys
    I'm setting up a Master / Slave (Parent / Child) dtsx environment but I'm unable to work out how to dynamically set a variable in the Master dtsx from a connection string that has had its value set by a config file. I'm sure it's possible.
    Below is the what I'm hoping to achieve. I've set up everything apart from the highlighted section.
    Any ideas?

    First, what version of SQL Server are you using?
    You could switch the problem around.  You could set the value of a variable from the config file, then it is easy to use that variable as the connection string source for your connection manager.  At the same time you can use a parent variable
    configuration to map that variable to variables in your child package.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • How to I import MAX 4.6 config files into MAX 5.5? Missing Data Neighborhood. Strain gage set up is different.

    I have been trying to import my config file from MAX 4.6 into a new system running MAX 5.5 and daq 9.8.
    The data neighborhood does not appear, however my application sees the information. How can this be remedied? Start over?  I have a lot of inputs and would rather not have to recreate all of them.
    What is the difference between the strain gage settings in MAX 4.6 and MAX 5.5? The selection box for the bridge in 4.6 has a selection for "let niDAQ choose". Seems that is necessary to use the 4.6 config data. Try though I might, the readings in 5.5 do not match those in 4.6.     Is there a work around fo this? I don't want to have to perform an entire system calibration.
    Thanks
    Chris
    Solved!
    Go to Solution.

    Attached JPG's.
    Here is more information regarding the MAX Strain Set Up.
    Attached are screen shots from MAX 4.6 and MAX 5.5. 
    Hardware:  PXI chassis with bridge to a PC.  SCXI-1520 input card.
    Software: Old system:  Windows XP SP2 running MAX 4.6 with niDAQmx 9.0.2,   programming in LabView 2011
                       New system: Windows 7 running MAX 5.5 with niDAQmx 9.8.  Programming in LabView 2013
    5.5:  What is the gage factor?  Is that the mv/v sensitivity of the load cell?
    5.5:  Asks for Gage resistance, easy to look up and I entered the data, 350.
    5.5:  How do I determine the Initial Voltage?
    5.5:  No choice of using V Excitation for scaling
    5.5:  Is Full Bridge I the same as 4.6 Full Bridge?
    5.5:  Requires use of Strain in scale factor
    4.6:  Requires use of Volts in scale factor (flags an error if I try Strain and requests Volts)
    4.6:  Choosing to use Vex for scaling makes readings look similar to 5.5 readings, but still not correct. ie around -79 in 5.5 and around -50 in 4.6 vs. 5.2 without.
    Is there a way to set MAX 5.5 so that it provides the same starin set  up function as 4.6? If so, what is it?
    Thanks,
    Attachments:
    Max 4.6 Strain Set Up.jpg ‏32 KB
    Max 5.5 Strain Setup.jpg ‏23 KB
    MAX 4.6 Strain Scale 2.JPG ‏165 KB

  • VSH may not load properly - Error message in config file

    Hi again,
    I use the following eem script to copy the running config to a tftp-server:
    event manager applet SAVE_CONFIG_TFTP  event cli match "copy running-config startup-config"  action 1.0 cli copy running-config tftp://1.2.3.4/SWITCHNAME-eem.cfg vrf management  action 2.0 event-default
    When I open the config file on the tftp-server with an editior I see the following error message on top of the configuration:
    SH may not load properly. (Not enough memory resource)Please check rlimit of your process.Errno: 1; Error string: Operation not permittedTYPE : 3new softlimit bf8c45e8 hardlimit bf8c45ecold softlimit f4240 hardlimit f4240!Command: show running-config!Time: Fri Apr 26 11:21:12 2013version 6.1(3)feature-set fexfeature-set mpls[...]
    Besides this message I have not yet seen any negative impact. I googled for the error message and found a Cisco bug CSCsr06310 which should have been fixed in NX-OS 4.0(4)
    Anyone an idea what this is about? Is there anything I can do about it?
    Regards
    Pille

    Hi Joseph,
    to be honest the negative impact of this error is not big enough to justifiy the effort of opening a TAC case. Thanks for your answer anyway.
    Regards Pille

  • How do I disable Autocomplete using the config files - NOT by using Options Privacy...

    Hi,
    I have around 300 computers around the country which need the Autocomplete feature turning off for forms.
    Obviously it wouldn't be practical to remote onto each machine and change the setting in Options > Privacy > Firefox Will... > Use custom settings for history > Remember search and form history - nor is it practical to use the about:config screen since the address and toolbars are disabled by default to prevent users from browsing to other pages they aren't meant to.
    I was wondering if there was a config file or a registry setting where I can change this setting in the backgorund, that way we can push the config files or a registry tweak out the all machines that would change this setting.
    Any help would be appreciated greatly.
    Dan

    I can see where those answers are going, there must be an easy way to do it using js config files or userChrome.css.though.
    I tried doing an entry in userChrome whereby it hides the autocomplete box by overriding the pages stylesheet but the entry only seemed to work on a per domain basis... however the site that the browsers will be using is an intranet and therefore each PC will have a different URL to go to - making it impractical for masses of machines. Not sure if this can be worked upon to apply to every site?

  • How to remove empty tags from a config file

    Hi all,
    I have a task where we need to run a Java program to remove tags which do not contain ny information from the config files. The format of the file is as under:
    <roleManager>
         <providers>
              <add name="AspNetSqlRoleProvider" b03f5f7f11d50a3a" />
              <add name="AspNetWindowsTokenRoleProvider" PublicKeyToken=b03f5f7f11d50a3a" />
         </providers>
    </roleManager>
    <httpModules>
    </httpModules>
    In the above lines <roleManager> is a tag which contains some data, while <httpModules> is an empty tag and does not conatin any data. The resultant should be:
    <roleManager>
         <providers>
              <add name="AspNetSqlRoleProvider" b03f5f7f11d50a3a" />
              <add name="AspNetWindowsTokenRoleProvider" PublicKeyToken=b03f5f7f11d50a3a" />
         </providers>
    </roleManager>
    Please suggest how can we achieve this?
    Thanks in advance

    I ususally do that type of thing with a state machine... read a token, look for what is next, and if it's the closing token, I don't write it out. You have well defined opening token syntax and closing token syntax, so it should be relatively easy.

  • Setting Logging API config file

    Hi,
    Is there a way I can set the Logging API's config file (java.util.logging.config.file) from within my program? I have tried using System.setProperty but it doesn't seem to work. The only way I seem to be able to set the property is with -D on the command line.
    Thanks
    Rob

    Is there a way I can set the Logging API's config file (java.util.logging.config.file) from within my program? I have tried using System.setProperty but it doesn't seem to work. The only way I seem to be able to set the property is with -D on the command line.Read the Logging Overview Dokumentation
    anyway
    InputStream inputStream = new FileInputStream("logging.properties");
    LogManager.getLogManager().readConfiguration(inputStream);
    ...

  • Just downloaded adobe reader X. how do I change setting to open a file as a pdf file instead of word

    Just downloaded adobe X reader   pdf files open as a word doc.  how do I change setting to only open doc as a pdf doc

    Do you mean that MS Word is opening your pdf files? If so, you just need to change your file associations.
    It's easy enough to do but how to do it depends on your operating system.

  • How do I properly set up Live Previewing (Brackets)

    I just recently came across Bracket and I am super excited about it and can't wait to dive in. My problem right out the gate is I can't for the life me configure the Live Previewing to work properly. That is why I am here. I have read
    Here is what I have done with my limited knowledge concerning setting up local hosting. ( I have always used Dreamweaver and never had to do this before)
    I downloaded MAMP to create a localhost, I moved my website folder and files into the MAMP htdocs folder and labeled it AWD. If I type in local host in my browser it pulls up INDEX of/ AWD/ (folder), if I click on the folder it downloads a blank file, and that is it.
    I have tried:
    file:///C:/MAMP/htdocs/AWD/ - File not supported needs to be http:// (if I type this into my browser the site shows)
    http://C:/MAMP/htdocs/AWD/ - This website is not available
    http://localhost/MAMP/htdocs/AWD/ - Not Found
    I found this on this Forum but can't make sense of the information.
    I look forward to any and all help! Thank you for your time!

    Hey Ryan,
    First off, thank you for your help, I appreciate it. To answer your question no both http://localhost:8080/AWD/ and http://localhost:8888/AWD/ do not work. If I type just localhost in my Chrome Browser it takes me to an INDEX of / page and has one directory listed AWD. When I click on the AWD it proceeds to download a blank file.
    One of the only things that has worked was typing file:///C:/MAMP/htdocs/AWD/ in my browser, which isn't supported in Brackets. I can type that in and it takes me to the overall AWD Directory and I can see all of my files. If I click on one of my PHP files it will show the page.

  • How do you properly set the RAM timings?

    In an effort to solve random crashes on my pc I adjusted the RAM timings. I managed to stop the crashes, but I really didn't know what I was doing.
    Recently I was playing with the cpu overclock options and I started crashing again, even after I was back to normal cpu settings. I managed to get it running stable again by adjusting the RAM timings, but again it was by trial and error.
    I have read a lot of forums where people who have upgraded to a GF4 on several different systems have been plagued with crashes similar to mine. Is it possible that something is out of sync between the video, cpu, and ram? Is there anything that can be adjusted on the video card? Just a thought.
    Any help would be appreciated.
    System specs.....
    AMD 1800+
    MSI KT3 mobo
    Visiontek GF4 Ti4600
    SB Live
    Liteon CD/DVD
    Samsung PC2700, 512mb
    40 gig hd
    350 watt Enermax psu(This is new, replaced a 300watt generic because I thought it was the problem.)

    bios set uplink
    ram timming articlelink

  • How do I properly set up a HDD for ghosting?

    Im in need of some guidance. I am ghosting an older HDD from and older PC to a new HDD in a newer PC. I have run in to the problem of my new HDD after the clone is not booting. I now know ( I think) it is because I didnt run a sysprep. The new HDD will boot in the old PC just fine.
    This is my first time doing this so I expected something to go wrong. I would like to know the proper steps to take in preparation. I dont know how to use sysprep and google is getting a little confusing. 
    How do I use sysprep to get my HDDs ready?
    Do I sysprep the source drive or the destination drive?
    I am using symantec ghost to clone the drive and I did not plan on imaging. I was just going to do a straight clone. Thank you in advance. 
    This topic first appeared in the Spiceworks Community

    NEW DELHI: NIIT is reinventing itself to turnjust an information technology training company into a skills and talent development firm that will focus on sectors including banking, retail, telecom, healthcare, e-commerce and startups along with IT.As part of a major restructuring, the company has also relocated about 60 skills and career centres that it had in South Africa and Mexico to India and China, the two focus markets that it has identified for its skills and careers programmes."Our skills and careers business is essentially now focused only on India and China. We had around 60 centres in countrieswe decided to discontinue our operations so that we can redirectthe resources to focus on India and China," said Rahul Keshav Patwardhan, chief executive of NIIT Ltd. Patwardhan recently replaced Vijay K Thadani as the CEO.
    Read More

  • Going crazy here!!! how do you properly set up ISP email on o2 (UK) !!!

    2 days now and email won't send!! It can be received but not sent.
    I'm using my ISP email on my new 3G iphone - i've just read that the OUTGOING mail host needs to be o2 and i have put in the o2 details.....
    OUTGOING – Host Name: mail.o2.co.uk
    OUTGOING – User Name: [email protected]
    OUTGOING – Password: your o2 password
    BUT still no joy - emails just do not send!! When i create an email and hit send it just says 'connecting' at the bottom of the screen (and we have 2 iphones in the house and this is the case with BOTH of them).
    can anyone please help?
    Message was edited by: Florence

    actually the test message i am sending is to my other fast.co.uk email account! I definitely know it's a working and valid account - though i'll try one to myself as well
    EDIT - actually - i just created the email account yet again on the iphone and POP account verification failed - i am entering these details:
    Settings > Mail > Add account > Other
    IMAP/POP/Exchange: POP
    Name: (anything you want)
    Address: [email protected]
    Description: (or anything you want)
    Incoming – Host Name: mail.gofast.co.uk
    Incoming – User Name: (gofast username )
    Incoming – Password:( gofast password )
    Outgoing – Host Name: smtp.o2.co.uk
    Outgoing – User Name: [email protected]
    Outgoing – Password: your o2 password
    Save
    Do you want to try setting up the account without SSL: Yes
    If Advanced setting are needed…
    Incoming – Use SSL: Off
    Incoming – Authentication: MD5 Challenge-Response
    Incoming – Delete from server: Never
    Incoming – Server Port: 110
    Outgoing – Use SSL: Off
    Outgoing – Authentication: Password
    Outgoing – 25
    i don't get a chance to do any advanced settings beacause the creation of the account fails because validation fails

  • How do you properly set up a home network with multiple devices?  I have a macbook pro, an iMac, and several other phones, tablets, roku devices, etc.  Everything works properly except for when I try to access the other computer through the network.

    I have an iMac and a macbook pro that I used to be able to share files between but ever since I moved 3 months ago I can't get it to work.  Also, now my phone and my wife's phone are inseparably connected.  She seems to be getting all of my text messages but I don't get hers.  We also bought new computers right before we moved so that might have something to do with it.  Both computers are on my account and have my name.  Thanks in advance, it would be nice to get this working again - tired of walking ten feet with a flash drive to share files  : )

    The following may help with the file sharing issues: OS X Mavericks: Share your files

  • How do I properly set the networking "Workgroup" in OS 10.5

    Ealier versions of OS X used to have what I believe was known as a - "Directory Access Utility" that enabled you to see, change, or assign a "Workgroup" name to a Mac on a local network. Where is this in Leopard ? I wish to provide a pre-existing Workgroup name already used by our other Macs and a Windows computer on our household LAN to the first of our Macs to get 10.5, but I can find nowhere to change the default workgroup name or even see it because Apple appears to have changed which utilities do what under this latest OS update.
    Would something called "Workgroup Manager help ? Is this an Apple Utility I should download ?
    - SGD: Baffled
    Intel Imac 2.1 GHz - 20"; PPC Imac G5 Mac OS X (10.5) 2 Gb RAM

    Ok, the workgroup settings are in System Preferences under network.
    In order to change your workgroup, you need to create a new network profile as follows, because there is a bug which prevents you changing it in the Automatic profile:
    Click on the Location menu at the top, and click Edit Locations. Click the plus sign and call it what you want.
    Then, click Done.
    Then click on the network that you are using, such as Ethernet, Airport etc, and click advanced.
    Go to the WINS tab and type in your desired workgroup name.
    Then click OK, and back on the main network preference screen, click apply.
    Hope that is helpful.

  • How can I read "Keys" from a Config File that have square brackets in them?

    I'm using the "Read Key (String).vi" from the config.llb and I'm having a problem because the key names in my file have square brackets in them. I'm creating an VI to read certain pieces of the TestStand �StationGlobals.ini� file and array elements appear as %[0] = "blah blah blah". It looks like they're not getting recognized at all. Is there a way to handle this?

    I was just looking at the code inside the configuration VIs and the way they work under V6 is that the Open VI actually reads the contents of the configuration file, parses it (in nice-platform independent G) and stores it in a fancy LV2-style global called the "Config Data Registry.vi". The routine that does the parsing is called "String to Config Data.vi". My gut reaction is that this code is going to be the same in your version because between sometime prior to V6 of LV, NI changed the location of a couple terminals on the low-level Match String function and it looks like when this code was originally written the terminals were in the old configuration.
    In any case, if your square-bracket containing strings are getting lost, this is probib
    ly where it's happening at. The other place to check is in the read VI itself. The V6 VI for reading the configuration registry is called "Config Data Get Key Value.vi". It's output is then further parsed by a function called "Parse Store String.vi" if the "read raw string?" input is set to False (the default position).
    Given that all the code for these functions are written in LV, you should be able to fix your VIs to read the strings you have in the ini file now. Which IMHO is actually the way they should work.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for