COMException (0x80004005): Slides (unknown member) : Failed thrown in InsertFromFile method - interop

I'm working with powerpoint presentations using Microsoft Interop library. Exception from title is thrown on adding slide to presentation via Interop library method.
File exists, path is correct, index is valid.
inpPre.Slides.InsertFromFile(tmpPathInsert, inpSldCom.SlideIndex);
This code worked as it has to for plenty of presentations and throws exception on specific slides.
Error:
System.Runtime.InteropServices.COMException (0x80004005): Slides (unknown member) : Failed.
at Microsoft.Office.Interop.PowerPoint.Slides.InsertFromFile(String FileName, Int32 Index, Int32 SlideStart, Int32 SlideEnd)
Any thoughts on why is this happens?

The PowerPoint that the file path is pointing to does not exist. Be sure to check the path and make sure it's pointing to the file you want to use. I recommend following the path exactly to see where it leads and make sure the file exists there.

Related

Error UiElement is not longer valid after publish process to UiPath Orchastrator

I created a robot on UiPath Studio and it were working well running at my machine.
Then I followed the steps to publish it at Orchestrator:
I created a machine on Orchestrator(and linked the key license to the Uipath Assistant)
I created a robot
I created an environment
I created a process linked to the robot
So when I run it from Orchestrator I got the error:
Process: IMPEXTRCOBR
Environment:
Robot: IMPEXTRCOB
Machine name: C205
Info: The UiElement is no longer valid
RemoteException wrapping UiPath.Core.InvalidUiElementException: O UiElement já não é válido ---> RemoteException wrapping System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040215
at UiPath.UiNodeClass.get_visibility()
at UiPath.Core.UiElement.IsVisible()
--- End of inner exception stack trace ---
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Start Time: 04/24/2020 11:16:22 AM
End Time: 04/24/2020 11:16:29 AM
Input Values: null
Output Values: Empty
Has Recording: false
And now If I try to run it from my machine I got the same error. And if I try to "fix" the selector of the activity I got the error:
What am I doing wrong?
Is it possible for you to give us a screenshot of your UiPath Sequence project?
Typically these errors occur when a selector is too specific and information that might change, like a page title, is included.
Inherited properties
Often properties in a selector are inherited. So a UiPath scraping activity might be getting its title property from an Attach Browser activity from which it is connected. In that case, the ability to delete the title in the attached activity will be disabled. You'd have to go to the parent.
I have the same problem like you,
when I used the click method
I have gotten through this problem by changing the method using Click Image Activity instead of Click Activity.
This can solve common click errors of not using any selectors to click on specific UI elements.
maybe far from your expectations but this method can help.

debug plugin using plugin registration tool CRM 2013

I have install profiler in one of my plugin step, which will executed on create of record.
Once i complete this, it generate a errorlog. I have copied that text and created a errorlog.txt. It looks like below :
|7V3rkqM4ln4VR/6Y2I0uGzDGl2xXTuR1OmeqKnMys3on+k+HANnJFAY34KrK3tiIfYJ9i32H+d9vsk+yEjcD5iJ8AYxPdUd3gQVIOtI53znfkTT98/eF3vmKLVszjfdnQo8/62BDMVXNmL8/...
When i upload that file, it gives me below error.
Unhandled Exception: System.ArgumentException: Unable to parse the OrganizationServiceFault.
Parameter name: serializedReport
at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)
at PluginProfiler.Library.ProfilerUtility.DeserializeProfilerReport(String assemblyFilePath, String logFilePath, Boolean isCrmDataStream)
at PluginProfiler.Library.ProfilerExecutionUtility.RetrieveReport(String logFilePath, Boolean isCrmDataStream)
at Microsoft.Crm.Tools.PluginRegistration.CommonControls.Helper.ParseReportOrShowError(Window window, FileBrowserView profilePathControl, Boolean requireReportParse, ProfilerPluginReport& report)
Inner Exception: System.InvalidOperationException: File does not contain a valid serialized OrganizationServiceFault.
at PluginProfiler.Library.ProfilerUtility.ConvertFaultToStream(String serializedFault)
at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)
I have already checked this link Debug CRM 2013 Using Plugin Profiler error : , but its not working.
This will happen, if you download the wrong log file and feed into PRT for debugging.
Correct log file:
Basically after installing profiler & the plugin step is profiled, once repro step is done in CRM, when trying to download the log file the prompt should read "Business Process error" and it should be encrypted & machine readable like below:
Download the details and load with Plug-in Profiler.
|7R1dc+I48q9QPGzdPRgbDMFhCVuzk8wttTsDFTJXW/tyJcttoosteWU5CfvrV7IN4cMBw0wM0ZIHgmS11OputVr.......
Wrong log file: (your case)
But not human readable like below:
System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #D42EB3A1Detail:.......

Web API 404 File or Directory not Found for "root" routes

