DebugDiag not seeing exception - c#

I am supporting an application team and they have an issue with their web page - the below is shown:
Retrieving the COM class factory for component with CLSID {0002E569-0000-0000-C000-000000000046} failed due to the following error: 80070005.
I have looked around here and other sites but cannot find the culprit of the access denied object. The object itself is registered in the registry as "Microsoft Office Spreadsheet 11.0".
I have decided to take a dump of the this whilst it happens so I can see where in the code the problem is occurring and possibly track down some info from there.
I have tried debugdiag and tried loads of exception settings however when I go to the website and raise the exception of System.UnauthorizedAccessException it is not saving any dump.
There is no default exception in the exception list called 80070005 so I am putting it down as a .NET 4.0 app and 80070005 - this is the Hex value of access denied as appears in the error message.
Any ideas what settings I should choose for debugdiag to see the exception?

Related

COM exception occurs only when I'm logged in to company domain

I have been working on a c# project in VS2017 Community. It's been fine for 6-8 weeks. I went away for the weekend and came back and I'm now getting an exception in my code that was not there previously.
System.Runtime.InteropServices.COMException: 'Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))'
At work I am logged into our company domain with Admin privileges. I was also working on this at home on my laptop to I tried it there and it's fine. Copied the project from laptop back to my desktop in the office and again get the exception.
Finally tried logging out of the computer and logging back in as a local user, and the code runs fine, no exception.
When logging back into the domain I tried running VS2017 'as Administrator' but same problem - exception get thrown. I removed all the most recent Windows Updates but no relief.
I really have to be logged in to the domain in order to do most of my other work, so I'm fairly at a standstill right now.
The purpose of the offending code is very basic - just creating a playlist (from a folder full of files) The code here's the code I'm executing that throws the exception when I'm logged in as a Domain account:
WMPLib.IWMPPlaylist playlist = wmp.playlistCollection.newPlaylist("myplaylist");

Exception for path of "/null" being thrown on all controller index methods

As of today all branches of our codebase (old and new), our staging environment and our live environment are all throwing the following exception when the Index method of any Controller is viewed in a browser:
System.Web.HttpException: The controller for path '/null' was not found or does not implement IController.
To clarify, this is even happening on code that has long since been checked in and has not been edited, when I open the project and browse to the homepage of the application. Other members of the team are also experiencing this on their own branches as of this morning too.
The exception is thrown but the respective Index page is rendered as you'd expect so the exception being thrown is silent to the user.
It looks to have started happening on our production site at just after midnight. No publish was undertaken and no Windows Updates were installed on the server. I did install yesterday's wave of Windows Updates on my own PC. I'm baffled! Any ideas?

Send exception from app_codevb in a web site asp.net

I've a question. In a web site created in asp.net with vb.net in code behind, how I can show message of exceptions from methods in app_codevb folder.
Example a method return a table with a list of customers, but occurs a error of timeout or error in sintax.
How I can show the user in the form the error occurred in app_codevb folder?
If you don't do anything then it will automatically show any unhandled errors on the page.
Somewhat in this format
Server Error in '/WebApp' Application.
Error Message...
Description: ...
Exception Details: ...
Source Error: ...
Source File: ...
Stack Trace: ...
Version Information: ...
However, it is not a good thing. It looks ugly and breaks your site. It also shows your immaturity in programming besides opening your site for attacks. The better way is to use Try... Catch blocks where there is a possibility of errors occurring in your application and handle the error appropriately.

Premissions to access LDAP from a windows service

I'm building a windows service that polls a windows file share location for a file containing members that may be found in LDAP. The windows service is running as a specific user on the domain to have access to the file share. This user is in the Administrator group both on the server running the service and where LDAP is found.
The problem I have is that fetching the files works fine but then when accessing LDAP I get the following exception:
LDAPService.Program - Exception: An operations error occurred.
InnerEx:
=== STACKTRACE ===
LDAPService.Program - at
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind() at
System.DirectoryServices.DirectoryEntry.RefreshCache()
=== BASE EXC ===
LDAPService.Program - System.DirectoryServices.DirectoryServicesCOMException (0x80072020): An operations error occurred.
Searching for this error there is a lot about ASP.NET and using Impersonate(). But that didn't help.
If I change the windows service to logon as Local System Account then I have no problems accessing LDAP (but I can't access the windows file share).
What other settings should I look at?
I was using two different LDAP directories and forgot to provide the user/pass for the second one. Had only given it for the first one.
A classic example of what we call SBS here in Sweden (Skit Bakom Spakarna).

Access Denied while trying to create mini-dump with WinDbg

I am trying to create a mini-dump using WinDbg. After attaching to the process (non-invasive), I execute the following command:
.dump /mA c:\Temp\app.dmp
This results in the following error:
Creating c:\Temp\app.dmp - mini user dump
WriteFullMemory.Memory.Read(0xe730000, 0x10000) failed 0x8007012b, skip.
WriteFullMemory.QueryVirtual(0x0) for info failed, 0x80070005
Dump creation failed, Win32 error 0n5
    "Access is denied."
WinDdg is being run as an Administrator. We have the lastest version of WinDbg, we confirmed we're running the 64 bit version and the process being attached is 64 bit. Does anyone know how this can be resolved?
For context, we're taking the dump to isolate the root cause of a memory leak in one of our IIS-hosted WCF Web Services.
Side note: this may be due to paged memory but not sure how to get around that.

Categories