0

I'm facing the following issue I just can't explain:

I have two dlls (DllA and DllB). When I call the first time from DllA into Dllb "ObjectFromB.aMethod()" everything works fine and fast. However, when I call another method from DllA in DllB "ObjectFromB.anotherMethod()" it takes more than 15 seconds!! I can't figure out why... Except the method/signature everything is exactly the same (same thread, same objects, same assemblies, same call stack (until there) and then two only distinct methods/signatures (into the same object)).

Important: The issue happens only if I don't have internet connection!

Dunken
  • 8,481
  • 7
  • 54
  • 87
  • Is the problem when you have no network connection at all or when you have a network connection but can't connect to the internet? – Robert Oct 02 '12 at 08:25
  • Are both DLL's your? do you have access to the source? – Robert Oct 02 '12 at 08:25
  • Yes, I have access to the source. I have network connection but can't connect to the internet. – Dunken Oct 02 '12 at 08:27
  • Have you steped through the code and do you know what call within the method is taking a long time? – Robert Oct 02 '12 at 08:32
  • Yes, if I call anotherMethod() (I know the name of the method) I trace a message before the call and in the method itself. The delay is more the 15". – Dunken Oct 02 '12 at 08:38
  • Have you tried using fiddler or a sniffer (wireshark etc..) to find out what the application is connecting to in the hope it might shed some light on what is causing the delay or timeout. – Robert Oct 02 '12 at 08:42
  • i sugested fiddler because it simple to use if the request is a HTTP call. – Robert Oct 02 '12 at 08:43
  • I'll try Wireshark and Fiddler and get back asap. – Dunken Oct 02 '12 at 09:19

1 Answers1

0

I found the reason of my issue:

Some DLLs I've been using are signed binaries. anotherMethod() contains a type in its signature from another DLL (DllC). Unfortunatley it couldn't authenticate this DLL because of the missing Internet connection. A solution/workaround can be found here:

http://support.microsoft.com/kb/936707/en-us

Dunken
  • 8,481
  • 7
  • 54
  • 87