Exception Debugging using Unity IOC - c#

I'm having issues getting good Exception information when using Microsoft.Practices.Unity to load some classes dynamically.
The code is on a remote server and I'm using ELMAh to capture errors. I see the exceptions but the exception information stops at DynamicModule.ns.Wrapped_IMyClass_GUID.MyFunction().
I've pushed debug classes to the server so I see the line numbers up to that point but I can't get the line numbers for these dynamically loaded classes.
Is there a setting I'm missing somewhere that allows the real inner exception information to be displayed?

Unity includes all the chain of the errors in the InnerException, of each one. For example if you have a chain of dependency like this: Service1 dependes on Service2 depends on Service3
and, if Unity failed to instanciate Service3 due to a resolution error, you'll get a resolution failed exception of Service1 having an InnerException of type resolution failed exception of Service2 having an InnerExcepetion of type resolution failed exception of Service3.

Related

BizTalk Error in event log on running request in SOAPUI

This is the error encountered in Event log of BizTalk Admin
xlang/s engine event log entry: Uncaught exception (see the 'inner
exception' below) has suspended an instance of service
'orchestration.AsyncOrchestration(ebb0442e-bff4-cd1c-f5dc-aff7c5086e57)'.
The service instance will remain suspended until administratively
resumed or terminated. If resumed the instance will continue from its
last persisted state and may re-throw the same unexpected exception.
InstanceId: 50fc5f8b-c9b9-44e1-9781-2a1391c145ec Shape name:
Expression_1 ShapeId: ddfccde4-3444-47c4-977d-228e66ffaae6 Exception
thrown from: segment 1, progress 17 Inner exception: Resolution of the
dependency failed, type =
"BizTalkComponents.Interface.ISsoSettingsReader", name = "(none)".
Exception occurred while: while resolving. Exception is:
InvalidOperationException - The current type,
BizTalkComponents.Interface.ISsoSettingsReader, is an interface and
cannot be constructed.
Are you missing a type mapping?
First, this has noting to do with SOAPUI or any specific client.
It seems that your deployment process has failed to include the SSO lookup components that are called in the failing Orchestration.
So, whichever set of component the app is using must be installed on the server.

Exceptions and Error 404 when using StatsManager

Okay I tried to play a little bit with the StatsManager but I always got an exception trying to use anything with it when comes to
Set a stat
Get a stat
Because I doubted myself I had the idea just to use the UWPIntegration sample that is on Github . I also added the Leaderboard items to my own project so the code works with my test sandbox. Logging in works as it should just StatsManager causes the issues.
But as with my own code I just get the same error / exception which is the following. I assume there is a bug in the code provided or the service configuration is not working as intended.
System.AggregateException occurred HResult=0x80131500 Message=One or more errors occurred. Source= StackTrace: at
System.Threading.Tasks.Task1.GetResultCore(Boolean
waitCompletionNotification) at
Microsoft.Xbox.Services.XboxLiveHttpRequest.<>c__DisplayClass35_0.<GetResponseWithAuth>b__1(Task1
getResponseTask) in
D:\Data\VisualStudio\Projects\xbox-live-api-csharp\Source\api\XboxLiveHttpRequest.cs:line
117 at System.Threading.Tasks.Task.Execute()
Inner Exception 1: AggregateException: One or more errors occurred.
Inner Exception 2: WebException: The remote server returned an error:
(404) Not Found.
Issue was found. My service.config used a wrong parameter name, see below in the comments of the solution.
There are a few different reasons why this might be the case. Not surprisingly, it means the cloud can't find the stat you've requested.
If you use Fiddler, you can capture the call and share with me the correlationID header. If you don't know Fiddler, let me know and I can help you.
However, some ideas off the top of my head
Make sure that you're in development mode - your sandbox is the one from the dev center site. If you aren't sure, you can use the Windows Device Portal to see what your sandbox is - just click on Xbox Live in the left hand navigation.
Make sure you have hit "Test" on the dev center page where you defined your featured stats and leaderboards.
Make sure you are requesting the stat by the ID name you specified in the config window, not the display name.

the service instance will remain suspended until administratively resumed or terminated following error exception type initializer

I am getting the above error, exception type initializer.
Could please give what type of take an action to resolved this issue.
I got following error when am trying to drop a file in receive location and I did resumed in biztalk admin console it shows same error in event application logs.
You are getting this error due to your logging component, your logging component is trying to load itself via a static constructor most likely and failing there. It looks like it depends on Microsoft enterprise logging block, make sure you have all dependencies installed in GAC properly or check your logging component configuration to see why it's failing. It's not related to BizTalk issue.

A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll

When I start my application (it is a client which connect with WCF to a Service) I see in the Output-Window of Visual Studio many lines with
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
I have turn on the throw of this Exception and see, that it occures, when the client calls the WCF-Service. The Message of the Exception is:
A name must not beginn with '<'
(in german: Ein Name darf nicht mit dem Zeichen '<', hexadezimaler Wert 0x3C, beginnen.)
Should I do something about this? Or is this normal? Can this be a performance issue?
Thanks for your help.
Best Regards, Thomas
I also got this exception after calling my wcf dataservic endpoint a couple of times. After some searching i found this post that was spot on:
https://social.msdn.microsoft.com/Forums/en-US/74813783-8666-40c4-a9fd-7953f7b6849c/invalid-xml-with-two-feed-elements-returned-after-a-few-requests?forum=adodotnetdataservices
When you have WCF tracing configured and you have set
logMessagesAtTransportLevel to true, you get this behavior
So i changed the configuration of my service and it worked.
This is normal. First chance exception messages indicate exceptions that were thrown and handled.
The ones you are getting is probably due to missing configuration info or serialization info in your assembly. The aforementioned might not be needed if everything is working fine.
9 changes out of 10 this is not a problem. It's common in those classes (and also in, e.g. Entity Framework) to throw exceptions when it's run. So I wouldn't worry about it too much.
I would worry if you can step into the code (i.e. you wrote the code yourself that throws the exception).
But I don't think that is the case.

Error Connecting to Third Party App via COM: mscorlib Exception from HRESULT: 0x80040202

One particular user is getting an exception when connecting an application I created to a third party app using COM. The connection fails with the following error:
Source: mscorlib
Message: Exception from HRESULT: 0x80040202
This software works fine for other users.
Any ideas what could be going on?
The error occurs just before the app adds some event handlers to some of the COM objects from the third party app. It is able to successfully instantiate the objects, though.
The error code for that HRESULT is CONNECT_E_CANNOTCONNECT. This is typically returned as a failure code from IConnectionPoint::Advise because the connection point doesn't support the underlying interface.
Can you give us some more context into the code that's causing this exception? Are you creating the component, using it, etc ...

Categories

Resources