SharePoint Timer Jobs and 3rd Party DLLs

I have a custom built timer job that references a third party DLL.  Currently, I have the 3rd party DLL stored in the GAC along with the timer job and all works fine.  Our client however, does not want the third party DLL in the GAC.  As such
I want to put it in the bin folder associated with the SharePoint Central admin port.
When I deploy the solution, I do see that the third party DLL was copied to the bin folder.  I did restart the SharePoint timer service. When the timer job runs, it complains that it cannot find the third party DLL.
Is it possible for a timer job running in the GAC to access DLLs in the bin folder?  If so, do I need to modify CAS policies in order for it to work?
Saul

CAS policies are deprecated (and all solutions in 2013 are Full Trust). I believe the DLL needs to be in the GAC.
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • Error accessing method in 3rd party dll

    already asked for help a few weeks ago but no one answered and i still wasn't able to figure out what the problem...
    i have a 3rd party dll and im trying to access some methods (USING JNI)- i have no problem accessing methods with no parameters and they work fine but a method with parameters just wwont work.
    i guess that its something with my syntax - probably incorrect data type when converting from java type to native type...
    i dont have any previous expirience with c so help would be appriciated...
    heres my java code:
    package pavel2.javay;
    class Test {
        native String VersionGet();
        native String loadDll();
        native String LogInMT4(int account,String  pass,String server,String a,String v,String c,String d);
        static {
            System.loadLibrary("pavel2");
        public static void main(String args[]) {
            Test t = new Test();
            System.out.println(t.loadDll());
            System.out.println(t.LogInMT4(230622,"qd1bvvs","Orion-DEMO","","","",""));
    }and the dll wrapper:
    #include <windows.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\jni.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\win32\\jni_md.h>
    typedef char*   (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);
    HINSTANCE hOle2Dll;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_loadDll(JNIEnv * env, jobject jobj){
         hOle2Dll = LoadLibrary(TEXT("D:\\pavel2\\tzmt4api.dll"));
         return  (*env)->NewStringUTF(env, "tzmt4api.dll loaded!!");
         /*if (OleInitialize(NULL) == S_OK)
              if ( hOle2Dll >= 32 )
                   //FreeLibrary ( hOle2Dll ) ;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_LogInMT4(JNIEnv * env, jobject jobj,jint login, jstring password, jstring server,jstring proxyserver,jstring proxytype,jstring proxylogin,jstring proxypassword){
                   LogIn_MT4 fnc ;
                   fnc = (LogIn_MT4)GetProcAddress ( hOle2Dll , "LogIn_MT4" ) ;
                   if ( fnc == NULL )
                        MessageBox(NULL, TEXT("Error loading Method"), TEXT("Error"), MB_OK);
                   else
                   const char *pass = (*env)->GetStringUTFChars(env, password, NULL);
                   const char *ser = (*env)->GetStringUTFChars(env, server, NULL);
                   const char *proxyserv = (*env)->GetStringUTFChars(env, proxyserver, NULL);
                   const char *proxyt = (*env)->GetStringUTFChars(env, proxytype, NULL);
                   const char *proxylog = (*env)->GetStringUTFChars(env, proxylogin, NULL);
                   const char *proxypass = (*env)->GetStringUTFChars(env, proxypassword, NULL);
                   int a=fnc(login, pass, ser, proxyserv,proxyt,proxylog,proxypass);
                   (*env)->ReleaseStringUTFChars(env, password, pass);
                   (*env)->ReleaseStringUTFChars(env, server, ser);
                   (*env)->ReleaseStringUTFChars(env, proxyserver, proxyserv);
                   (*env)->ReleaseStringUTFChars(env, proxytype, proxyt);
                   (*env)->ReleaseStringUTFChars(env, proxylogin, proxylog);
                   (*env)->ReleaseStringUTFChars(env, proxypassword, proxypass);
                   //return  (*env)->NewStringUTF(env, empty);
                   return  (*env)->NewStringUTF(env, "logged");
                             //int c = fnc(login, *password, *server, "", "", "", "");
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
         switch (ul_reason_for_call)
         case DLL_PROCESS_ATTACH:
         case DLL_THREAD_ATTACH:
         case DLL_THREAD_DETACH:
         case DLL_PROCESS_DETACH:
              //todo: unregister class here
              break;
         return TRUE;
    }this is the output:
    tzmt4api.dll loaded!!
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xcccccccc, pid=3792, tid=3824
    # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C 0xcccccccc
    # An error report file with more information is saved as:
    # C:\Program Files\TradeZone\TZMT4APInew\Work\hs_err_pid3792.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Process finished with exit code 1
    p.s - it looks like the login method works but when returning to java the VM crashes
    can anyone help me?

    jschell - tried this already and got the same ..
    ejp - i cant do this bucause i dont have a .lib and this proccess can run only on windows unfortunately...
    my problem is that i dont know the how to create the correct type for the method:
    this is the signature:
    typedef int  (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);how do i create in c this var types?
    int a=fnc(1531, "asas", "asd", "","","","");how do i create
    const char *xxx type? and its okay for the int just to write a number or i also need to declare it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Deployment of Java App with 3rd party dll

    Hi,
    I am developing one application on windows environment. I am using netbeans 6.0 as my IDE. in this application I have to use 3rd party dll along with one 3rd party jar library. this jar library hides all the implementation of the native methods. So i don't have to use native methods in my application directly which means that I just need to call the java classes of the vendors jar library. I am able to execute the application in Netbeans. but I am not able to deploy the application. I want to know that how should i deploy my application which will be simple jar with vendors library and the dlls, so that user just have to run the application just through the command line( java -jar myapp.jar)

    no you didn't understood the question. Wrong.
    I understood the question.
    You however didn't understand the response.
    So let me expand on it.
    The library consists of java and dlls. There is absolutely no way that it will run on a client box without the dlls. So they must be delivered in some way.
    Now I suppose they could have encrypted/packed the dlls in some fashion but that isn't likely. And if it is then the java code of the library is responsible for loading them and there will be nothing you can do about it.
    Excluding that.....
    Shared libraries can ONLY be loaded via one of the following methods.
    1. The dlls must be in the PATH environment of the application
    2. The path must be explicitly provided in the application.
    For the libraries you have one of the following will be true
    1. The dlls must be in the PATH environment of the application
    2. The path must be explicitly provided from your code and passed to the library code.
    3. You must explicitly load the dlls in your code and hope that the library code is smart enough to deal with it.
    For option 2 the library must provide a method for you to pass a path.
    For option 3 the library code must be written to support this.
    For option 1 you will need to modify the client in some way to provide for the PATH (which you can do in various ways, none of which have anything to do with Java specifically although 'WebStart' or whatever it is called might do it.)

  • How to create sharepoint timer job, which will run at farm level

    Hi ,
    I want to create SharePoint timer job which will access all site collections list from farm and give count of list items of each list and trigger email if count exceeded 4000 items.
    Thanks,
    Ganesh Pawar

    try these links:
    https://social.msdn.microsoft.com/Forums/en-US/75ccf7c0-13b2-4330-aaf2-355f107026a1/rest-services-error-are-a-specific-list?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/75ccf7c0-13b2-4330-aaf2-355f107026a1/rest-services-error-are-a-specific-list?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/75ccf7c0-13b2-4330-aaf2-355f107026a1/rest-services-error-are-a-specific-list?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/75ccf7c0-13b2-4330-aaf2-355f107026a1/rest-services-error-are-a-specific-list?forum=sharepointcustomizationprevious
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interfa

    Hi
    i am try do
    Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interface
    With The help of SDN Contribution
    link----
    ( have look on it)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4943f2b7-0a01-0010-37af-faff35b2f08c
    I am getting error in
    Partner system as HTTPLOG and "Execute" to check the results
    Error is --  Port could not be created
    RFC destination HTTPLOG Not specified for system HTTPLOG
    any 1 have any idea  if plzzzzzzzz...........
    Thank u
    Ram

    Hello .
      we are also in  process of implementing the same
    could you share the knowledge pl?
    1)is it a separate add on with ALE to saphr
       or using ECC ??
    2)can u share the configuration part ??
    we are trying it on webas as addon 3.0 .

  • Lost all my actions and 3rd party filters after upgrading to Photoshop CC 2014

    How do I get all of my actions and 3rd party filters from Photoshop CC to Photoshop CC 2014?

    If you migrate your CC presets you should get your Actions, Pattens, Sahapes, Shapes etc back. Menu Edit>Presets>Migrare Presets. You need to copy or to install you 3rd Party plug-ins into CC 2014.

  • Will Lion work ok with Logic Pro and 3rd party plugins?

    Will Lion OS work ok with Logic Pro and 3rd party plugins?
    Any help would be much appreciated,
    Regards James

    Well, Sylenth I know... works under Logic Pro 9 and it should be found by left clicking and holding... the Software Insturment Button (The one just below where it says i/o and then scrolling down in the menu that appears to the Instrument section below the Apple Plugins...
    I don't know about Massive 1.01 because i think that one is not Logic 9 compatible because it is so old.... and I have never used Vanguard... but according to it's specs the latest version should be found in the same place as Sylenth...
    Both Sylenth and Vanguard are 32bit plugins...
    ...and.. it probably doesn't help that you are using older/not 'legal' copies of these plugins.... *ahem*

  • IOS 8.1.2 and 3rd party keyboard issues still happening

    We've had at least three updates to iOS 8 and 3rd party keyboards are still broken. The keyboard reverts back to the standard version randomly, it reverts back when texting from the lock screen, sometimes it freezes completely. I've tried three different keyboards and it happens on all of them. How is this still going on???

    This is beyond annoying at this point. One of the reasons I went with the iPhone was their supposed commitment to third party keyboards. I loathe the stock one. It's awful. You missed the spotlight bug. I can never remember where my apps are in folders, and it's difficult to use spotlight without a keyboard!
    Fix this Apple, or offer some sort of compensation. Android keyboards work just fine.

  • Will all (both Apple proprietary and 3rd party) accesories compatible with iPad2 also be compatible with the new iPad (version 3)?

    I have just pre-ordered my first iPad, and luckily my timing was perfect as I have been able to grab a first round new iPad (version 3). That said, while I wait for it to ship (due 3rd of April), I wanted to do some research and begin to buy the accesories I will want to go along with it.
    Are all accessories currently available on the market and thus compatible with the iPad 2 also going to be compatible with the new iPad (version 3)? This question goes for both Apple proprietary accessories (i.e. Airport Express, Camera connector kit, Smart Cover, etc.) and 3rd party (non-Apple iPad covers / stands, etc.)?
    Many thanks in adavnce.

    There are two different Zagg keyboards. One of them, the Zagg Folio, is a combination keyboard and case that completely surrounds the iPad, front and back. The Zagg Folio (for iPad 2) doesn't fit the new iPad since the new iPad is thicker.
    The other Zagg keyboard is the "Logitech Keyboard Case by Zagg". This keyboard grips and surrounds the front of the iPad, but doesn't go around the back. Since the new iPad has the same frontal dimensions, it's compatible with iPad 2 versions of this keyboard.

  • MIRO reversal split the value between GR/IR clearing and 3rd party material account

    Dear Team,
    We are facing the issue in MR8M for PO 4500002602; the PO has been created on 11/30/2012 in the previous fiscal year and performed the GR and IV in the 2013 fiscal year.
    For one GR the accounting flow is as follows:
    For the 3 GR's 5000013746, 5000013747 and 5000013748 one IV has been done 5105612646, at the time of IV the account entry is as follows
    GR accounting entry:
    Account
    Cost center
    Description
    Amount
    610020
    3500
    3rd Party Mat (SP)
    1,450.41
    211200
    Gds Rcvd / Inv Rcvd
    1,450.41-
    610020
    3500
    3rd Party Mat (SP)
    1,506.62
    211200
    Gds Rcvd / Inv Rcvd
    1,506.62-
    610020
    3500
    3rd Party Mat (SP)
    400.35
    211200
    Gds Rcvd / Inv Rcvd
    400.35-
    IV entry:
    Account
    Cost center
    Description
    Amount
    100762
    AIR PRODUCTS & CHEMICALS
    -4,135.98
    211200
    3500
    Gds Rcvd / Inv Rcvd
    3,357.38
    651200
    3500
    NITROGEN SUPPLIES
    778.6
    750090
    1100
    Sales Tax
    55.01
    216200
    Use Tax AP - State
    -55.01
    But for the same IV when user reversed with MR8M system split the GR/IR cost as follows:
    Account
    Cost center
    Description
    Amount
    100762
    AIR PRODUCTS & CHEMICALS
    4,135.98
    211200
    3500
    Gds Rcvd / Inv Rcvd
    3,245.65-
    610020
    3500
    3rd Party Mat (SP)
    111.73-
    651200
    3500
    NITROGEN SUPPLIES
    778.60-
    750090
    1100
    Sales Tax
    55.01-
    216200
    Use Tax AP - State
    55.01
    One line item at the time of MIRO i.e. 3357.38 is split into two line items i.e. 3245.65 and 111.73 in reversal.
    But in quality system when we create new PO, GR and IV system is working fine why in case of previous year PO system is behaving like this.
    Kindly advice.
    Regards,
    Ravi

    Dear Team,
    Any update on the above issue, please let me know any of you faced this type of issue so far and please through some light on the issue.
    Regards,
    Ravi.

  • IOS 4- App Store and 3rd Party Apps don't load

    So I didn't have any problems with upgrading to iOS 4. The problems started when I tried to play with my apps such as Facebook and other games. They seem to stay in loading and nothing happens. I have turned of my phone multiple times and nothing seems to work. The App store also stays in a loading stage and nothing appears.
    Is anyone having similar problems or know of any solutions?

    OK. Here's the solution that worked for me. See my prior post on 22 June for background info.
    After loading new apps and deleting and reloading existing apps to my iPhone via iTunes on my computer, the iPhone still would not run 3rd party apps. So I decided to start from scratch.
    PROCEDURE:
    1) Back up the iPhone.
    2) Click the restore button to take the iPhone back bare bones iOS 4 operation. It is not necessary to download iOS 4 again. Do NOT restore from back-up as control of the process to the greatest extent possible is the goal.
    3) Once the restore is complete, allow iTunes to configure the iPhone from the back-up.
    4) Check some or all 3rd party apps to verify function.
    5) Power down iPhone and restart it. Check some or all 3rd party apps to verify function again.
    6)Load music and video (I manage mine manually)
    This worked for me. Hope it works for you too.
    I am most certainly not an expert. I just decided to try an approach I thought the Apple Genius's might suggest.
    Good luck!

  • IDVD6 and 3rd party DVD burners

    I purchased iLife for the ability to burn to a 3rd party DVD burner with iDVD6. I can't for the life of me figure how to burn to the 3rd party burner. Please help.
    imac G4   Mac OS X (10.3.9)  

    I'm suffering a similar problem with iDVD6 in OSX.3.9 on my G4 Dual 800. I've recently reported it earlier in another thread (below) which hasn't been answered. It takes many hours (aboukt six) to burn to a disk mage and appears OK but when I try to burn to a disk with either iDVD or Toast it fails. In the latter case with Toast I get a part burn, thus ensuring a spoilt disk ! On top of that, the burn indication line in the burn box is static and the spinning beach ball of death is ever present so I have to use Force Quit.
    Clicking on the original saved prog from which iDVD has burned to a disk image I can get the FCP timeline with its full prog ....
    I need the system in X.3.9 to be fully operational with iDVD6 so that my grandson can learn with it.
    In the MacPro, with the same film content edited in FCP and similaly saved, I can get a complete burn with no hesitation, using a fraction of the time quoted above.
    Completely bemused. I'd appreciate a solving of this one too which may be of help to the originator of this post as well as myself. Please !
    Ron.

  • Classpath and 3rd party jar files

    We have been searching for a long time and have not been able to find an answer to our question. Do you think that you could help us out?
    We need to include 3rd party jar files in our application. Where in the deployment classpath directory structure can we place these. This does not seem to happen when we publish.
    We also need to give our clients the ability to modify our configuration. Currently we do this with an xml file, which we place under server/config in our JBoss directory. We also need to find a home for out log4J configuration file.
    Where does this type of thing exist in the SAP world?

    We have had problems with 3rd party jar files also. We ended up including them in the WEB-INF/lib directory of our WAR file and packaging/deploying them everytime.
    If you are looking for your project on your server, it is deployed to a directory similar to this:
    /usr/sap/J01/JC00/j2ee/cluster/server0/apps
    Hope this helps.
    Chris

  • Talking Dictionary and 3rd party Chinese IME confl...

    I once had a Nokia (non smart) phone with a rather capable Chinese input system (alas I misplaced the phone). And now my e52 won't let me enter several characters at a time, and the few consecutive pairs that it does let me enter are very restrictive. For example, if I hit the keypad: 942649468 hoping to enter xiang'zhou (香洲) it only offers zhang'zhou (漳州). This is one example of how limited my phone's IME is. It makes it very difficult for me to enter certain phrases (especially where I am not entirely sure which the correct individual Chinese characters are).
    A feasible solution is to download and install a third party IME. I was successfully using sogou pinyin. This works fine -albeit it has a crippled English input method compared to the phone's default method (prediction & auto completion). I found it a bearable compromise. I had accepted the use of the inferior English input system in exchange for the more robust Chinese IME.
    However, after I updated my firmware the (English-Chinese) Talking Dictionary that comes with the phone refuses to work with a third party Chinese IME. If the IME is active the dictionary exits instead of showing definitions (and translations) when pressing the select key to view a word/term.
    I have tried reinstalling the firmware, I have tried uninstalling and reinstalling several Chinese IME (sogou, QQpinyin, baidu pinyin, ZTA4) , but the Talking Dictionary still fails.
    Another solution I'd like to try is uninstalling and reinstalling the Talking Dictionary. Unfortunately, I have no idea where/how to find the appropriate functioning installation file for the dictionary. I have found a few .sis on the web but one installs a dictionary whose viewing window is too big and the definitions are cut off (horizontal scroll is unavailable) and the rest result in several certificate issues (my guess is that these files are somehow not quite authentic/legit). In the end, I went to the shop where I bought the phone; there, they deleted all the apps on my SD card and reinstalled some of the default applications that came with the phone –the talking dictionary inclusive. The updated firmware seems to remain unchanged; as did anything that was installed on the phone’s memory. I would like to note that the shop was incapable of simply installing the dictionary. And as for my third party Chinese IME and Talking Dictionary conflict, the only thing they suggested was that I shut off the 3rd party IME when using the dictionary and turn it back on when I need to type Chinese messages. This solution, -though admittedly effective- is rather cumbersome, to say the least.
    An ideal solution for me would be if I could upgrade my phones default IME, as I very much enjoy its English entering abilities. Alternatively, I am prepared to settle for the decrepit English input offered by third party Chinese IME software if I can at least leave it on (w/o having to switch it off when using my talking dictionary –an invaluable tool for me).
    I would be much obliged if I anyone could offer any solutions, or at least point me in the right direction to download the appropriate functioning installation file for the Cambridge International English talking dictionary with Chinese translations that comes with my phone.
    Model E52-1 Type RM-469 Language set 19.01
    Custom Software Version: 052.003.289.03 Dated 02-Dec-2010

    I've successfully found a functioning installation file for the talking dictionary. Unfortunately, this did not solve the conflict between the dictionary and sogou pinyin. A conflict that I don't recall encountering, prior to the firmware upgrade.
    Again, any and all feedback, much appreciated.
    Model E52-1 Type RM-469 Language set 19.01
    Custom Software Version: 052.003.289.03 Dated 02-Dec-2010

  • Communication between SAP e-recruitment and 3rd party website

    Hi,
    We are implementing e-recruitment module and would like to know how to transport a recruitment advertisement created in SAP e-Recruitment to a job website. Should we use IDOC and XI? Or is there some other way of doing it? How does SAP e-Recruitment communicate with the 3rd party website? The advertisement should be transported in a way that it can be directly displayed on the job website, with all the formatting intact.
    Please let me know in detail how the functionality can be achieved.
    Regards,
    DK

    Hi,
    Did you have any reply on this?
    regards
    Justin

Maybe you are looking for

  • Got errors when trying to open word document with Office Web App Server and customized WOPI host

    I am configuring the Office Web App Server with our ASP.NET MVC WOPI host based on this example. https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6. While both the OWA server and WOPI server has been set up and I can use Excel and

  • How to set an alert for unauthorized ClearPass login

    Q: As a network administrator, how do i set alerts for a unauthorized access to ClearPass server (via SMS or Mail) ? A: A network admin would want to know, if someone unauthorized is trying to access the ClearPass server. The solution below explains,

  • Mail rejects password

    Hopefully some one can help me. I have comcast server, but i dont go on their site to check my email. I use my mail icon on my desktop dock to check it. So usually i click on the icon and check my email and when i go to send an email, a message comes

  • GL Account change in one of the TR/TM product!

    Dear All, Client wants to change assigned GL account in Negotiable deposits due to change in policies and balance sheet regrouping purpose. The changes would be effective from April 1, 2008. We want to know how to deal with open contracts during chan

  • How to delete films fro iPad

    Need to delete films from iPad to free up space. How do I do it?