I am developing a RESTful web api service. It's web api v.1, not v.2. Also I am developing on Visual Studio 2010 SP1. I have installed the MVC 4 for VS2010 SP1.
Please understand and keep in mind that Upgrading to newer versions of VS or Web Api 2 is not an option.
I have the following problem after a Windows Update ocurred.
When I try to use my RESTful api this way....
http://url.com/documents/ (get all the documents) I get the following error...
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Here is the stack trace.
[HttpException]: File does not exist. at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response) at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath) at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) at system.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
If I specify the action name directly, it works. For example...
http://url.com/documents/get (gets all the documents) or
http://url.com/documents/7 (gets document id=7.
It only fails when you call it by its default name. I have already read similar situations here and I have tried to follow their solutions but they are not working for me properly.
Now, I know this is not a "web api routing" issue because I actually get the .net default exception page html markup (I am using Postman to test my webservice). When I force a "routing issue", then I get a JSON error description, which means that the Controller actually got created in the pipeline and returned a response.
Also, I have a custom file (SecurityHandler) that inherits from DelegatingHandler. This file gets executed almost first in the pipeline with each call to the api. Even before the actual Controller. Well, this file is never called when I get the error, which confirms to me that the "webserver" (either VS Development Server or IIS 7) is the one throwing the exception.
I have exhausted every single solution that I have found here. Change my web.config to multiple handlers configurations, re-installed MVC 4 for VS2010, created an entire new project... all these efforts have shown no results whatsoever.
Like I said, this was working perfectly fine until my pc restarted from a Windows Update BUT... why does it fail in the server as well? I did deploy my api to the server after the error started to occur.
Thanks.
The issue is not in Web API (and has nothing to do with it's version or Visual Studio 2010), it's the static file handler trying to serve and failing.
Alternatives:
0. Do you have a documents folder in your site? Get rid of it.
1. Remove the static file handler for directory browsing and re-add it.
2. Use RAMMFAR (less recommended)

What causes "Method ~ of object ~ failed" in a VB6 application?

I am working on an old VB6 app and have recently added the Siemens OPC component. When running in VB6 debugger I have no problems.
I then created a deployment package (Siemens OPC dlls included in the package) and deployed the app on the same PC. I then get the following error message when accessing the OPC object:
'Method ~ of object ~ failed'
Can anyone suggest what might be causing this or what I can do to get more information?
UPDATE
I am aware of other questions around this error message. What is puzzling me here is that there are no problems when using the VB debugger. The problems occur after deployment - even on the same machine. I would have thought that all the components remain registered and available.
CODE
Public Sub InitialiseOPC(ServerIP As String, OpcServerName As String, BaseAddress As String)
On Error GoTo ProcError
IsInitialised = False
Set MyOpcServer = New OPCServer
Dim LocalServers
LocalServers = MyOpcServer.GetOPCServers(ServerIP)
....
The error occurs when GetOPCServers is called. This is the first time the OPC component is accessed.
Is there any way to trace what VB is doing at this time (e.g. dll loading) ?
UPDATE
I tried deploying the Siemens dlls to the application folder instead of the default locations and this error message no longer appears.
Method ~ of object ~ failed is generated when an exception (SEH) is thrown during a late-bound call. VB6 makes the effort to "wrap" each late-bound call to catch such unexpected behavior.
In your case most probably a VC component is trying to load a dependent DLL or COM object and fails but does not handle the failure gracefully. Instead it tries to call a method on the empty reference and bombs with an Access Violation or similar exception.

Umbraco installation problem. Can not install starter kit. The key was not present in the dictionary

This is a problem I get when trying to install Umbraco. I know that Umbraco has its own forum, but they have just moved it to another url, and I can not seem to be able to post a question there. So I try here. I know this problem has been reported before, and have tried to implement the solutions other people have reported. But I still can not seem to get it working. I have tried to both use Windows installer, as well as setting up the site myself. Last week I managed to create a site, and install a starter kit. But now I can not make it work. No idea why. I do the exact same steps as last week. I have .NET 4.0, IIS 7 and Windows 7. The Umbraco version is the latest (4.7).
No matter if I use Windows installer, or the binary-package from Codeplex, the installation process works fine until the step when I am presented the choice of installing a starter kit. I press for example the Business Startkit, but then I get the error below. I have given full permission for my application folder in inetpub, to IIS_IUSRS, Network service and Network. I have done the same for C:/Temp folder (as suggested by someone). I am using an app-pool that runs on .NET 4.0 in Integrated mode. I also set it to use Network service. I have also tried to both start off with a blank database, as well as creating a new one. The database gets populated with tables. The folder in inetpub is also filled with all the folders and files that should be there. I have also tried using SQL CE, but with out luck. And I do have a working internet connection.
Does anybody have any ideas on how to solve this? It's getting really frustrating. I think I have tried all the suggestions in the other threads, but I might have misunderstood something, missed some steps, or forgotten some advice. Any suggestions are highly appreciated.
The error I get:
Server Error in '/site_development' Application.
The given key was not present in the dictionary.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[KeyNotFoundException: The given key was not present in the dictionary.]
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +2258321
umbraco.cms.businesslogic.datatype.controls.Factory.GetNewObject(Guid DataEditorId) +108
umbraco.cms.businesslogic.datatype.DataTypeDefinition.Import(XmlNode xmlData) +459
umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +187
umbraco.presentation.install.steps.Skinning.loadStarterKits.SelectStarterKit(Object sender, EventArgs e) +416
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +118
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +113
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +9
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
Are you able to install Umbraco firstly without the starter kit?
If so it maybe an issue with the starter kit itself.
Or get the latest nightly build from Umbraco here http://nightly.umbraco.org/

Resources