Calling a pkg from managed code and then using reflection to call a method from a script task

Hi we run 2012 std.  I have some pretty good evidence that when I call my pkg from a .net service, a script component in that pkg fails when trying 2 use reflection to load and invoke our .net message history method.  The exception is either on
the invoke or in the message history method.  I suspect its in the method but will take additional steps 2 verify.
But when I run the pkg stand alone, it has no problem and the method does what it is supposed 2 do.
There r no vars passed from the service to the pkg.  I wonder if its a managed to unmanaged to managed issue that the community is already aware of.  If not, my apologies 4 posting this quickly.
I'll post more info here as I collect it. 

we have 2 theories after showing the exception trace to folks who r more adept at managed code.
the first is related to the fact that our 3rd party dlls (I think entity framework is included in these) r older versions.  I don't want to discount this theory but we have some evidence already that this might not be true.
I hope I can do justice to the 2nd theory but will make it clearer and clearer as I get a better understanding.  I believe this is what Arthur was saying and I applaud his instincts.  They explained that .net is so "smart" that it detected
a change in namespace  (ie context as Arthur said) and purposely threw an exception 2 save us from ourselves.  The workarounds discussed were a bit over my head but I will continue trying to better understand it.  The fact that many of the methods
we call after reflection r now merged into one assembly seemed relevant to the discussion and possible workarounds.   
this link came up in their discussion and I believe the bottom line here is that by qualifying assembly names further (in config?)r, a workaround is possible. 
http://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx  .
This link came up as well and has something to do with ILMerge and workarounds to ILMerge. 
http://elegantcode.com/2011/04/02/dynamically-load-embedded-assemblies-because-ilmerge-appeared-to-be-out/  .
Finally, this link came up and seems to have something to do with embedding your dlls in one assembly without them losing their identity.
http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx
I'll post more here as we muddle thru this.

