I am calling a Function of a Service from a homepage.
The strange thing is, this works for hours, then I do not change anything and suddenly I get the following exception:
System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005.
Then it doesn't work anymore.
When I restart the server, it works again. I am pretty sure that this is a setting in the dcom config of the Service, but I already tried everything.
Related
I received the above error when using the SwiftUI previews feature and can't figure out why this happens. The error always looks something like this:
GenericHumanReadableError: unexpected error occurred
messageRepliedWithError("Connecting to launched interactive agent 1894", Optional(Error Domain=com.apple.dt.xcodepreviews.service Code=17 "connectToPreviewHost: Failed to connect to 1894: (null)" UserInfo={NSLocalizedDescription=connectToPreviewHost: Failed to connect to 1894: (null)}))
I managed to figure out a good way to debug this, please see below
If you head into /Users/USERNAME/Library/Logs/DiagnosticReports you will see the latest crash reports. Open the most recent one (should start with your app name), and it should tell you the reason the app crashed. It'll look something like this:
Application Specific Information:
Fatal error: This request requires an authenticated account: file /Users/USERNAME/Work/AppName/Models/CloudKitAlbumManager.swift, line 101
In my case, it was a fatalError i threw in development for debugging. The previews loads your app and thus call your whole stack and will crash if you like me throws fatalErrors for debugging.
I hope this helps
My project is a simple login page. I am using asp.net core with MVC.
Everything was working well and I wanted to add service worker to my project. I followed the known steps. Add a manifest.json file in wwwroot, fill it correctly and add this function services.AddProgressiveWebApp(); after services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);.
When others do these steps, service worker works properly. When I run it (IIS Express), service worker produces an error: "Uncaught (in promise) TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script."
Then I realized this thing: https://localhost:44331/~/serviceworker.
The ~ symbol is created automatically and I am not knowing how to remove it.
The following https://localhost:44331/serviceworker works.
Help?
It is solved.
I updated the version from v1.0.42 to v.1.0.33 and it worked.
v1.0.42 has a bug.
OK this one is hopefully really simple
I thought I had it figured out once but can't remember what I did
In any app I go in and create a connection to a button or whatever and I give it a name like "PressThisButtonWhenDone"
this is all good and it works fine
BUT
I then want to change the name to "PressThisButtonWhenFinished"
so I delete the old action and create the new one with this name and I go into the .m file to remove the old action Xcode put in place automatically for me and place any code I had in the old method in the new properly named one.
I then build the project and it goes just fine the app comes up and I use all the other functions just fine and then I hit the Button associated with "PressThisButtonWhenFinished"
and I get something along these lines...
2014-06-03 12:30:18.148 appname[5602:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x12ed27d10> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key PressThisButtonWhenDone.'
*** First throw call stack:
(0x18cb66f50 0x1990701fc 0x18cb66bd4 0x18d624720 0x18cab25ec 0x18feeadd0 0x18fe2f878 0x18fb30488 0x18fb303f4 0x18fcdd868 0x18fbe7f54 0x18fbe7d24 0x18fbe7ca4 0x10241299c 0x18fb2aff8 0x18f71c258 0x18f716e20 0x18f716cd8 0x18f716560 0x18f716304 0x18fb2f16c 0x18cb27644 0x18cb269a0 0x18cb24c38 0x18ca65c20 0x19274dc0c 0x18fb96fdc 0x10009d6fc 0x199663aa0)
libc++abi.dylib: terminating with uncaught exception of type NSException
This is the old button name and I cannot locate it anywhere to remove it
I tried doing a clean not sure if that would do anything and it did nothing How do I eliminate this error
As it turns out there was still a connection to the old name and that was the reason for the error.By going to the connections manager I found the new connection was there and so was the old one. I deleted the old one and it works fine now. I knew it would be a simple fix.
I am using Ninject for DI (with MVC3), its working fine on my development environment, but on the server it's giving this error:
An error occurred when trying to create a controller of type 'Mynamespace.MyController'. Make sure that the controller has a parameterless public constructor.
I spent the last 3 hours searching for answers and applying them, such as changing some code and checking that all required DLLs are uploaded.
But I'm still unable to find a solution.
Its working fine on my local environment, I am only facing this issue on the server.
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.