SCSM Unregister DW Source - Exception has been thrown by target of invocation

I recently upgraded my client from SCSM 2010 SP1 CU3 to SCSM 2012 SP1.   In the process of upgrade I had to transfer the workflow service to another management server and decommission the old management server.
Problem now is that the MPSync job in the DW is still looking for the old management server.  Here are the event details:
Error 33546:  MP Sync failed to connect to Data Access Service on the machine <old primary server>. Ensure that the service is started and that there are no connectivity issues to <old primary server> if it is a remote server.
I attempted to unregister the data warehouse from the management server from the interface and from the unregister-scdwsource command but receive the following error:  Exception has been thrown by the target of an invocation. 
I imagine I need to go into the DWStagingAndConfig database and switch a value to point to the new management server. 
Any ideas on where to change this value? 

I had the same error when I moved SCSMDW and SCSM to other server. New SCSM serve infact had different DNS name. I updated the value in table
MT_Microsoft$SystemCenter$DataWarehouse$CMDBSource, column SdkServer with a name of new SCSM server and this allowed me to unregister the datasource.

Similar Messages

  • An unhandled exception has been thrown in the ESB system

    Hi Experts,
    we are using SOA suite 10.1.3.1.0 with Jdev 10.1.3.1.0, when we are trying to deploy the FullfillmentESB(of SOA Order booking application) to Integration server, prompted with the following error:
    Entity Deployment Failed
    error code: 0 : 10
    summary: An unhandled exception has been thrown in the ESB system. The exception reported is: "java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:203)
    at oracle.tip.esb.lifecycle.AuxiliaryFileHandler.unzip(Unknown Source)
    at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(Unknown Source)
    at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Below are more details about the above mentioned issue.We have created a new user and assigned the oc4jadmin roles to it.
    we are trying to deploy the soa order booking application projects from jdev 10.1.3.1.0.We could deploy all the other modules except the following:
    FullFillmentESB
    OrderBookingESB
    OrderBookingBPEL
    Is this an issue with configuring the new user which we using to deploy the soa order booking application.Although we could create Application Server Connection And Integration Server Connection Successfully(tested) with new user credentials.
    When we opened the ESB console we could see the default system and bpel system.
    SOA Suite is installed on Windows Platform on a Remote System.
    Thankx
    peter.

    I solved the issue by freeing up the space in my AIA OC4J server. When SOAserver does not have sufficient space you get this error. Please make sure atleast you have 2% free unused space on the server while deploying.
    Guna

  • Nokia Photos error : exception has been thrown by ...

    I have two computers and installed on both Nokia Photos. On the Vista-Home PC I get the error message. The first time I ran Nokia Photos there was no problem. The phone synchronized ok. The second time it crashed and it keeps on crashing as soon I (re0 start the program.
    My phone is a N82.
    The XP-professional computer is ok. The problem does not occur.
    Anybody know how to solve this problem ?
    Re-installing did not solve the prooblem, neither using Nseries suite 1.6 or 2.0. I tried both......
    Please help. Thanks.
    Solved!
    Go to Solution.

    Hi,
    I too have recently purchased an N95 8GB and have tried using the latest Nokia Photo Software.
    I have downloaded the latest version from the website only yesterday (19th July 2008 - Version 1.2.50.00) along with the latest version of the PC Suite Software (Version 7.0.7.0). The software appeared to open fine, and started to import all 23,000 items from my previous Lifeblog Software. When it eventually finished it said it had encountered errors and then listed them, and then another error occured stating that a more detailed report was in the Windows Error log, and closed the program.
    I have tried reinstalling the program, running reg scans to completely remove it, and have even renamed my lifeblog database however still loads the old import and then crashes with the same issue. Error log in Event Viewer is as follows.
    The description for Event ID ( 100 ) in Source ( Nokia Photos ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Title:NokiaPhotos Exception Handling
    Timestamp: 20/07/2008 14:33:45
    Message: HandlingInstanceID: db81c119-ab91-434a-b0ac-3e41a8c15afa
    An exception of type 'System.Reflection.TargetInvocationException' occurred and was caught.
    07/20/2008 15:33:45
    Type : System.Reflection.TargetInvocationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Exception has been thrown by the target of an invocation.
    Source : mscorlib
    Help link :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)
    Stack Trace : at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
    at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
    at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
    at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
    at System.Windows.Threading.Dispatcher.Run()
    at System.Windows.Application.RunInternal(Window window)
    at System.Windows.Application.Run(Window window)
    at System.Windows.Application.Run()
    at Nokia.NokiaPhotos.SingleInstanceManager.OnStartup(StartupEventArgs e)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at Nokia.NokiaPhotos.EntryPoint.Main(String[] args)
    Additional Info:
    MachineName : PANMAIN
    TimeStamp : 20/07/2008 14:33:45
    FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    AppDomainName : NokiaPhotos2.exe
    ThreadIdentity : PANMAIN\Paul
    WindowsIdentity : PANMAIN\Paul
    Inner Exception
    Type : System.Reflection.TargetInvocationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Exception has been thrown by the target of an invocation.
    Source : mscorlib
    Help link :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)
    Stack Trace : at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
    at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
    at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
    at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
    at System.Windows.Window.ShowHelper(Object booleanBox)
    at System.Windows.Window.Show()
    at System.Windows.Window.ShowDialog()
    at Nokia.NokiaPhotos.Dialogs.NPMessageBox.Show(String messageBoxText, String caption, MessageBoxButton but, ENPMessageBoxIcon icon)
    at Nokia.NokiaPhotos.Controllers.NPFirstRunController.Init()
    at Nokia.NokiaPhotos.MainWindow.LoadMainWindow()
    Inner Exception
    Type : System.Runtime.InteropServices.COMException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message :
    [1,40] Unknown token: "Isle of Skye 牤㕡2 ǁ
    51002
    c:\build_c\workdir\mplatform_1_6\mdatastore\QueryParser\MQueryParser.h
    33
    MParseQuery
    links to Tag as mt where mt.Title LIKE "Isle of Skye 牤㕡2 ǁ
    토ѷ瑯獯潨⁰⸳0䈸䵉Є" AND mt.ItemType="application/vnd.nokia.mde.tag"
    Stacktrace.
    1005
    c:\build_c\workdir\mplatform_1_6\mdatastore\QueryParser\MQueryParser.h
    48
    MParseQuery
    Stacktrace.
    1005
    .\MDataStoreObj.cpp
    1434
    CMDataStore::GetImpl
    Stacktrace.
    1005
    .\MDataStoreObj.cpp
    1305
    CMDataStore::Get
    Source : MDataStore.MDataStore.1
    Help link :
    ErrorCode : -2147197613
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Nokia.MPlatform.MItems.MEnum Get(System.String, System.Object, System.Object)
    Stack Trace : at Nokia.MPlatform.MDataStore.MDataStoreClass.Get(String bstrItemType, Object varQuery, Object varOrdering)
    at Nokia.NokiaPhotos.Controllers.NPContentController.GetItemCount(String itemtype, String query, String orderby, ENPViewTypeFilter viewType, IMDataStore datastore)
    at Nokia.NokiaPhotos.Controllers.NPTagController.ReadTagsFromDatabase()
    at Nokia.NokiaPhotos.Controllers.NPTagController..ctor()
    at Nokia.NokiaPhotos.Windows.TagManager.InitPageMembers()
    Process Id: 3820
    Process Name: C:\Program Files\Nokia\Nokia Photos\NokiaPhotos2.exe
    Win32 Thread Id: 308
    Thread Name: MainApplicationUIThread
    Category: General
    Priority: 0
    EventId: 100
    Severity: Error
    Machine: PANMAIN
    Application Domain: NokiaPhotos2.exe
    Extended Properties: .
    Any help would be appreciated as i do use the lifeblog software on a regular basis.
    Thanks
    Paul

  • A License Exception has been thrown

    New install of MX7 on a Windows Server 2003 Web Ed. and I am
    receiving the following:
    Error Occurred While Processing Request
    A License Exception has been thrown.
    You tried to access the developer edition from a disallowed
    IP (64.247.237.152). The developer edition can only be accessed
    from 127.0.0.1 and two additional IP addresses. The additional IP
    addresses are: 204.116.14.58,71.68.45.68
    Please try the following:
    Enable Robust Exception Information to provide greater detail
    about the source of errors. In the Administrator, click Debugging
    & Logging > Debugging Settings, and select the Robust
    Exception Information option.
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
    SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 64.247.237.152
    Referrer
    Date/Time 23-May-06 12:18 PM
    It is a full, paid version but seems to be running in
    developer mode or something... what am I missing?

    CFMX thinks you are running the developer version. If you run
    the cfadmin and click on the system information link at the top of
    the admin page you will get all your system information. There is
    also a form where you can input a license key if you have cfmx
    standard or enterprise.
    The free version of CFMX that comes with MX Studio is a
    limited use version. You should review your licensing information
    if that is what you bought.

  • Error using ESB toolkit 2.1 BizTalk 2010 Itinerary Selector pipeline component (Exception has been thrown by the target of an invocation. )

    Hi all,
    I am using using ESB Toollkit 2.1 (NOT 2.2). and the installation and configuration happened without any error. However I am getting the below error when I use ItinerarySelectReceivePassthrough pipeline.
    ======================================
    There was a failure executing the receive pipeline: "Microsoft.Practices.ESB.Itinerary.Pipelines.ItinerarySelectReceivePassthrough, Microsoft.Practices.ESB.Itinerary.Pipelines, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Source: "ESB Itinerary Selector" Receive Port: "OneWay.OnRamp" URI: "C:\GOD\PROJECTS\Hoople.AdultWellbeingSolution\Testing\BusStop.2\*.txt" Reason: Exception has been thrown by the target of an invocation.
    Exception has been thrown by the target of an invocation. 
    Source: Microsoft.Practices.ESB.Resolver.ResolverMgr 
    Method: System.Collections.Generic.Dictionary`2[System.String,System.String] Resolve(Microsoft.Practices.ESB.Resolver.ResolverInfo, Microsoft.BizTalk.Message.Interop.IBaseMessage, Microsoft.BizTalk.Component.Interop.IPipelineContext) 
    Error Source: mscorlib 
    Error TargetSite: System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)  
    Error StackTrace:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Activator.CreateInstance(Type type, Object[] args)
       at Microsoft.Practices.ESB.Resolver.ResolverFactory.Create(String key)
       at Microsoft.Practices.ESB.Resolver.ResolverMgr.GetResolver(ResolverInfo info)
       at Microsoft.Practices.ESB.Resolver.ResolverMgr.Resolve(ResolverInfo info, IBaseMessage message, IPipelineContext pipelineContext
    =====================================
    I looked into a thread that talked about regacing assemblies, which was marked as answered however it does not say which dlls needs to be regaced.
    Please help
    THANKS IN ADVANCE
    Surya

    Hi Surya,
    You are getting an exception in Microsoft.Practices.ESB.Resolver.dll. which has some issues in 2.1 version for calling dynamic resolver .
    You can try enabling diagnostics to see some of the trace log
    Note :To enable the BizTalk ESB Toolkit trace switch, add the following <switches> element to the
    system.diagnostics section of the Machine.config file.
    <system.diagnostics>
    <switches>
    <add name="BizTalkESBToolkit" value="4"/>
    </switches>
    </system.diagnostics>
    @Tomasso has written a great post on  this and changed some of the config setting in ESB.config.
    http://www.ithero.nl/post/2013/05/12/How-to-fix-the-error-Exception-has-been-thrown-by-the-target-of-an-invocation-when-using-the-BRI-resolver-in-the-ESB-Toolkit-and-BizTalk-2013.aspx
    There is also MSDN article here
    https://support.microsoft.com/kb/2887594?wa=wsignin1.0
    which again suggest you to modify the ESB.config file
    Note: Please take a backup of existing ESB.config before modifying
    Here are the settings
    Manually modify the existing esb.config file as follows:1.Remove the <typeConfig> element
    2.Change the <typeAlias> element to <alias>
    3.Change the <type> element to <register>
    4.Remove the <containers> elements
    5.Remove the <types> elements
    6.Remove the <typeAliases> elements
    7.Remove the parameterType attribute of the <param> elements.
    8.Remove the type attribute of the <value> element within <param name="overrideExistingItinerary">
    Its also been well described in below BizTalk Post
    https://social.msdn.microsoft.com/Forums/en-US/b92fbd9a-7c6d-4cec-b745-bf092e5e644f/esb-toolkit-22-error-in-using-the-dynamic-itinerary-resolver-bri?forum=biztalkesb
    Thanks
    Abhishek
    As mentioned in my previous post, the fix is provided for ESB Toolkit 2.2 and not for
    ESB Toolkit 2.1.
    ESB Toolkit 2.2 uses Microsoft Enterprise Library 5.0 and Unity 2.0 whereas
    ESB Tookit 2.1 uses Microsoft Enterprise Library 4.1 and Unity 1.2.
    REFRAIN FROM DOING ANY CONFIG CHANGES WITHOUT CONSULTING MICROSOFT.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.NullReferenceException: Object reference not set to an instance of an object

    Hi,
    (1) I am trying to get the data from a database table and import into a text file.
    (2) If the record set have the data then it runs ok
    (3) when the record set not having any data it is giving the below error
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
    Could you please let me know why this is happening?
    Any help would be appriciated
    Thanks,
    SIV

    You might ask them over here.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Ccsharpgeneral%2Cvcgeneral&filter=alltypes&sort=lastpostdesc
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Exception has been thrown by the target of an invocation error while updating picture in user Profile

    Hi,
    I am working on updating picture of user profile in sharepoint 2013.
    I am getting error "exception has been thrown by the target of an invocation" while creating Thumbnail at the below line.
    "file = (SPFile)mi_CreateThumbnail.Invoke(null, new object[] { original, idealWidth, idealHeight, folder, fileName, null });"
    I have added SPUtility.ValidateFormDigest() before calling this method. but no luck.
    Please help me on this.
    Thanks
    Hareesh

    Hi,
    According to your post, my understanding is that you want to update picture in user Profile.
    If we are giving an option to change the Profile picture in our custom component, we need to create 3 different files and update the reference in User Profile property.
    To create Thumbnail, we can use the code as below:
    /// Get sealed function to generate new thumbernails
    public SPFile CreateThumbnail(Bitmap original, int idealWidth, int idealHeight, SPFolder folder, string fileName)
      SPFile file = null;
      Assembly userProfilesAssembly = typeof(UserProfile).Assembly;
    Type userProfilePhotosType = userProfilesAssembly.GetType("Microsoft.Office.Server.UserProfiles.UserProfilePhotos");
      MethodInfo [] mi_methods = userProfilePhotosType.GetMethods(BindingFlags.NonPublic | BindingFlags.Static);
      MethodInfo mi_CreateThumbnail = mi_methods[0];
      if (mi_CreateThumbnail != null)
        file = (SPFile)mi_CreateThumbnail.Invoke(null, new object[] { original, idealWidth, idealHeight, folder, fileName, null });
      return file;
    Then we can invoke the method as below:
    using (MemoryStream stream = new MemoryStream(buffer))
    using (Bitmap bitmap = new Bitmap(stream, true))
    CreateThumbnail(bitmap, largeThumbnailSize, largeThumbnailSize, subfolderForPictures, accountName + "_LThumb.jpg");
    CreateThumbnail(bitmap, mediumThumbnailSize, mediumThumbnailSize, subfolderForPictures, accountName + "_MThumb.jpg");
    CreateThumbnail(bitmap, smallThumbnailSize, smallThumbnailSize, subfolderForPictures, accountName + "_SThumb.jpg");
    More information:
    Update User Profile picture programmatically in SharePoint
    Upload User Profile Picture programmatically in SharePoint 2013
    Upload User Profile Pictures Programmatically – SharePoint 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Error occurred in deployment step 'Activate Features':EXCEPTION HAS BEEN THROWN BY THE TARGET OF AN INVOCATION?

    Hi All,
    While building event handler to call webservice facing "Error occurred in deployment step 'Activate Features':EXCEPTION HAS BEEN THROWN BY THE TARGET OF AN INVOCATION"; If comment webservice, then build successfully. How to fix this issue?
    Thanks in advance!

    hi
    if you call WCF service in feature event receiver you need to ensure that proxy is properly configured. In most cases proxy is configured via web.config file using <system.serviceModel> section, but if it is used in feature receiver it depends on how
    you activate the feature:
    1. if feature is added to onet.xml of custom web template which is used for creating site collection from Central Administration you will need to modify web.config file of CA
    2. similar to previous but instead of site collection you try to create sub site using custom web template: in this case you will need to modify web.config of your Sharepoint web application
    3. if you activate feature from timer job somehow, you will need to modify owstimer.exe.config
    4. if you activate feature form powershell, most probably you will need to modify or create powershell.exe.config, but I didn't try it
    The most simple way which will work in all cases is to configure WCF proxy programmatically. See the following forum thread for details:
    How can I set an HTTP Proxy (WebProxy) on a WCF client-side Service proxy.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • An unhandled exception has been thrown in the ESB system-400 Bad request

    Hi,
    When i try to call a ESB Routing Service in a BPEL Flow, i am getting the error below,
    An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 400 Bad request
    i tried to call same routing servive via SoapUI and i got the same error.
    Any ideas welcome.
    <messages><input><Invoke_SFA_Persist_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ListOfTcAccountInterface"><ListOfTcAccountInterface xmlns:ns2="http://turkcell.com.tr/esb/Common_BO_OUTBOUND_BO_ROUTING_SERVICE" xmlns:ns1="http://oracle.com/esb/namespaces/Common_BO_OUTBOUND_BO_ROUTING_SERVICE" xmlns:inp1="http://www.turkcell.com.tr/xml/BO_Account_Interface" xmlns="http://www.turkcell.com.tr/xml/BO_Account_Interface">
    <inp1:Header>
    <inp1:Transaction_Id>1120000000000279727</inp1:Transaction_Id>
    <inp1:System_Id>1001</inp1:System_Id>
    <inp1:Process_Code>BO_FL1003_SUBSCRIBE_SERVICE_PROCESS</inp1:Process_Code>
    <inp1:Transaction_Date>8/8/2008 12:47:47</inp1:Transaction_Date>
    <inp1:Operation_Type>SubscribeService</inp1:Operation_Type>
    </inp1:Header>
    <inp1:TcAccountIntegration>
    <inp1:IntegrationId>16853952</inp1:IntegrationId>
    <inp1:UUID>1E01D469-4189-11dc-A07A-00144F6ABAE8</inp1:UUID>
    <inp1:ListOfTcAgreementIntegration>
    <inp1:TcAgreementIntegration>
    <inp1:IntegrationId>16903908</inp1:IntegrationId>
    <inp1:AgreementStartDate>7/28/1996 0:0:0</inp1:AgreementStartDate>
    <inp1:AgreementStatus>0</inp1:AgreementStatus>
    <inp1:ListOfTcAgreementAssetIntegration>
    <inp1:TcAgreementAssetIntegration>
    <inp1:BarringStatus/>
    <inp1:AssetNumber>16903908</inp1:AssetNumber>
    <inp1:AdditionalInfo/>
    <inp1:AssetDescription>PostPaid GSM</inp1:AssetDescription>
    <inp1:MSISDN>5322776665</inp1:MSISDN>
    <inp1:Reason/>
    <inp1:BSCSCustomerId>512914</inp1:BSCSCustomerId>
    <inp1:BSCSCO_ID>438781</inp1:BSCSCO_ID>
    <inp1:Status>0</inp1:Status>
    <inp1:Type>1</inp1:Type>
    <inp1:ListOfTcChildAssetIntegration>
    <inp1:TcChildAssetIntegration>
    <inp1:BarringStatus/>
    <inp1:AssetNumber>437894069</inp1:AssetNumber>
    <inp1:AdditionalInfo>9999</inp1:AdditionalInfo>
    <inp1:AssetDescription>FCT</inp1:AssetDescription>
    <inp1:MSISDN/>
    <inp1:Reason>Service Subscription</inp1:Reason>
    <inp1:BSCSCustomerId>1</inp1:BSCSCustomerId>
    <inp1:BSCSCO_ID>9999</inp1:BSCSCO_ID>
    <inp1:Status>0</inp1:Status>
    <inp1:Type>52</inp1:Type>
    </inp1:TcChildAssetIntegration>
    </inp1:ListOfTcChildAssetIntegration>
    </inp1:TcAgreementAssetIntegration>
    </inp1:ListOfTcAgreementAssetIntegration>
    </inp1:TcAgreementIntegration>
    </inp1:ListOfTcAgreementIntegration>
    </inp1:TcAccountIntegration>
    </ListOfTcAccountInterface>
    </part></Invoke_SFA_Persist_InputVariable></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>ESBMessageProcessingFailed</code>
    </part><part name="summary"><summary>null</summary>
    </part><part name="detail"><detail>&lt;detail>
    &lt;EventName xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">Common.BO_OUTBOUND.BO_SFA.BO_Persist_Account_CRM_Routing_Service.Persist&lt;/EventName>
    &lt;Cause xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">An unhandled exception has been thrown in the ESB system. The exception reported is: "oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 400 Bad request
         at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1723)
         at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1465)
         at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1186)
         at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:507)
         at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:430)
         at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:447)
         at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:184)
         at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:112)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:158)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:121)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1986)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1465)
         at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:105)
         at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:273)
         at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(InitialEventDispatcher.java:297)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(InitialEventDispatcher.java:279)
         at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:118)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1986)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1465)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(EventOracleSoapProvider.java:343)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(EventOracleSoapProvider.java:190)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:190)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:539)
         at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:430)
         at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:447)
         at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:184)
         at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:112)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:158)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:121)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1986)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1465)
         at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:105)
         at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:273)
         at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(InitialEventDispatcher.java:297)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(InitialEventDispatcher.java:279)
         at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:118)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1986)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1465)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(EventOracleSoapProvider.java:343)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(EventOracleSoapProvider.java:190)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:190)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 400 Bad request
         at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1723)
         at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1465)
         at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1186)
         at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:507)
         ... 39 more
    &lt;/Cause>
    &lt;/detail>
    </detail>
    </part></remoteFault></fault></messages>

    Is this error just for this message, or all messages?
    Is the xml valid against the payload. You will need to use a tool like XML spy to check.
    Are you able to see the response coming back, if so does it conform to the response schema.
    cheers
    James

  • Using Linq Query in our program error is thrown :Exception has been thrown by the target of an invocation.

    Hi All,
      I am writing the below linq query to fetch the record from the database ,
    var individualres = (from c in orgContext.CreateQuery("contact")
                                                 join a in orgContext.CreateQuery("annotation")
                                                      on c["contactid"] equals a["objectid"]
                                                 where (bool)a["isdocument"] == true && a["objectid"] == r.GUID &&
    a["filename"] != null
                                                 select new
                                                     FirstName = c["firstname"],
                                                     LastName = c["lastname"],              
                                                     CreatedDate=a["createdon"],
                                                     DocumentBody = (a["documentbody"] == null) ? "" : a["documentbody"],
                                                     GUID = c["contactid"],
                                                     FileName = a["filename"],
                                                     WorkStatus = (c["new_workstatus"] == null) ? "" : c["new_workstatus"],
                                                     Rank = (c["new_rank"] == null) ? "" : c["new_rank"],
                                                     State = (c["address1_stateorprovince"] == null) ? "" : c["address1_stateorprovince"],
                                                     City = (c["address1_city"] == null) ? "" : c["address1_city"]
    But it is throwing the error   Exception has been thrown by the target of an invocation.
    if this error is related to null values into the columns , then i am handling those by using the 
    ternary operator.
    Can anybody help me out for this issue.
    thanks in advance.

    Hello EmpAnsar,
    >>But it is throwing the error   Exception has been thrown by the target of an invocation.
    From your LINQ query, it is hard to tell what the caused reason is since we do not have your exact tables and data. My suggestion is that you could narrow this issue by reducing items you want to fetch, for example, you could firstly write a sample query
    without where clause and select new syntax as:
    var individualres = (from c in orgContext.CreateQuery("contact")
    join a in orgContext.CreateQuery("annotation")
    on c["contactid"] equals a["objectid"]
    select c).ToList();
    To check if it would work, if so, you could add these filters and items you want step by step until reproducing this issue, this would help locate the root reason.
    Update:
    For this exception, i found some related threads which might be helpful to you:
    http://stackoverflow.com/questions/11809530/linq-and-exception-has-been-thrown-by-the-target-of-an-invocation
    http://stackoverflow.com/questions/4074058/exception-raised-when-using-a-linq-query-with-entity-framework
    http://stackoverflow.com/questions/7674105/linq-aggregate-produces-error-exception-has-been-thrown-by-the-target-of-an-in
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ColdFusion MX7 Developer version - A License Exception has been thrown

    Hi,
    I'm currently evaluating ColdFusion MX7 (it has become
    Developer) for our future web application plaform. I have CF on my
    testing server (win2003) and Dreamweaver on my workstation. This
    morning I got 'A License Exception has been thrown' and checked my
    ip of my workstation. It is different from the one the error page
    stated. I guess DHCP server gave me a new ip address, which rarely
    happens. I refleshed the site information in DW but CF thought I'm
    out of range. What should I do to solve the problem? Here is the
    real error message.
    "You tried to access the developer edition from a disallowed
    IP (xxx.xxx.xxx.xx8). The developer edition can only be accessed
    from 127.0.0.1 and two additional IP addresses. The additional IP
    addresses are: xxx.xxx.xxx.xx2,xxx.xxx.xxx.xx0 "
    Please help. Thanks.
    ****

    restart CF (only way to reset the IP list in CF)
    OR make your IP static
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • CFMX 7 Deployment - A license Exception has been  thrown

    Hi, There:
    I met a weird problem. I have upgraded license CFMX 7.01
    Standard from CF5. I developed an application on localhost pointing
    to default cfusionMX7\wwwroot\myApp. It works fine by internal IP
    address. But when I configured IIS and assigned public IP pointing
    to this folder, it failed to load up the application and showed " A
    License Exception has been thrown. You tried to access developer
    edition from disallowed IP - my public IP address". What's wrog
    with it? I reviewed my installation I have given the right upgrad
    license key and old license key. CFMX administrator works fine and
    local IP access works fine.
    Is it a deployment issues so I should take look at web.xml?
    Could you please help me out of this? Thanks in advance!
    Steven

    That's a ColdFusion error. You should post your question on
    one of
    the ColdFusion forums:
    http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=1
    David Alcala
    Adobe Technical Support

  • The Web Service plug-in failed in OrganizationId and Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation

    Hi All,We are receiving below errors in our production envrionment as The Web Service plug-in failed in OrganizationId: c28f361a-8111-e211-b7f2-68b599c03df8; SdkMessageProcessingStepId: 36ccbb1b-ea3e-db11-86a7-000a3a5473e8;
     1.EntityName: userquery; Stage: 30; MessageName: RetrieveMultiple;
    Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation
    Inner Exception: System.IndexOutOfRangeException: #TotalRecordCount
    <Data>Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.IndexOutOfRangeException: #TotalRecordCount
    2.EntityName: email; Stage: 30; MessageName: RetrieveMultiple
    Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation
    Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object
    <Data>Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation
    Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    3.
    EntityName: plugintype; Stage: 30; MessageName: RetrieveMultiple;
    <Data>Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.
    Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed firstPlease give us idea on above issues.
    Natarajan.V

    Hi,
    What version of CRM you are using? Does this happen when you open the case record?
    We have faced the similar for Account record and was solved using below query. I am not sure about incident.
    Update ACC
    SET ACC.Merged = 0
    from AccountBase ACC
    WHERE ACC.merged is null
    Do you have case merge option enabled on incident entity? As per the MS it is enabled for CRM 2013 SP1 and CRM 2015.
    http://www.microsoft.com/en-us/dynamics/crm-customer-center/merge-similar-cases.aspx 
    Thanks!
    Kalim Khan

  • I try to run a SSIS 2012 package a come with this error Exception has been thrown by the target of an invocation.

    Hi,,
    I making a package in SSIS 2012 that read a Excel file and copy the data into a Excel Destination , I did via Scrip Task using VB 2010 (Visual Studio 2010) the package stop with these error, I try to solve but I don't know, any clue ??
    Thanks
    I execute a SSIS package copy data from a Excel workbook to another using a VB scrip, it show with this error
    Exception has been thrown by the target of an invocation. Also appears this : at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
    RuntimeType typeOwner)   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)   at System.Reflection.RuntimeMethodInfo.Invoke(Object
    obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
    culture)   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
    An the package stop , I wan to know really what is happened?, any one please

    >Exception has been thrown by the target of an invocation
    In your script taks you need to "unwrap" this exception by examining its .InnerException.  An easy way is to catch TargetInocationException and re-throw its .InnerException.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • WRT160N - Exception has been thrown ...

    Wireless Router is the WRT160N, Comcast cable is the broadband provider and the OS is Windows Vista. I was able to setup a desktop and laptop to have a wired connection to the internet. Then I wanted to setup a wireless connection for the laptop while the network cable was still attached. However, when I tried to use the "Go Wireless Wizard" from the EasyLink Advisor I get the following error: "Exception has been thrown by the target of an invocation." Does anybody know what this is about?
    I'm trying to setup this up for a friend.
    Thanks!!

    Don't use Easy Link Advisor...Set up your router manually...
    Open an Internet Explorer browser page.In the address bar type - 192.168.1.1
    Leave username blank & in password use admin...Click on the Wireless tab...Now change the Wireless Nerwork Name to something unique so that you
    can identify it.Set the Wireless Channel to 11-2.462GHz and Save the Settings.
    Click on Wireless Security sub tab under Wireless...Cange the security mode to WEP, Keep wep encryption as 64 bits 10 hex digit, keep pass phrase blank
    Type in any 10 digit number in WEP key 1 box, you can use 0 to 9 or a
    to f,  Please copy the wep key 1 on a piece of paper as it will be your
    wireless password or network key
    Keep WEP key 2,3,4 blank and click on save settings...Now try to connect to your Wireless Network on your Laptop...

Maybe you are looking for