Similar Messages

  • I installed Firefox sync and then used iphone app called FireFox Home and I can syncronize history, tabs and bookmarks. But I am NOT able to syncronize passwords from Firefox in my Macbook to FireFox Home on iPhone !

    I installed Firefox sync and then used iphone app called FireFox Home and I can syncronize history, tabs and bookmarks. But I am NOT able to syncronize passwords from Firefox in my Macbook to FireFox Home on iPhone so I am very terrible to input my IDs and Passwords with my hands on FireFox Home when I log into Facebook, Twitter etc... Is it issue or something like that? If you have some solutions to make it clear, can you tell me how to syncronize memorized IDs and Passwords for the webs. Thank you.

    You can look in Tools > Options > Sync
    Menu differences: [http://kb.mozillazine.org/Menu_differences Windows: Tools > Options - Mac: Firefox > Preferences - Linux: Edit > Preferences]
    See also:
    * [[What is Firefox Sync]]
    * [[How to sync Firefox settings between computers]]
    * [[How to sync Firefox between my desktop and mobile]]

  • For some inexplicable reason, Safari 5.1 will not open in Windows 7. It appears in task manager briefly and then disappears. No windows open; I have tried everything. Any ideas??

    For some inexplicable reason, Safari 5.1 will not open in Windows 7. It appears in task manager briefly and then disappears. No windows open; I have tried everything. Any ideas??

    I fixed the issue. It was related to the DEP settings on my windows machine.

  • Is there an easy way to transfer PDFs from my computer to my iPad and then use Adobe to open them?

    Is there an easy way to transfer PDFs from my computer to my iPad and then use Adobe to open them?

  • I turned my MacBook Pro and got an error message with lines and lines of code and then it turns off

    I turned on my MacBook Pro and got an error message with several lines of code and then it turns off

    Were you able to see any of the error codes? Have you tried resetting NVRAM (booting while hold cmd+option+p+r until the second chime)?

  • Can I activate iPhone 4S with a SIM from one country and then use with a SIM from another country?

    I bought a factory unlocked iPhone 4S from an Apple store in the U.S. and I am in Guatemala. I want to use it now but later on I will move to New Zealand. Can I activate it with a SIM card from Guatemala and then use it with a SIM card from New Zealand? I am just wondering if it will get locked with the Guatemalan SIM card. Or does it just need a SIM from any supported carrier and then it remains unlocked to use with any other carrier? Thanks

    David,
    As I (mis)understand it, you may:
    1) Copy one orange gradient path to the magenta gradient path document;
    2) Select the two magenta gradient paths and change the Fill to None;
    3) Select the orange gradient path;
    4) Select the two magenta gradient paths and change the Fill to Gradient.
    That should give you the desired replacement. For multiple use of the same gradient, you may consider a gradient swatch.

  • Is there anyway to restore an iphone to new from a different computer and then use a backup from the cloud?

    Is there anyway to restore an iphone to new from a different computer and then use a backup from the cloud? At&t said that they unlocked the phone but that it needs to be reset in itunes and retored for it to work. However, I do not have access to my computer as I am overseas and need to put a new sim card in. Anyone had this problem and know a way to go around this?

    If you have an backup on iCloud. You can restore via iTunes (on every computer) or via your iPhone itself.
    And yes, you can restore the backup via iCloud.
    To set iPhone to new do this: Settings > General > Reset > Erase all data and Reset all Settings.
    It take a while. But after this, you can restore backup via iCloud.

  • I have enabled homesharing in iTunes (from the advanced menu) and then used the same details when enabling homesharing on the Apple TV (settings computers), but I still can't stream my itunes to ATV.  Does anyone have suggestions to resolve?

    I have enabled homesharing in iTunes (from the advanced menu) and then used the same details when enabling homesharing on the Apple TV (settings > computers), but I still can't stream my itunes to ATV.  Does anyone have suggestions to resolve?

    I Am having the same issue. Ie on the password issue.
    I Am using a Macpro though.
    i Have had no issues with the setup until recently.
    However I think the hard drive is starting to fail as it keeps on losing the wireless connection and gas been stuttering a lot on playback.

  • Can I attach a link to one image and then use that linked image multiple times in my site?

    Hi,
    Is it possible to attach a link to an image and then use that image (with link attached) multiple times in my site.
    Thanks,
    Ally

    Use 'Find and Replace'>under the 'Edit' menu.
    Select from 'Find in'- Folder and browse to the folder your website files are kept in to select it.
    Search: Source Code
    In the Find box (but obviously use YOUR image code):
    <img src="images/imageName.jpg" width="200" height="200" alt="" />
    In the Replace box: (use YOUR link and image code)
    <a href="yourLink.html"><img src="images/imageName.jpg" width="200" height="200" alt="" /></a>
    Then select 'Replace All'

  • GT60 - Can I break RAID0 and then use the Recovery disks?

    Is it possible to break the RAID0 and then use the recovery disks from MSI Burn Recovery or a Windows Home Premium Disk with the code from the sticker on my laptop,  to install back to factory settings without the RAID0? Just want to make sure before I do something drastic. Thank you.

    you can always make an system image of your current windows on an external drive and then experiment with it and if anything breaks, just change bios settings to older ones and recover your older system, everything will be intact like nothing ever happened.

  • I want to be able to use airplay to stream audio to another iOS device, and then use that audio stream to be used when recording video instead of the built in microphone / microphone input. Is this possible?

    I want to be able to use airplay to stream audio to another iOS device, and then use that audio stream to be used when recording video instead of the built in microphone / microphone input. Is this possible?

    A third-party app probably cannot obtain a stream from another app. To the best of my knowledge, such a capability is not provided in the software development kit, apps being "sandboxed" from each other and so allowed to communicate only in very specific and limited ways.
    I'm not completely sure what you mean by "limitations on video capture". An iPhone, to the best of my knowledge, can natively record video only through it's built-in camera, and audio while doing video recording only through the built-in microphone or mic/headphone jack. There might be a video recording app that would allow audio input from an external device connected to the dock connector, but I'm not sure.
    Regards.

  • Can I put a SQL query into a bind variable and then use it to output report

    Hi,
    Can I put a SQL query into a bind variable and then use it to output report?
    I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
    select * from (:P1_TEXT);
    Do you think it is possible to do that? Any known limitations for APEX in this area?
    Thanks a lot,
    Angela

    You can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
    You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
    Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
    Tyler

  • How can I import a non-BC site into BC, using Dreamweaver CC, and then use it as one of my free sites?

    I am trying to import one of my non-BC sites into BC, using Dreamweaver CC, and then use it as one of my free WebBasics sites.
    When I try to create a new BC site in Dreamweaver CC, it creates a BC template site, and I have unsuccessfully tried to update the files on BC - it won't let me connect.
    If I import the site from my portal, I don't get the option of a free site - when I try to upgrade, I get the credit card form asking for payment.
    I feel like I'm running around in circles with one foot nailed to the floor.
    Any tips?

    Thank you for your quick reply and for clearing up my confusion.  I'm exporting the first section now.  I choose the smallest size, 3x4 but I'd prefer to go higher as this DVD was originally a VHS home movie.  I'm wondering if after three conversions (VHS,->DVD->MPEG) the resolution will be so poor as to not support a larger size frame?  If it can, what size should I select when I export? 

  • What are the steps to make it seamless for a customer to use the install program and then use the installed program?

    I wrote an install program (.exe) that is downloaded from a website.  When run, it 1) leads a customer to browse to a directory, and 2) copies files (.exe, .dll, etc.) from a website to that directory.  When I run, the installed program works.
    What are the steps to make it seamless for a customer to use the install program and then use the installed program? 
    bhs67

    This site https://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.110%29.aspx provides a basic description of the Visual Studio Windows Installer. 
    Near the bottom of the page is "You can unlock all the features of InstallShield by paying to upgrade to the full version of InstallShield."  Where do I find info that describes the differences between the "free" and the "full"
    versions?
    bhs67
    Hello,
    The default feature does support the task for your requirement, so there is no need to pay for the other features unless you want to use some feature which is not free.
    In addition, as this thread
    InstallShield LE not available with VS 2012 RTM? shared, even through there is a link to InstallShield LE in the New Project dialog under Deployment solutions, but it belongs to third-party that I would recommend you consider posting this issue
    at the following forum to get supports about InstallShield.
    http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
    Regards.
    Carl
    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.

  • Is it possible to reinstall Mac OS X Lion on MacBook and then use Time Machine to restore to the previous backup I made before reinstalling Mac OS X Lion?

    Is it possible to reinstall Mac OS X Lion on MacBook and then use Time Machine to restore to the previous backup I made before reinstalling Mac OS X Lion?

    My MacBook was not normally booting up. It would turn on, make the Apple startup noise, and the bottom loading bar would progress just a little bit, then my MacBook would shut down. I tried rebooting it many times and the same thing would happen, it would just shut down. Then, I read that I can reset the PRAM (by holding Option+Command+P+R after the Apple startup noise comes). That worked, but now I get a screen that asks me to choose one of the 4 options (see:  http://images.macworld.com/images/article/2012/07/lionrecoveryutilities-289404.j pg). I choose Restore From Time Machine Backup, but it progresses to 17.6% and gets stuck there forever. I tried doing it again, and it got stuck at 17.6% again. That is why I am asking if I should just reinstall Lion, then restore a previous backup on the fresh new Lion?

Maybe you are looking for

  • Did You Know: Folders in iOS 7

    Did you know that now with iOS 7, you not longer have a limit to the amount of apps you can have in 1 folder??  Previously you could only have 9 apps per folder but now that limit has been lifted! Try and place as many of your favorite apps into one

  • Regular expressions in 10g

    Can any body provide good Oracle 10g regular expression tutorial with example link ?

  • Internet just dies

    I moved house and brought my bt internet and tv with me, since i have had a great service and dealings with BT for over 2 years. When i moved house the broadband was on and working great then after being in my new house for ten days the internet woul

  • Sales Order Pricing - Condition Type:PR00 inactive

    Hi In Sales Order Item level pricing, condition type PR00 become inactive.  It shows reason : Inactive via formulae of incorrect. Sales Order is partially delivered & billed.  For remaining deliveries, system not allowing for billing, showing sales o

  • Copying SQL Server Agent - Jobs in SSMS - 2012

    Hi, I am using SQL 2012 version. when i try to copy the existing sql agent job (job "X") (using, Script Job As--> Create To--> New query window) and paste it into different database it is giving me some errors as below. (this method is working fine w